Commit Graph

217 Commits

Author SHA1 Message Date
Rob Lourens
7b96cc4c8b Implement Execution API (#116416)
Implement new execution task API
#106744
Fix #105847
2021-03-22 11:27:00 -07:00
Johannes Rieken
7d99c47b75 move notebook save event into notebook editor model service, remove resolve/save/backup from notebook service and let editor model use content provider directly 2021-03-19 13:13:40 +01:00
Johannes Rieken
232266aaf2 first cut of IFileWorkingCopy adoption, misses saveAs and backsnapshot are improper... 2021-03-18 15:26:18 +01:00
Johannes Rieken
31283f32b2 keep notebook serializer locally 2021-03-16 14:52:24 +01:00
Johannes Rieken
2de06d768b add INotebookSerializer interfaces and wire up IPC calls 2021-03-16 13:19:33 +01:00
Logan Ramos
c72d7612b4 Add an untitled document data property (#115790)
* Add an untitled document data property

* Dispose of the model passed back

* Fix layer problem

* Add untitledDocumentData to untitled notebooks

* Fix compilation errors

* Switch to using VS Buffer

* Fix threading the untitled document data back through

* Prevent save dialog on untitled reopen with

* Change ignore save setting

* Change setting name and abide by preserve focus

* Add unit test

* Switch to js doc comments

* Consolidate calculating the untitled value, and added test
2021-03-10 19:54:18 +00:00
Johannes Rieken
a6d7d86e85 remove viewType from openNotebookDocument call 2021-03-10 14:30:40 +01:00
Johannes Rieken
0f64ef1b65 remove NotebookDocument#contentOptions 2021-03-09 17:44:22 +01:00
Johannes Rieken
98a22a957a declare cancellation support for openNotebook and wire it up, exempt notebook content provider from provider naming rules 2021-03-09 12:40:37 +01:00
Johannes Rieken
230e0fdc9a clean up, some ground work to support viewColumn, $acceptEditorPropertiesChanged must update all state before sending events, remove active notion from notebook editor 2021-03-05 17:22:06 +01:00
Johannes Rieken
68a6f1c30e look up editor by id, slimmer dtos 2021-03-05 17:22:05 +01:00
Johannes Rieken
3b05017bb8 more 💄, more strict typings 2021-03-05 13:09:18 +01:00
Johannes Rieken
1d8493b203 💄 in mainThreadNotebooks, return types, more private, dispoable store, duplication removal, etc 2021-03-05 12:52:35 +01:00
Johannes Rieken
85c1a17b60 Merge IEditor and INotebookEditor, move editor things into notebook editor service 2021-03-05 12:17:21 +01:00
Johannes Rieken
0e94794c9d debt - remove unneccessary indirections from notebook service 2021-03-03 16:49:33 +01:00
rebornix
6643b5e520 de-dup: uri. 2021-03-02 12:34:30 -08:00
Johannes Rieken
66b7ffaabf simplify $tryShowNotebookDocument further 2021-03-02 13:07:36 +01:00
Johannes Rieken
83f4088681 notebook - simplify group/viewColumn handling when opening a notebook editor via API 2021-03-02 12:29:28 +01:00
rebornix
d7f90c7dbc re #114554. 2021-03-01 20:10:09 -08:00
Johannes Rieken
b99df4f2b6 don't pass model service to applyEdit but check model version for edit that come from extensions, fixes https://github.com/microsoft/vscode/issues/117683 2021-03-01 09:54:02 +01:00
Peng Lyu
08eac1a22d Merge pull request #117204 from microsoft/rebornix/nb-selections
Notebook selections/CellRange
2021-02-22 16:25:10 -07:00
Logan Ramos
413963c489 Remove editorOpenWith (#116856)
* Move editorOpenWith to the editorService

* Remove custom editor input handling

* Fix open with API command

* adopt master properly

* Remove dnagling comment

* Address some feedback

* Cleanup region comment.

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>

* Cleanup region comment.

Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>

* Update override typings

* Fix missing picker

* Fix bug with reopen with

* Remove duplicate import

* First round of feedback via changes
- OverrideOptions => EditorOverride
- It is safe to destructure (...) undefined
- Ensure when destructuring, override is always winning
- Not a big fan of shared builtinProviderDisplayName import

* editorservice - static DEFAULT_EDITOR_OVERRIDE_ID

* editors - introduce a editor associations registry

This moves the relevant code out of the editor service.

* cleanup editor picking

* cleanup editor delegate

* final 💄

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@gmail.com>
2021-02-22 17:16:15 -05:00
rebornix
ed08a14111 selections[0] is primary. 2021-02-22 10:16:57 -08:00
Benjamin Pasero
ae0a103755 :chore: address some todos 2021-02-22 10:50:07 +01:00
rebornix
dea95d3e4f map handles to cellrange in UI. 2021-02-21 22:24:20 -08:00
rebornix
1e0adc0da5 unnecessary null -> undefined. 2021-02-21 19:47:27 -08:00
rebornix
de956ce8bd differenciate selection and focus. 2021-02-21 19:35:26 -08:00
rebornix
e8966ecaa9 notebookeditor.selections 2021-02-19 17:03:33 -08:00
Johannes Rieken
4a74fa81c1 💄 2021-02-19 15:04:17 +01:00
Johannes Rieken
57cd5d4936 🪓 remove unused $acceptDisplayOrder-RPC and everything around it 2021-02-19 15:02:43 +01:00
Johannes Rieken
7e7a71d733 💄 more supportsBackup removal 2021-02-19 14:54:32 +01:00
rebornix
9c77f4d86a add NotebookDocument.save(). 2021-02-18 11:57:49 -08:00
Johannes Rieken
7bca8a91b4 send correct delta after restarting extension host, https://github.com/microsoft/vscode/issues/115698 2021-02-18 18:09:45 +01:00
Johannes Rieken
2a12fd7202 dispose more things, https://github.com/microsoft/vscode/issues/115698 2021-02-18 17:36:29 +01:00
Johannes Rieken
a246f643ee debt, copy-paste police 2021-02-18 17:27:32 +01:00
Johannes Rieken
31e3a7794d merge NotebookController#reloadNotebook into notebook editor model, remove NotebookServce#resolve and add create and fetchData "primitives", https://github.com/microsoft/vscode/issues/114263 2021-02-18 16:05:54 +01:00
rebornix
83d540c4bf 💄 2021-02-17 08:06:54 -08:00
rebornix
b3f8737839 fix #116808. 2021-02-16 16:40:51 -08:00
Johannes Rieken
974b214334 rename: resolveNotebook is openNotebook 2021-02-16 14:50:57 +01:00
Johannes Rieken
196bf678a1 reset dirty state when reverting a notebook, update extension host when dirty state of a notebook (working copy) changes 2021-02-15 11:44:51 +01:00
Johannes Rieken
52f633d19c some 💄, some API todos 2021-02-12 19:08:34 +01:00
Johannes Rieken
cc0ccaf1c0 more disposing when dispose main thread notebooks, https://github.com/microsoft/vscode/issues/115698 2021-02-12 14:34:20 +01:00
Johannes Rieken
5a7711ac92 💄 2021-02-12 14:29:06 +01:00
Johannes Rieken
ccc28e3726 Remove languages property from NotebookData and NotebookDocument 2021-02-11 14:21:40 +01:00
Johannes Rieken
9737b1aad1 move INotebookKernelInfoDto2 to protocol, separate kernel from dto, renames 2021-02-11 11:59:32 +01:00
Johannes Rieken
55d267293b have a clear separation between KernelProvider and Kernel 2021-02-11 09:59:11 +01:00
rebornix
0df177fe39 fix tests. 2021-02-04 18:33:17 -08:00
rebornix
f2b87fd6cd Extensions do not update cell outputs/metadata directly. 2021-02-04 16:35:50 -08:00
rebornix
66635b8bd6 remove unknown content change in nb text model. 2021-02-02 12:54:11 -08:00
rebornix
04abcc0338 yarn watchd does not detect interface change again. 2021-02-02 11:44:47 -08:00