Commit Graph

526 Commits

Author SHA1 Message Date
Johannes Rieken
e38b9d0727 add ExtHostFileSystemInfo which knows what schemes are reserved and which are used, https://github.com/microsoft/vscode/issues/91697 2020-09-10 12:29:30 +02:00
Johannes Rieken
01f9355f65 debt - simplify metadata edit because we now have CellEditType.DocumentMetadata 2020-09-10 11:48:44 +02:00
Matt Bierner
ec8016f7d1 Cache webview view title across reloads
Fixes #105867
2020-09-09 21:51:22 -07:00
rebornix
03960a5aa1 re #105735. no more udpateMetadata api. 2020-09-09 16:45:00 -07:00
rebornix
73a3c9ded3 re #105735. 2020-09-09 16:45:00 -07:00
Johannes Rieken
dcef262f4e chore - move appyWorkspaceEdit from extHostTextEditors to (new) extHostBulkEdits and mainThreadBulkEdits 2020-09-09 11:18:14 +02:00
Johannes Rieken
420aa32929 add replaceNotebookMetadata, https://github.com/microsoft/vscode/issues/105283 2020-09-09 10:44:45 +02:00
Johannes Rieken
951dd140b8 add replaceNotebookMetadata (should become replaceMetadata) to NotebookEditorEdit, https://github.com/microsoft/vscode/issues/105283 2020-09-09 10:44:45 +02:00
Matt Bierner
f79540dc65 Add show method to webview view
Fixes #106085
2020-09-08 17:19:11 -07:00
Peng Lyu
93a0c99f18 Merge pull request #106313 from microsoft/rebornix/nbdebt
notebook text model debt
2020-09-08 15:41:38 -07:00
Matt Bierner
4c7071e9ab Add WebviewView.description
Allow configuring the description for webview views.

This is rendered next to the title in a less prominently in the title
2020-09-08 15:23:43 -07:00
rebornix
1870a1c47e Merge remote-tracking branch 'origin/master' into rebornix/nbdebt 2020-09-08 14:10:32 -07:00
Johannes Rieken
8b0a7c9582 debt - remove _unInitializedDocuments 2020-09-08 19:56:24 +02:00
rebornix
8ebad589d5 deprecate onDidChangeCells 2020-09-08 08:36:06 -07:00
Johannes Rieken
53ffabab80 debt - remove unused INotebookModelAddedData#handle 2020-09-07 11:52:50 +02:00
rebornix
11158cc1d1 re #105735. selections as NotebookEditor properties. 2020-09-03 20:28:28 -07:00
rebornix
c887ae1b6d remove legacy registerKernel 2020-08-31 12:00:21 -07:00
rebornix
2518d2c44d update kernel per document. 2020-08-31 11:49:19 -07:00
rebornix
d3a5dd9d4b re #102503. reveal range 2020-08-28 13:23:28 -07:00
rebornix
637d782c7b re #102503. visible range change events. 2020-08-28 12:06:21 -07:00
Johannes Rieken
a3f414cf5a add some integration tests for notebook editing, https://github.com/microsoft/vscode/issues/105283 2020-08-28 17:59:10 +02:00
Daniel Imms
47ecd45eaa Merge branch 'master' into tyriar/welcome 2020-08-27 12:47:59 -07:00
Daniel Imms
aa6b2f163d Initial terminal welcome support 2020-08-27 12:38:33 -07:00
rebornix
b2693bb7ed remove legacy kernel on content provider 2020-08-27 12:01:25 -07:00
Rachel Macfarlane
650197b991 Add authentication contribution point, #103507 2020-08-27 11:51:18 -07:00
Johannes Rieken
860a68747f WorkspaceEdit#replaceCells|CellOutput|CellMetadata, https://github.com/microsoft/vscode/issues/105283 2020-08-27 10:25:17 +02:00
Rob Lourens
b58f4549b2 Implement notebook cell status bar item contributions
Fix #104958
2020-08-26 17:07:10 -07:00
Matt Bierner
72cbf699d8 Split out main thread webview panels into own class/file 2020-08-26 16:46:26 -07:00
Matt Bierner
7e4ccf1676 Rename WebviewPanelHandle -> WebviewHandle 2020-08-26 16:46:25 -07:00
Matt Bierner
79d7a9569d Undoing exthost side of the webview serializer split 2020-08-26 16:46:25 -07:00
Matt Bierner
51ba70d426 Undo split of serializers into own main thread class
The serializers belong with the panels, not in their own class
2020-08-26 16:46:25 -07:00
Matt Bierner
4d88b39b7d Split up main thread webview services 2020-08-26 16:46:25 -07:00
Alexandru Dima
f59e0c1460 Merge pull request #105437 from microsoft/rmacfarlane/earlyAuth 2020-08-26 20:43:24 +02:00
Alex Dima
27082f3dbb Use an enum instead of a boolean to signal eager activation 2020-08-26 20:17:04 +02:00
rebornix
32f29cfdca transient outputs. 2020-08-26 10:51:46 -07:00
rebornix
7c986e94f4 transient metadata 2020-08-26 10:16:22 -07:00
Johannes Rieken
600d8a51cb tweak workspace edit dto and handling https://github.com/microsoft/vscode/issues/105283 2020-08-26 18:31:16 +02:00
Rachel Macfarlane
8871a28963 Make github-authentication a UI extension again 2020-08-26 09:01:42 -07:00
Matt Bierner
8ba70d8bdc Revert "Make github-authentication a UI extension again"
This reverts commit cd55420e7e.

This change seems to have caused issues activating extensions
2020-08-24 20:19:58 -07:00
Rachel Macfarlane
cd55420e7e Make github-authentication a UI extension again 2020-08-24 18:44:14 -07:00
Johannes Rieken
834a380d93 add replaceCells to notebook edit builder, also refactor cell source to only be a string, not an array 2020-08-24 11:33:05 +02:00
Connor Peet
d20e086afc Merge branch 'connor4312/rm-old-renderer-api' 2020-08-21 09:12:08 -07:00
Martin Aeschlimann
fae07df7c3 onTypeRename: wordPattern (for #104823) 2020-08-21 13:54:43 +02:00
Matt Bierner
daf5143e35 Split webview serializers into own ext host service 2020-08-20 16:45:45 -07:00
Matt Bierner
6db81f6ab2 Move custom editors into own ext host services 2020-08-20 16:45:45 -07:00
Matt Bierner
4fd7f660a4 Move webview views into own ext host class
Also fixes message passing for webview views
2020-08-20 16:45:45 -07:00
Matt Bierner
61f799f53b Add proposed webview view API (#104601)
Add proposed webview view API

For #46585

This adds a new `WebviewView` proposed api to VS Code that lets webview be used inside views. Webview views can be contributed using a contribution point such as :

```json
    "views": {
      "explorer": [
        {
          "type": "webview",
          "id": "cats.cat",
          "name": "Cats",
          "visibility": "visible"
        }
      ]
    },
```

* Use proper activation event

* Transparent background

* Fix resize observer

* Adding documentation

* Move webview view to new directory under workbench

* Remove resolver

By moving the webviews view into their own fodler, I was able to avoid the cycle the resolver was originally introduced for

* Use enum in more places

* Hook up title and visible properties for webview views

* Remove test view

* Prefer Thenable

* Add unknown view type error to collector
2020-08-20 13:59:22 -07:00
Alex Ross
640caaef05 Finalize task custom execution variable resolving
Fixes #81007
2020-08-20 13:49:20 +02:00
Connor Peet
24b712d7c2 notebooks: remove impure renderer API
This removes the initial notebook renderer API and keeps the 'pure'
renderer API described in #102644 and hacked-in previously.

Remaining work in this area, in no particular order:

- Add messaging context to postMessage as requested by Don (API proposal TBA)
- Cleanups around how state is managed internally in the backLayerWebView
- Deprecate the renderer `viewType` in favor of calling it the `id` or `rendererId`

Q: I kept around some of the "transform" functions since the mime type
picking happens there, not sure if there's a better place for this
to happen now, or whether these methods should simply be renamed.
2020-08-19 15:47:02 -07:00
Andre Weinand
c233bf87bc add API to access DAP breakpoints; see #99716 2020-08-17 12:30:02 +02:00