Skip to content

Commit

Permalink
keep ref to the current open Moosebook
Browse files Browse the repository at this point in the history
  • Loading branch information
badetitou committed Oct 29, 2021
1 parent e8ec598 commit 69b2d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moosebook/MoosebookController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class MoosebookController {
const execution = this._controller.createNotebookCellExecution(cell);
execution.executionOrder = ++this._executionOrder;
execution.start(Date.now()); // Keep track of elapsed time to execute cell.
await client.sendRequest('command:notebookPrintIt', { "line": cell.document.getText() }).then((result: PharoResponse) => {
await client.sendRequest('command:notebookPrintIt', { "line": cell.document.getText(), "textDocumentURI": cell.document.uri }).then((result: PharoResponse) => {
if (result.mimetype == 'error') {
throw new Error(result.content);
}
Expand Down

0 comments on commit 69b2d21

Please sign in to comment.