Commit Graph

92 Commits

Author SHA1 Message Date
rebornix
4fc84b3a11 sketch for notebook kernel 2020-07-15 16:18:17 -07:00
rebornix
5dc851f308 Fix #101378. De-ref text model from celltextmodel when it's disposed. 2020-06-30 14:45:58 -07:00
rebornix
573a528d72 Merge remote-tracking branch 'origin/master' into rebornix/separate-textmodel-selection 2020-06-23 08:07:17 -07:00
Connor Peet
a57cb45be8 notebooks: pipe renderer API postmessages to the renderer itself (#100414)
* notebooks: pipe renderer API postmessages to the renderer itself

Previously the postMessage on acquireNotebookRenderer API was just
a proxy to the global vscode postmessage. Now, it's linked to the
renderer and will cause an optional `onDidReceiveMessage` method on
the renderer to be called.

The message still _also_ goes to the global webview message handling
for advanced use cases, but this change allows the webview<->renderer
communication to be more nicely contained
and separate for most use cases.

* wip

* fixup! pr comments
2020-06-22 09:35:16 -07:00
rebornix
ac9e97aaa5 delay cells change from revert. 2020-06-19 13:52:59 -07:00
rebornix
5d9e565557 📓 Separate selections and text model 2020-06-18 19:22:08 -07:00
rebornix
6c68514534 Fix #100329. Content providers can contribute to undo/redo stack of a notebook document. 2020-06-17 17:08:09 -07:00
rebornix
ca7f2683fd resolve notebook editor with comm object. 2020-06-16 17:21:11 -07:00
rebornix
8ad77ef2b6 mimetype and remove revert. 2020-06-16 14:55:20 -07:00
rebornix
98c3065160 Fix #96840. Support backup/revert from notebook content provider. 2020-06-12 18:00:15 -07:00
rebornix
af949eff9d ignore empty notebook events. 2020-06-08 15:09:11 -07:00
rebornix
31101e83ff no layout after list view being disposed. 2020-06-05 14:53:33 -07:00
rebornix
11848b40d3 re #99240. 2020-06-04 14:46:37 -07:00
rebornix
adae0e5b4e Fix #98841. Open file should only emit document open event, no cells change event. 2020-06-02 15:13:32 -07:00
rebornix
0bf860564a Diffing editors/documents/visibleEditors/activeEditor. 2020-05-30 17:59:14 -07:00
rebornix
7fccb0d608 use updateState/compute instead of sending delta directly. 2020-05-30 17:57:48 -07:00
Johannes Rieken
5721d63eb6 notebooks - wire up onDidChange event from notebook providers, fyi @rebornix, https://github.com/microsoft/vscode/issues/96403 2020-05-29 13:20:28 +02:00
rebornix
8bac4d17ad combine events from edits from ext host. 2020-05-27 16:00:49 -07:00
rebornix
315807911c transform outputs for backup 2020-05-27 14:34:15 -07:00
rebornix
714991ce95 switch mimetype now should be done async. 2020-05-26 20:35:22 -07:00
rebornix
914fa13e26 support renderer and content provider registered in different extension host. 2020-05-26 20:11:49 -07:00
rebornix
b26e0bcf39 send out missing selection change event when moving cells. 2020-05-26 08:08:00 -07:00
rebornix
23f5231511 asWebvewUri requires guid. 2020-05-20 12:17:26 -07:00
rebornix
5c928428df notebookEditor.visible 2020-05-19 17:20:20 -07:00
rebornix
025bd27df7 webview comm based on editor other than document. 2020-05-18 18:13:45 -07:00
rebornix
d9fd263f52 load document with editor id. 2020-05-18 18:03:58 -07:00
rebornix
55ac452768 webview id attached to notebook editor 2020-05-18 16:29:02 -07:00
rebornix
a14736ca5e introduce visible notebook editors 2020-05-18 15:45:32 -07:00
rebornix
9a384768c3 Fix #97694. 2020-05-18 10:35:43 -07:00
rebornix
2d6df55ad1 Notebook kernel preloads 2020-05-17 21:12:58 -07:00
rebornix
b9c163faee asWebUri. 2020-05-14 17:53:33 -07:00
rebornix
e3c3ea27e0 Switch kernel info. 2020-05-13 18:26:41 -07:00
rebornix
c120c15055 Fix postmessage on notebook editor. 2020-05-13 13:58:21 -07:00
rebornix
03acd2250a Fix #96433 2020-05-13 12:47:39 -07:00
rebornix
a15661000f adopt notebook kernel 2020-05-13 11:31:06 -07:00
Rob Lourens
eeac47cd7b Fix, execute notebook in extension by passing 'undefined' 2020-05-13 11:29:01 -05:00
rebornix
d3c97cd998 Fix microsoft/vscode-github-issue-notebooks#26. 2020-05-13 08:39:16 -07:00
rebornix
4447915b00 saveAs 2020-05-06 12:42:36 -07:00
rebornix
b4dd66bc85 revert. 2020-05-06 11:43:19 -07:00
rebornix
cb7ea6e166 Remove notebook content provider 2020-05-05 18:43:25 -07:00
rebornix
1b5217985b notebook document creation in UI side 2020-05-05 18:43:25 -07:00
rebornix
0d445385ea Re #93265. 2020-05-04 18:27:47 -07:00
rebornix
715b135887 Slim NotebookEditorInput and model service for notebookEditorModel. 2020-05-01 15:36:41 -07:00
rebornix
0ca10b2bf8 accessible mimetype display order 2020-04-28 17:50:29 -07:00
rebornix
5121bac41d NotebookEditor.selection 2020-04-22 13:44:00 -07:00
Rob Lourens
d661f7b2d1 Implement cancellation for notebook cell execution 2020-03-30 12:14:10 -05:00
rebornix
24cac8b437 Edit API in the core 2020-03-25 17:53:27 -07:00
rebornix
fdf9e6ef07 Cell Editing API draft 2020-03-25 11:08:18 -07:00
rebornix
6f880b0fd1 Tempalte Cell if the document is empty 2020-03-24 17:22:08 -07:00
rebornix
deddc655bd Event Dispatcher 2020-03-23 16:00:13 -07:00