@theia/plugin-ext 1.40.1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/collections.d.ts +4 -0
- package/lib/common/collections.d.ts.map +1 -1
- package/lib/common/collections.js +17 -1
- package/lib/common/collections.js.map +1 -1
- package/lib/common/errors.d.ts +14 -0
- package/lib/common/errors.d.ts.map +1 -1
- package/lib/common/errors.js +17 -1
- package/lib/common/errors.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +286 -6
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js +20 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/plugin-protocol.d.ts +27 -5
- package/lib/common/plugin-protocol.d.ts.map +1 -1
- package/lib/common/plugin-protocol.js.map +1 -1
- package/lib/hosted/browser/hosted-plugin.d.ts +5 -2
- package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/browser/hosted-plugin.js +21 -12
- package/lib/hosted/browser/hosted-plugin.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.js +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.js.map +1 -1
- package/lib/hosted/node/plugin-reader.d.ts +1 -1
- package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
- package/lib/hosted/node/plugin-reader.js +1 -1
- package/lib/hosted/node/plugin-reader.js.map +1 -1
- package/lib/hosted/node/scanners/grammars-reader.d.ts +1 -1
- package/lib/hosted/node/scanners/grammars-reader.d.ts.map +1 -1
- package/lib/hosted/node/scanners/grammars-reader.js +5 -5
- package/lib/hosted/node/scanners/grammars-reader.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts +6 -6
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.js +54 -41
- package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
- package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -1
- package/lib/main/browser/editors-and-documents-main.js +1 -0
- package/lib/main/browser/editors-and-documents-main.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +6 -4
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/main-context.d.ts.map +1 -1
- package/lib/main/browser/main-context.js +18 -0
- package/lib/main/browser/main-context.js.map +1 -1
- package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +1 -1
- package/lib/main/browser/menus/menus-contribution-handler.js +6 -3
- package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +50 -0
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +189 -0
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -0
- package/lib/main/browser/notebooks/notebook-documents-main.d.ts +22 -0
- package/lib/main/browser/notebooks/notebook-documents-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-documents-main.js +133 -0
- package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -0
- package/lib/main/browser/notebooks/notebook-dto.d.ts +15 -0
- package/lib/main/browser/notebooks/notebook-dto.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-dto.js +138 -0
- package/lib/main/browser/notebooks/notebook-dto.js.map +1 -0
- package/lib/main/browser/notebooks/notebook-editors-main.d.ts +20 -0
- package/lib/main/browser/notebooks/notebook-editors-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-editors-main.js +58 -0
- package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -0
- package/lib/main/browser/notebooks/notebook-kernels-main.d.ts +42 -0
- package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-kernels-main.js +230 -0
- package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -0
- package/lib/main/browser/notebooks/notebook-renderers-main.d.ts +12 -0
- package/lib/main/browser/notebooks/notebook-renderers-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebook-renderers-main.js +39 -0
- package/lib/main/browser/notebooks/notebook-renderers-main.js.map +1 -0
- package/lib/main/browser/notebooks/notebooks-main.d.ts +20 -0
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -0
- package/lib/main/browser/notebooks/notebooks-main.js +103 -0
- package/lib/main/browser/notebooks/notebooks-main.js.map +1 -0
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +35 -0
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -0
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +204 -0
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -0
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts +13 -0
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -0
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +375 -0
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -0
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +52 -0
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -0
- package/{src/typings/index.d.ts → lib/main/browser/notebooks/renderers/webview-communication.js} +8 -11
- package/lib/main/browser/notebooks/renderers/webview-communication.js.map +1 -0
- package/lib/main/browser/plugin-contribution-handler.d.ts +3 -0
- package/lib/main/browser/plugin-contribution-handler.d.ts.map +1 -1
- package/lib/main/browser/plugin-contribution-handler.js +31 -3
- package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.js +3 -2
- package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
- package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -1
- package/lib/main/browser/plugin-icon-theme-service.js +6 -0
- package/lib/main/browser/plugin-icon-theme-service.js.map +1 -1
- package/lib/main/browser/plugin-shared-style.d.ts.map +1 -1
- package/lib/main/browser/plugin-shared-style.js +2 -1
- package/lib/main/browser/plugin-shared-style.js.map +1 -1
- package/lib/main/browser/tasks-main.js +2 -2
- package/lib/main/browser/tasks-main.js.map +1 -1
- package/lib/main/browser/terminal-main.d.ts +2 -2
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/terminal-main.js +4 -4
- package/lib/main/browser/terminal-main.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +3 -1
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +32 -1
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/main/browser/view/tree-views-main.d.ts +2 -1
- package/lib/main/browser/view/tree-views-main.d.ts.map +1 -1
- package/lib/main/browser/view/tree-views-main.js +10 -0
- package/lib/main/browser/view/tree-views-main.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +1 -0
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.js +5 -0
- package/lib/main/browser/webview/webview.js.map +1 -1
- package/lib/main/node/errors.spec.d.ts +2 -0
- package/lib/main/node/errors.spec.d.ts.map +1 -0
- package/lib/main/node/errors.spec.js +36 -0
- package/lib/main/node/errors.spec.js.map +1 -0
- package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts +5 -2
- package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts.map +1 -1
- package/lib/main/node/handlers/plugin-theia-directory-handler.js +14 -8
- package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -1
- package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +2 -1
- package/lib/main/node/handlers/plugin-theia-file-handler.d.ts.map +1 -1
- package/lib/main/node/handlers/plugin-theia-file-handler.js +13 -5
- package/lib/main/node/handlers/plugin-theia-file-handler.js.map +1 -1
- package/lib/main/node/paths/plugin-paths-service.d.ts.map +1 -1
- package/lib/main/node/paths/plugin-paths-service.js +4 -9
- package/lib/main/node/paths/plugin-paths-service.js.map +1 -1
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.js +8 -8
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.js.map +1 -1
- package/lib/main/node/plugin-deployer-entry-impl.d.ts +2 -2
- package/lib/main/node/plugin-deployer-entry-impl.d.ts.map +1 -1
- package/lib/main/node/plugin-deployer-entry-impl.js +9 -7
- package/lib/main/node/plugin-deployer-entry-impl.js.map +1 -1
- package/lib/main/node/plugin-deployer-impl.d.ts +2 -2
- package/lib/main/node/plugin-deployer-impl.d.ts.map +1 -1
- package/lib/main/node/plugin-deployer-impl.js +16 -24
- package/lib/main/node/plugin-deployer-impl.js.map +1 -1
- package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts +2 -2
- package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts.map +1 -1
- package/lib/main/node/plugin-github-resolver.d.ts.map +1 -1
- package/lib/main/node/plugin-github-resolver.js +14 -6
- package/lib/main/node/plugin-github-resolver.js.map +1 -1
- package/lib/main/node/plugin-http-resolver.d.ts.map +1 -1
- package/lib/main/node/plugin-http-resolver.js +14 -6
- package/lib/main/node/plugin-http-resolver.js.map +1 -1
- package/lib/main/node/temp-dir-util.d.ts +1 -0
- package/lib/main/node/temp-dir-util.d.ts.map +1 -1
- package/lib/main/node/temp-dir-util.js +12 -3
- package/lib/main/node/temp-dir-util.js.map +1 -1
- package/lib/plugin/editors-and-documents.d.ts +1 -1
- package/lib/plugin/editors-and-documents.d.ts.map +1 -1
- package/lib/plugin/editors-and-documents.js +1 -1
- package/lib/plugin/editors-and-documents.js.map +1 -1
- package/lib/plugin/notebook/notebook-document.d.ts +62 -0
- package/lib/plugin/notebook/notebook-document.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-document.js +373 -0
- package/lib/plugin/notebook/notebook-document.js.map +1 -0
- package/lib/plugin/notebook/notebook-documents.d.ts +17 -0
- package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-documents.js +48 -0
- package/lib/plugin/notebook/notebook-documents.js.map +1 -0
- package/lib/plugin/notebook/notebook-editor.d.ts +21 -0
- package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-editor.js +99 -0
- package/lib/plugin/notebook/notebook-editor.js.map +1 -0
- package/lib/plugin/notebook/notebook-editors.d.ts +14 -0
- package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-editors.js +65 -0
- package/lib/plugin/notebook/notebook-editors.js.map +1 -0
- package/lib/plugin/notebook/notebook-kernels.d.ts +37 -0
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-kernels.js +516 -0
- package/lib/plugin/notebook/notebook-kernels.js.map +1 -0
- package/lib/plugin/notebook/notebook-renderers.d.ts +14 -0
- package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -0
- package/lib/plugin/notebook/notebook-renderers.js +63 -0
- package/lib/plugin/notebook/notebook-renderers.js.map +1 -0
- package/lib/plugin/notebook/notebooks.d.ts +57 -0
- package/lib/plugin/notebook/notebooks.d.ts.map +1 -0
- package/lib/plugin/notebook/notebooks.js +295 -0
- package/lib/plugin/notebook/notebooks.js.map +1 -0
- package/lib/plugin/plugin-context.d.ts +2 -2
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +79 -59
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts +2 -0
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-manager.js +9 -1
- package/lib/plugin/plugin-manager.js.map +1 -1
- package/lib/plugin/tasks/task-provider.d.ts +2 -2
- package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
- package/lib/plugin/tasks/task-provider.js +7 -10
- package/lib/plugin/tasks/task-provider.js.map +1 -1
- package/lib/plugin/tasks/tasks.d.ts +3 -2
- package/lib/plugin/tasks/tasks.d.ts.map +1 -1
- package/lib/plugin/tasks/tasks.js +18 -13
- package/lib/plugin/tasks/tasks.js.map +1 -1
- package/lib/plugin/terminal-ext.d.ts +3 -0
- package/lib/plugin/terminal-ext.d.ts.map +1 -1
- package/lib/plugin/terminal-ext.js +11 -1
- package/lib/plugin/terminal-ext.js.map +1 -1
- package/lib/plugin/tree/tree-views.d.ts +15 -5
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.js +52 -3
- package/lib/plugin/tree/tree-views.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +60 -0
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +372 -13
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +68 -29
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +123 -44
- package/lib/plugin/types-impl.js.map +1 -1
- package/package.json +31 -29
- package/src/common/collections.ts +17 -0
- package/src/common/errors.ts +26 -0
- package/src/common/plugin-api-rpc.ts +340 -5
- package/src/common/plugin-protocol.ts +23 -5
- package/src/hosted/browser/hosted-plugin.ts +21 -14
- package/src/hosted/node/hosted-plugin-deployer-handler.ts +1 -1
- package/src/hosted/node/plugin-reader.ts +1 -1
- package/src/hosted/node/scanners/grammars-reader.ts +6 -5
- package/src/hosted/node/scanners/scanner-theia.ts +55 -41
- package/src/main/browser/custom-editors/custom-editor-widget.ts +1 -1
- package/src/main/browser/custom-editors/custom-editors-main.ts +1 -1
- package/src/main/browser/editors-and-documents-main.ts +1 -0
- package/src/main/browser/languages-main.ts +7 -4
- package/src/main/browser/main-context.ts +19 -0
- package/src/main/browser/menus/menus-contribution-handler.ts +7 -4
- package/src/main/browser/notebooks/notebook-documents-and-editors-main.ts +238 -0
- package/src/main/browser/notebooks/notebook-documents-main.ts +166 -0
- package/src/main/browser/notebooks/notebook-dto.ts +141 -0
- package/src/main/browser/notebooks/notebook-editors-main.ts +70 -0
- package/src/main/browser/notebooks/notebook-kernels-main.ts +291 -0
- package/src/main/browser/notebooks/notebook-renderers-main.ts +47 -0
- package/src/main/browser/notebooks/notebooks-main.ts +124 -0
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +198 -0
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +476 -0
- package/src/main/browser/notebooks/renderers/webview-communication.ts +79 -0
- package/src/main/browser/plugin-contribution-handler.ts +36 -3
- package/src/main/browser/plugin-ext-frontend-module.ts +7 -3
- package/src/main/browser/plugin-icon-theme-service.ts +6 -0
- package/src/main/browser/plugin-shared-style.ts +2 -1
- package/src/main/browser/tasks-main.ts +4 -4
- package/src/main/browser/terminal-main.ts +5 -5
- package/src/main/browser/view/tree-view-widget.tsx +36 -2
- package/src/main/browser/view/tree-views-main.ts +8 -0
- package/src/main/browser/webview/webview.ts +6 -0
- package/src/main/node/errors.spec.ts +37 -0
- package/src/main/node/handlers/plugin-theia-directory-handler.ts +18 -8
- package/src/main/node/handlers/plugin-theia-file-handler.ts +18 -6
- package/src/main/node/paths/plugin-paths-service.ts +5 -10
- package/src/main/node/plugin-deployer-directory-handler-context-impl.ts +8 -8
- package/src/main/node/plugin-deployer-entry-impl.ts +9 -7
- package/src/main/node/plugin-deployer-impl.ts +20 -28
- package/src/main/node/plugin-deployer-proxy-entry-impl.ts +2 -2
- package/src/main/node/plugin-github-resolver.ts +15 -8
- package/src/main/node/plugin-http-resolver.ts +15 -8
- package/src/main/node/temp-dir-util.ts +11 -2
- package/src/plugin/editors-and-documents.ts +1 -1
- package/src/plugin/notebook/notebook-document.ts +438 -0
- package/src/plugin/notebook/notebook-documents.ts +58 -0
- package/src/plugin/notebook/notebook-editor.ts +116 -0
- package/src/plugin/notebook/notebook-editors.ts +71 -0
- package/src/plugin/notebook/notebook-kernels.ts +616 -0
- package/src/plugin/notebook/notebook-renderers.ts +72 -0
- package/src/plugin/notebook/notebooks.ts +385 -0
- package/src/plugin/plugin-context.ts +77 -70
- package/src/plugin/plugin-manager.ts +9 -1
- package/src/plugin/tasks/task-provider.ts +9 -12
- package/src/plugin/tasks/tasks.ts +18 -13
- package/src/plugin/terminal-ext.ts +13 -1
- package/src/plugin/tree/tree-views.ts +57 -7
- package/src/plugin/type-converters.ts +370 -12
- package/src/plugin/types-impl.ts +162 -58
- package/lib/main/browser/custom-editors/undo-redo-service.d.ts +0 -24
- package/lib/main/browser/custom-editors/undo-redo-service.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/undo-redo-service.js +0 -111
- package/lib/main/browser/custom-editors/undo-redo-service.js.map +0 -1
- package/src/main/browser/custom-editors/undo-redo-service.ts +0 -120
package/package.json
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
4
4
|
"description": "Theia - Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/bulk-edit": "1.
|
|
9
|
-
"@theia/callhierarchy": "1.
|
|
10
|
-
"@theia/console": "1.
|
|
11
|
-
"@theia/core": "1.
|
|
12
|
-
"@theia/debug": "1.
|
|
13
|
-
"@theia/editor": "1.
|
|
14
|
-
"@theia/editor-preview": "1.
|
|
15
|
-
"@theia/file-search": "1.
|
|
16
|
-
"@theia/filesystem": "1.
|
|
17
|
-
"@theia/markers": "1.
|
|
18
|
-
"@theia/messages": "1.
|
|
19
|
-
"@theia/monaco": "1.
|
|
8
|
+
"@theia/bulk-edit": "1.41.0",
|
|
9
|
+
"@theia/callhierarchy": "1.41.0",
|
|
10
|
+
"@theia/console": "1.41.0",
|
|
11
|
+
"@theia/core": "1.41.0",
|
|
12
|
+
"@theia/debug": "1.41.0",
|
|
13
|
+
"@theia/editor": "1.41.0",
|
|
14
|
+
"@theia/editor-preview": "1.41.0",
|
|
15
|
+
"@theia/file-search": "1.41.0",
|
|
16
|
+
"@theia/filesystem": "1.41.0",
|
|
17
|
+
"@theia/markers": "1.41.0",
|
|
18
|
+
"@theia/messages": "1.41.0",
|
|
19
|
+
"@theia/monaco": "1.41.0",
|
|
20
20
|
"@theia/monaco-editor-core": "1.72.3",
|
|
21
|
-
"@theia/navigator": "1.
|
|
22
|
-
"@theia/
|
|
23
|
-
"@theia/
|
|
24
|
-
"@theia/
|
|
25
|
-
"@theia/
|
|
26
|
-
"@theia/
|
|
27
|
-
"@theia/
|
|
28
|
-
"@theia/
|
|
29
|
-
"@theia/
|
|
30
|
-
"@theia/
|
|
31
|
-
"@theia/
|
|
32
|
-
"@theia/
|
|
21
|
+
"@theia/navigator": "1.41.0",
|
|
22
|
+
"@theia/notebook": "1.41.0",
|
|
23
|
+
"@theia/output": "1.41.0",
|
|
24
|
+
"@theia/plugin": "1.41.0",
|
|
25
|
+
"@theia/preferences": "1.41.0",
|
|
26
|
+
"@theia/scm": "1.41.0",
|
|
27
|
+
"@theia/search-in-workspace": "1.41.0",
|
|
28
|
+
"@theia/task": "1.41.0",
|
|
29
|
+
"@theia/terminal": "1.41.0",
|
|
30
|
+
"@theia/timeline": "1.41.0",
|
|
31
|
+
"@theia/typehierarchy": "1.41.0",
|
|
32
|
+
"@theia/variable-resolver": "1.41.0",
|
|
33
|
+
"@theia/workspace": "1.41.0",
|
|
33
34
|
"@types/mime": "^2.0.1",
|
|
34
35
|
"@vscode/debugprotocol": "^1.51.0",
|
|
35
36
|
"@vscode/proxy-agent": "^0.13.2",
|
|
37
|
+
"async-mutex": "^0.4.0",
|
|
36
38
|
"decompress": "^4.2.1",
|
|
37
39
|
"escape-html": "^1.0.3",
|
|
38
40
|
"filenamify": "^4.1.0",
|
|
39
41
|
"is-electron": "^2.2.0",
|
|
40
42
|
"jsonc-parser": "^2.2.0",
|
|
41
43
|
"lodash.clonedeep": "^4.5.0",
|
|
42
|
-
"macaddress": "^0.
|
|
44
|
+
"macaddress": "^0.5.3",
|
|
43
45
|
"mime": "^2.4.4",
|
|
44
46
|
"ps-tree": "^1.2.0",
|
|
45
|
-
"semver": "^5.4
|
|
47
|
+
"semver": "^7.5.4",
|
|
46
48
|
"uuid": "^8.0.0",
|
|
47
49
|
"vhost": "^3.0.2",
|
|
48
50
|
"vscode-textmate": "^7.0.3"
|
|
@@ -85,7 +87,7 @@
|
|
|
85
87
|
"watch": "theiaext watch"
|
|
86
88
|
},
|
|
87
89
|
"devDependencies": {
|
|
88
|
-
"@theia/ext-scripts": "1.
|
|
90
|
+
"@theia/ext-scripts": "1.41.0",
|
|
89
91
|
"@types/decompress": "^4.2.2",
|
|
90
92
|
"@types/escape-html": "^0.0.20",
|
|
91
93
|
"@types/lodash.clonedeep": "^4.5.3",
|
|
@@ -94,5 +96,5 @@
|
|
|
94
96
|
"nyc": {
|
|
95
97
|
"extends": "../../configs/nyc.json"
|
|
96
98
|
},
|
|
97
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "180103ad086fc0a5e4e5fc01b5fcb43f06019eb1"
|
|
98
100
|
}
|
|
@@ -35,3 +35,20 @@ export function diffSets<T>(before: Set<T>, after: Set<T>): { removed: T[]; adde
|
|
|
35
35
|
}
|
|
36
36
|
return { removed, added };
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
export function diffMaps<K, V>(before: Map<K, V>, after: Map<K, V>): { removed: V[]; added: V[] } {
|
|
40
|
+
const removed: V[] = [];
|
|
41
|
+
const added: V[] = [];
|
|
42
|
+
for (const [index, value] of before) {
|
|
43
|
+
if (!after.has(index)) {
|
|
44
|
+
removed.push(value);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
for (const [index, value] of after) {
|
|
48
|
+
if (!before.has(index)) {
|
|
49
|
+
added.push(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return { removed, added };
|
|
53
|
+
}
|
|
54
|
+
|
package/src/common/errors.ts
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
+
import { isObject } from '@theia/core/lib/common/types';
|
|
18
|
+
|
|
17
19
|
export function illegalArgument(message?: string): Error {
|
|
18
20
|
if (message) {
|
|
19
21
|
return new Error(`Illegal argument: ${message}`);
|
|
@@ -35,3 +37,27 @@ export function disposed(what: string): Error {
|
|
|
35
37
|
result.name = 'DISPOSED';
|
|
36
38
|
return result;
|
|
37
39
|
}
|
|
40
|
+
|
|
41
|
+
interface Errno {
|
|
42
|
+
readonly code: string;
|
|
43
|
+
readonly errno: number
|
|
44
|
+
}
|
|
45
|
+
const ENOENT = 'ENOENT' as const;
|
|
46
|
+
|
|
47
|
+
type ErrnoException = Error & Errno;
|
|
48
|
+
function isErrnoException(arg: unknown): arg is ErrnoException {
|
|
49
|
+
return arg instanceof Error
|
|
50
|
+
&& isObject<Partial<Errno>>(arg)
|
|
51
|
+
&& typeof arg.code === 'string'
|
|
52
|
+
&& typeof arg.errno === 'number';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* _(No such file or directory)_: Commonly raised by `fs` operations to indicate that a component of the specified pathname does not exist — no entity (file or directory) could be
|
|
57
|
+
* found by the given path.
|
|
58
|
+
*/
|
|
59
|
+
export function isENOENT(
|
|
60
|
+
arg: unknown
|
|
61
|
+
): arg is ErrnoException & Readonly<{ code: typeof ENOENT }> {
|
|
62
|
+
return isErrnoException(arg) && arg.code === ENOENT;
|
|
63
|
+
}
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
FileOperationOptions,
|
|
30
30
|
TextDocumentChangeReason,
|
|
31
31
|
IndentAction,
|
|
32
|
+
NotebookRendererScript,
|
|
32
33
|
} from '../plugin/types-impl';
|
|
33
34
|
import { UriComponents } from './uri-components';
|
|
34
35
|
import {
|
|
@@ -111,13 +112,16 @@ import type {
|
|
|
111
112
|
TimelineChangeEvent,
|
|
112
113
|
TimelineProviderDescriptor
|
|
113
114
|
} from '@theia/timeline/lib/common/timeline-model';
|
|
114
|
-
import { SerializableEnvironmentVariableCollection } from '@theia/terminal/lib/common/base-terminal-protocol';
|
|
115
|
+
import { SerializableEnvironmentVariableCollection, SerializableExtensionEnvironmentVariableCollection } from '@theia/terminal/lib/common/base-terminal-protocol';
|
|
115
116
|
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
116
117
|
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
117
118
|
import { isString, isObject, PickOptions, QuickInputButtonHandle } from '@theia/core/lib/common';
|
|
118
119
|
import { Severity } from '@theia/core/lib/common/severity';
|
|
119
120
|
import { DebugConfiguration, DebugSessionOptions } from '@theia/debug/lib/common/debug-configuration';
|
|
121
|
+
import * as notebookCommon from '@theia/notebook/lib/common';
|
|
122
|
+
import { CellExecutionUpdateType, CellRange, NotebookCellExecutionState } from '@theia/notebook/lib/common';
|
|
120
123
|
import { LanguagePackBundle } from './language-pack-service';
|
|
124
|
+
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
121
125
|
|
|
122
126
|
export interface PreferenceData {
|
|
123
127
|
[scope: number]: any;
|
|
@@ -404,7 +408,7 @@ export interface TerminalServiceMain {
|
|
|
404
408
|
*/
|
|
405
409
|
$disposeByTerminalId(id: number, waitOnExit?: boolean | string): void;
|
|
406
410
|
|
|
407
|
-
$setEnvironmentVariableCollection(
|
|
411
|
+
$setEnvironmentVariableCollection(persistent: boolean, collection: SerializableExtensionEnvironmentVariableCollection): void;
|
|
408
412
|
|
|
409
413
|
/**
|
|
410
414
|
* Set the terminal widget name.
|
|
@@ -736,6 +740,7 @@ export interface DialogsMain {
|
|
|
736
740
|
}
|
|
737
741
|
|
|
738
742
|
export interface RegisterTreeDataProviderOptions {
|
|
743
|
+
manageCheckboxStateManually?: boolean;
|
|
739
744
|
showCollapseAll?: boolean
|
|
740
745
|
canSelectMany?: boolean
|
|
741
746
|
dragMimeTypes?: string[]
|
|
@@ -768,6 +773,7 @@ export class DataTransferFileDTO {
|
|
|
768
773
|
}
|
|
769
774
|
|
|
770
775
|
export interface TreeViewsExt {
|
|
776
|
+
$checkStateChanged(treeViewId: string, itemIds: { id: string, checked: boolean }[]): Promise<void>;
|
|
771
777
|
$dragStarted(treeViewId: string, treeItemIds: string[], token: CancellationToken): Promise<UriComponents[] | undefined>;
|
|
772
778
|
$dragEnd(treeViewId: string): Promise<void>;
|
|
773
779
|
$drop(treeViewId: string, treeItemId: string | undefined, dataTransferItems: [string, string | DataTransferFileDTO][], token: CancellationToken): Promise<void>;
|
|
@@ -779,6 +785,12 @@ export interface TreeViewsExt {
|
|
|
779
785
|
$setVisible(treeViewId: string, visible: boolean): Promise<void>;
|
|
780
786
|
}
|
|
781
787
|
|
|
788
|
+
export interface TreeViewItemCheckboxInfo {
|
|
789
|
+
checked: boolean;
|
|
790
|
+
tooltip?: string;
|
|
791
|
+
accessibilityInformation?: AccessibilityInformation
|
|
792
|
+
}
|
|
793
|
+
|
|
782
794
|
export interface TreeViewItem {
|
|
783
795
|
|
|
784
796
|
id: string;
|
|
@@ -801,6 +813,8 @@ export interface TreeViewItem {
|
|
|
801
813
|
|
|
802
814
|
collapsibleState?: TreeViewItemCollapsibleState;
|
|
803
815
|
|
|
816
|
+
checkboxInfo?: TreeViewItemCheckboxInfo;
|
|
817
|
+
|
|
804
818
|
contextValue?: string;
|
|
805
819
|
|
|
806
820
|
command?: Command;
|
|
@@ -1272,6 +1286,7 @@ export interface ModelAddedData {
|
|
|
1272
1286
|
uri: UriComponents;
|
|
1273
1287
|
versionId: number;
|
|
1274
1288
|
lines: string[];
|
|
1289
|
+
languageId?: string;
|
|
1275
1290
|
EOL: string;
|
|
1276
1291
|
modeId: string;
|
|
1277
1292
|
isDirty: boolean;
|
|
@@ -1472,8 +1487,37 @@ export interface WorkspaceEditMetadataDto {
|
|
|
1472
1487
|
isRefactoring?: boolean;
|
|
1473
1488
|
}
|
|
1474
1489
|
|
|
1490
|
+
export type CellEditOperationDto =
|
|
1491
|
+
{
|
|
1492
|
+
editType: notebookCommon.CellEditType.Metadata;
|
|
1493
|
+
index: number;
|
|
1494
|
+
metadata: Record<string, unknown>;
|
|
1495
|
+
} |
|
|
1496
|
+
{
|
|
1497
|
+
editType: notebookCommon.CellEditType.DocumentMetadata;
|
|
1498
|
+
metadata: Record<string, unknown>;
|
|
1499
|
+
} |
|
|
1500
|
+
{
|
|
1501
|
+
editType: notebookCommon.CellEditType.Replace;
|
|
1502
|
+
index: number;
|
|
1503
|
+
count: number;
|
|
1504
|
+
cells: NotebookCellDataDto[];
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
export interface NotebookWorkspaceEditMetadataDto {
|
|
1508
|
+
needsConfirmation: boolean;
|
|
1509
|
+
label: string;
|
|
1510
|
+
description?: string;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export interface WorkspaceNotebookCellEditDto {
|
|
1514
|
+
metadata?: NotebookWorkspaceEditMetadataDto;
|
|
1515
|
+
resource: UriComponents;
|
|
1516
|
+
cellEdit: CellEditOperationDto;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1475
1519
|
export interface WorkspaceEditDto {
|
|
1476
|
-
edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto>;
|
|
1520
|
+
edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto | WorkspaceNotebookCellEditDto>;
|
|
1477
1521
|
}
|
|
1478
1522
|
|
|
1479
1523
|
export interface CommandProperties {
|
|
@@ -2107,6 +2151,12 @@ export const PLUGIN_RPC_CONTEXT = {
|
|
|
2107
2151
|
MESSAGE_REGISTRY_MAIN: <ProxyIdentifier<MessageRegistryMain>>createProxyIdentifier<MessageRegistryMain>('MessageRegistryMain'),
|
|
2108
2152
|
TEXT_EDITORS_MAIN: createProxyIdentifier<TextEditorsMain>('TextEditorsMain'),
|
|
2109
2153
|
DOCUMENTS_MAIN: createProxyIdentifier<DocumentsMain>('DocumentsMain'),
|
|
2154
|
+
NOTEBOOKS_MAIN: createProxyIdentifier<NotebooksMain>('NotebooksMain'),
|
|
2155
|
+
NOTEBOOK_DOCUMENTS_MAIN: createProxyIdentifier<NotebookDocumentsMain>('NotebookDocumentsMain'),
|
|
2156
|
+
NOTEBOOK_EDITORS_MAIN: createProxyIdentifier<NotebookEditorsMain>('NotebookEditorsMain'),
|
|
2157
|
+
NOTEBOOK_DOCUMENTS_AND_EDITORS_MAIN: createProxyIdentifier<NotebookDocumentsAndEditorsMain>('NotebooksAndEditorsMain'),
|
|
2158
|
+
NOTEBOOK_RENDERERS_MAIN: createProxyIdentifier<NotebookRenderersMain>('NotebookRenderersMain'),
|
|
2159
|
+
NOTEBOOK_KERNELS_MAIN: createProxyIdentifier<NotebookKernelsMain>('NotebookKernelsMain'),
|
|
2110
2160
|
STATUS_BAR_MESSAGE_REGISTRY_MAIN: <ProxyIdentifier<StatusBarMessageRegistryMain>>createProxyIdentifier<StatusBarMessageRegistryMain>('StatusBarMessageRegistryMain'),
|
|
2111
2161
|
ENV_MAIN: createProxyIdentifier<EnvMain>('EnvMain'),
|
|
2112
2162
|
NOTIFICATION_MAIN: createProxyIdentifier<NotificationMain>('NotificationMain'),
|
|
@@ -2148,6 +2198,11 @@ export const MAIN_RPC_CONTEXT = {
|
|
|
2148
2198
|
TEXT_EDITORS_EXT: createProxyIdentifier<TextEditorsExt>('TextEditorsExt'),
|
|
2149
2199
|
EDITORS_AND_DOCUMENTS_EXT: createProxyIdentifier<EditorsAndDocumentsExt>('EditorsAndDocumentsExt'),
|
|
2150
2200
|
DOCUMENTS_EXT: createProxyIdentifier<DocumentsExt>('DocumentsExt'),
|
|
2201
|
+
NOTEBOOKS_EXT: createProxyIdentifier<NotebooksExt>('NotebooksExt'),
|
|
2202
|
+
NOTEBOOK_DOCUMENTS_EXT: createProxyIdentifier<NotebookDocumentsExt>('NotebookDocumentsExt'),
|
|
2203
|
+
NOTEBOOK_EDITORS_EXT: createProxyIdentifier<NotebookEditorsExt>('NotebookEditorsExt'),
|
|
2204
|
+
NOTEBOOK_RENDERERS_EXT: createProxyIdentifier<NotebookRenderersExt>('NotebooksExt'),
|
|
2205
|
+
NOTEBOOK_KERNELS_EXT: createProxyIdentifier<NotebookKernelsExt>('NotebookKernelsExt'),
|
|
2151
2206
|
TERMINAL_EXT: createProxyIdentifier<TerminalServiceExt>('TerminalServiceExt'),
|
|
2152
2207
|
OUTPUT_CHANNEL_REGISTRY_EXT: createProxyIdentifier<OutputChannelRegistryExt>('OutputChannelRegistryExt'),
|
|
2153
2208
|
TREE_VIEWS_EXT: createProxyIdentifier<TreeViewsExt>('TreeViewsExt'),
|
|
@@ -2175,8 +2230,8 @@ export const MAIN_RPC_CONTEXT = {
|
|
|
2175
2230
|
|
|
2176
2231
|
export interface TasksExt {
|
|
2177
2232
|
$initLoadedTasks(executions: TaskExecutionDto[]): Promise<void>;
|
|
2178
|
-
$provideTasks(handle: number): Promise<TaskDto[]
|
|
2179
|
-
$resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto
|
|
2233
|
+
$provideTasks(handle: number): Promise<TaskDto[]>;
|
|
2234
|
+
$resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto>;
|
|
2180
2235
|
$onDidStartTask(execution: TaskExecutionDto, terminalId: number): void;
|
|
2181
2236
|
$onDidEndTask(id: number): void;
|
|
2182
2237
|
$onDidStartTaskProcess(processId: number | undefined, execution: TaskExecutionDto): void;
|
|
@@ -2208,6 +2263,286 @@ export interface AuthenticationMain {
|
|
|
2208
2263
|
options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
|
|
2209
2264
|
}
|
|
2210
2265
|
|
|
2266
|
+
export interface NotebookOutputItemDto {
|
|
2267
|
+
readonly mime: string;
|
|
2268
|
+
readonly valueBytes: BinaryBuffer;
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
export interface NotebookOutputDto {
|
|
2272
|
+
outputId: string;
|
|
2273
|
+
items: NotebookOutputItemDto[];
|
|
2274
|
+
metadata?: Record<string, any>;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
export interface NotebookCellDataDto {
|
|
2278
|
+
source: string;
|
|
2279
|
+
language: string;
|
|
2280
|
+
cellKind: notebookCommon.CellKind;
|
|
2281
|
+
outputs: NotebookOutputDto[];
|
|
2282
|
+
metadata?: notebookCommon.NotebookCellMetadata;
|
|
2283
|
+
internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2286
|
+
export interface NotebookDataDto {
|
|
2287
|
+
readonly cells: NotebookCellDataDto[];
|
|
2288
|
+
readonly metadata: notebookCommon.NotebookDocumentMetadata;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
export interface NotebookCellDto {
|
|
2292
|
+
handle: number;
|
|
2293
|
+
uri: UriComponents;
|
|
2294
|
+
eol: string;
|
|
2295
|
+
source: string[];
|
|
2296
|
+
language: string;
|
|
2297
|
+
mime?: string;
|
|
2298
|
+
cellKind: notebookCommon.CellKind;
|
|
2299
|
+
outputs: NotebookOutputDto[];
|
|
2300
|
+
metadata?: notebookCommon.NotebookCellMetadata;
|
|
2301
|
+
internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
export interface NotebookModelAddedData {
|
|
2305
|
+
uri: UriComponents;
|
|
2306
|
+
versionId: number;
|
|
2307
|
+
cells: NotebookCellDto[];
|
|
2308
|
+
viewType: string;
|
|
2309
|
+
metadata?: notebookCommon.NotebookDocumentMetadata;
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
export interface NotebookEditorAddData {
|
|
2313
|
+
id: string;
|
|
2314
|
+
documentUri: UriComponents;
|
|
2315
|
+
selections: CellRange[];
|
|
2316
|
+
visibleRanges: CellRange[];
|
|
2317
|
+
viewColumn?: number;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
export interface NotebookDocumentsAndEditorsDelta {
|
|
2321
|
+
removedDocuments?: UriComponents[];
|
|
2322
|
+
addedDocuments?: NotebookModelAddedData[];
|
|
2323
|
+
removedEditors?: string[];
|
|
2324
|
+
addedEditors?: NotebookEditorAddData[];
|
|
2325
|
+
newActiveEditor?: string | null;
|
|
2326
|
+
visibleEditors?: string[];
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
export type NotebookCellStatusBarEntryDto = notebookCommon.NotebookCellStatusBarItem;
|
|
2330
|
+
|
|
2331
|
+
export interface NotebookCellStatusBarListDto {
|
|
2332
|
+
items: NotebookCellStatusBarEntryDto[];
|
|
2333
|
+
cacheId: number;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2336
|
+
export type NotebookRawContentEventDto =
|
|
2337
|
+
// notebookCommon.NotebookCellsInitializeEvent<NotebookCellDto>
|
|
2338
|
+
| {
|
|
2339
|
+
|
|
2340
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.ModelChange;
|
|
2341
|
+
readonly changes: notebookCommon.NotebookCellTextModelSplice<NotebookCellDto>[];
|
|
2342
|
+
}
|
|
2343
|
+
| {
|
|
2344
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.Move;
|
|
2345
|
+
readonly index: number;
|
|
2346
|
+
readonly length: number;
|
|
2347
|
+
readonly newIdx: number;
|
|
2348
|
+
}
|
|
2349
|
+
| {
|
|
2350
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.Output;
|
|
2351
|
+
readonly index: number;
|
|
2352
|
+
readonly outputs: NotebookOutputDto[];
|
|
2353
|
+
}
|
|
2354
|
+
| {
|
|
2355
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.OutputItem;
|
|
2356
|
+
readonly index: number;
|
|
2357
|
+
readonly outputId: string;
|
|
2358
|
+
readonly outputItems: NotebookOutputItemDto[];
|
|
2359
|
+
readonly append: boolean;
|
|
2360
|
+
}
|
|
2361
|
+
| notebookCommon.NotebookCellsChangeLanguageEvent
|
|
2362
|
+
| notebookCommon.NotebookCellsChangeMetadataEvent
|
|
2363
|
+
| notebookCommon.NotebookCellsChangeInternalMetadataEvent
|
|
2364
|
+
| notebookCommon.NotebookCellContentChangeEvent
|
|
2365
|
+
;
|
|
2366
|
+
|
|
2367
|
+
export interface NotebookCellsChangedEventDto {
|
|
2368
|
+
readonly rawEvents: NotebookRawContentEventDto[];
|
|
2369
|
+
readonly versionId: number;
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
export interface NotebookSelectionChangeEvent {
|
|
2373
|
+
selections: CellRange[];
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
export interface NotebookVisibleRangesEvent {
|
|
2377
|
+
ranges: CellRange[];
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
export interface NotebookEditorPropertiesChangeData {
|
|
2381
|
+
visibleRanges?: NotebookVisibleRangesEvent;
|
|
2382
|
+
selections?: NotebookSelectionChangeEvent;
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
export enum NotebookEditorRevealType {
|
|
2386
|
+
Default = 0,
|
|
2387
|
+
InCenter = 1,
|
|
2388
|
+
InCenterIfOutsideViewport = 2,
|
|
2389
|
+
AtTop = 3
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
export interface NotebookDocumentShowOptions {
|
|
2393
|
+
position?: EditorGroupColumn;
|
|
2394
|
+
preserveFocus?: boolean;
|
|
2395
|
+
pinned?: boolean;
|
|
2396
|
+
selections?: CellRange[];
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
export interface NotebookKernelDto {
|
|
2400
|
+
id: string;
|
|
2401
|
+
notebookType: string;
|
|
2402
|
+
extensionId: string;
|
|
2403
|
+
// extensionLocation: UriComponents;
|
|
2404
|
+
label: string;
|
|
2405
|
+
detail?: string;
|
|
2406
|
+
description?: string;
|
|
2407
|
+
supportedLanguages?: string[];
|
|
2408
|
+
supportsInterrupt?: boolean;
|
|
2409
|
+
supportsExecutionOrder?: boolean;
|
|
2410
|
+
preloads?: { uri: UriComponents; provides: readonly string[] }[];
|
|
2411
|
+
rendererScripts?: NotebookRendererScript[];
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export type CellExecuteUpdateDto = CellExecuteOutputEditDto | CellExecuteOutputItemEditDto | CellExecutionStateUpdateDto;
|
|
2415
|
+
|
|
2416
|
+
export interface CellExecuteOutputEditDto {
|
|
2417
|
+
editType: CellExecutionUpdateType.Output;
|
|
2418
|
+
cellHandle: number;
|
|
2419
|
+
append?: boolean;
|
|
2420
|
+
outputs: NotebookOutputDto[];
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
export interface CellExecuteOutputItemEditDto {
|
|
2424
|
+
editType: CellExecutionUpdateType.OutputItems;
|
|
2425
|
+
append?: boolean;
|
|
2426
|
+
items: NotebookOutputItemDto[];
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
export interface CellExecutionStateUpdateDto {
|
|
2430
|
+
editType: CellExecutionUpdateType.ExecutionState;
|
|
2431
|
+
executionOrder?: number;
|
|
2432
|
+
runStartTime?: number;
|
|
2433
|
+
didPause?: boolean;
|
|
2434
|
+
isPaused?: boolean;
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
export interface CellExecutionCompleteDto {
|
|
2438
|
+
runEndTime?: number;
|
|
2439
|
+
lastRunSuccess?: boolean;
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
export interface NotebookKernelSourceActionDto {
|
|
2443
|
+
readonly label: string;
|
|
2444
|
+
readonly description?: string;
|
|
2445
|
+
readonly detail?: string;
|
|
2446
|
+
readonly command?: string | Command;
|
|
2447
|
+
readonly documentation?: UriComponents | string;
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
export interface NotebookEditorAddData {
|
|
2451
|
+
id: string;
|
|
2452
|
+
documentUri: UriComponents;
|
|
2453
|
+
selections: CellRange[];
|
|
2454
|
+
visibleRanges: CellRange[];
|
|
2455
|
+
viewColumn?: number;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
export interface NotebooksExt extends NotebookDocumentsAndEditorsExt {
|
|
2459
|
+
$provideNotebookCellStatusBarItems(handle: number, uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarListDto | undefined>;
|
|
2460
|
+
$releaseNotebookCellStatusBarItems(id: number): void;
|
|
2461
|
+
|
|
2462
|
+
$dataToNotebook(handle: number, data: BinaryBuffer, token: CancellationToken): Promise<NotebookDataDto>;
|
|
2463
|
+
$notebookToData(handle: number, data: NotebookDataDto, token: CancellationToken): Promise<BinaryBuffer>;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2466
|
+
export interface NotebooksMain extends Disposable {
|
|
2467
|
+
$registerNotebookSerializer(handle: number, extension: notebookCommon.NotebookExtensionDescription, viewType: string, options: notebookCommon.TransientOptions): void;
|
|
2468
|
+
$unregisterNotebookSerializer(handle: number): void;
|
|
2469
|
+
|
|
2470
|
+
$registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void>;
|
|
2471
|
+
$unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void>;
|
|
2472
|
+
$emitCellStatusBarEvent(eventHandle: number): void;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
export interface NotebookKernelsExt {
|
|
2476
|
+
$acceptNotebookAssociation(handle: number, uri: UriComponents, value: boolean): void;
|
|
2477
|
+
$executeCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
|
|
2478
|
+
$cancelCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
|
|
2479
|
+
$acceptKernelMessageFromRenderer(handle: number, editorId: string, message: any): void;
|
|
2480
|
+
$cellExecutionChanged(uri: UriComponents, cellHandle: number, state: NotebookCellExecutionState | undefined): void;
|
|
2481
|
+
$provideKernelSourceActions(handle: number, token: CancellationToken): Promise<NotebookKernelSourceActionDto[]>;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
export interface NotebookKernelsMain extends Disposable {
|
|
2485
|
+
$postMessage(handle: number, editorId: string | undefined, message: any): Promise<boolean>;
|
|
2486
|
+
$addKernel(handle: number, data: NotebookKernelDto): Promise<void>;
|
|
2487
|
+
$updateKernel(handle: number, data: Partial<NotebookKernelDto>): void;
|
|
2488
|
+
$removeKernel(handle: number): void;
|
|
2489
|
+
$updateNotebookPriority(handle: number, uri: UriComponents, value: number | undefined): void;
|
|
2490
|
+
|
|
2491
|
+
$createExecution(handle: number, controllerId: string, uri: UriComponents, cellHandle: number): void;
|
|
2492
|
+
$updateExecution(handle: number, data: CellExecuteUpdateDto[]): void;
|
|
2493
|
+
$completeExecution(handle: number, data: CellExecutionCompleteDto): void;
|
|
2494
|
+
|
|
2495
|
+
$createNotebookExecution(handle: number, controllerId: string, uri: UriComponents): void;
|
|
2496
|
+
$beginNotebookExecution(handle: number): void;
|
|
2497
|
+
$completeNotebookExecution(handle: number): void;
|
|
2498
|
+
|
|
2499
|
+
$addKernelDetectionTask(handle: number, notebookType: string): Promise<void>;
|
|
2500
|
+
$removeKernelDetectionTask(handle: number): void;
|
|
2501
|
+
|
|
2502
|
+
$addKernelSourceActionProvider(handle: number, eventHandle: number, notebookType: string): Promise<void>;
|
|
2503
|
+
$removeKernelSourceActionProvider(handle: number, eventHandle: number): void;
|
|
2504
|
+
$emitNotebookKernelSourceActionsChangeEvent(eventHandle: number): void;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
export interface NotebookDocumentsMain extends Disposable {
|
|
2508
|
+
$tryCreateNotebook(options: { viewType: string; content?: NotebookDataDto }): Promise<UriComponents>;
|
|
2509
|
+
$tryOpenNotebook(uriComponents: UriComponents): Promise<UriComponents>;
|
|
2510
|
+
$trySaveNotebook(uri: UriComponents): Promise<boolean>;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
export interface NotebookDocumentsExt {
|
|
2514
|
+
$acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEventDto, isDirty: boolean, newMetadata?: notebookCommon.NotebookDocumentMetadata): void;
|
|
2515
|
+
$acceptDirtyStateChanged(uriComponents: UriComponents, isDirty: boolean): void;
|
|
2516
|
+
$acceptModelSaved(uriComponents: UriComponents): void;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
export interface NotebookDocumentsAndEditorsExt {
|
|
2520
|
+
$acceptDocumentsAndEditorsDelta(delta: NotebookDocumentsAndEditorsDelta): Promise<void>;
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2523
|
+
export interface NotebookDocumentsAndEditorsMain extends Disposable {
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
export type NotebookEditorViewColumnInfo = Record<string, number>;
|
|
2527
|
+
|
|
2528
|
+
export interface NotebookEditorsExt {
|
|
2529
|
+
$acceptEditorPropertiesChanged(id: string, data: NotebookEditorPropertiesChangeData): void;
|
|
2530
|
+
$acceptEditorViewColumns(data: NotebookEditorViewColumnInfo): void;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
export interface NotebookEditorsMain extends Disposable {
|
|
2534
|
+
$tryShowNotebookDocument(uriComponents: UriComponents, viewType: string, options: NotebookDocumentShowOptions): Promise<string>;
|
|
2535
|
+
$tryRevealRange(id: string, range: CellRange, revealType: NotebookEditorRevealType): Promise<void>;
|
|
2536
|
+
$trySetSelections(id: string, range: CellRange[]): void;
|
|
2537
|
+
}
|
|
2538
|
+
export interface NotebookRenderersExt {
|
|
2539
|
+
$postRendererMessage(editorId: string, rendererId: string, message: unknown): void;
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
export interface NotebookRenderersMain extends Disposable {
|
|
2543
|
+
$postMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2211
2546
|
export interface RawColorInfo {
|
|
2212
2547
|
color: [number, number, number, number];
|
|
2213
2548
|
range: Range;
|
|
@@ -99,6 +99,7 @@ export interface PluginPackageContribution {
|
|
|
99
99
|
localizations?: PluginPackageLocalization[];
|
|
100
100
|
terminal?: PluginPackageTerminal;
|
|
101
101
|
notebooks?: PluginPackageNotebook[];
|
|
102
|
+
notebookRenderer?: PluginNotebookRendererContribution[];
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
export interface PluginPackageNotebook {
|
|
@@ -108,6 +109,14 @@ export interface PluginPackageNotebook {
|
|
|
108
109
|
priority?: string;
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
export interface PluginNotebookRendererContribution {
|
|
113
|
+
readonly id: string;
|
|
114
|
+
readonly displayName: string;
|
|
115
|
+
readonly mimeTypes: string[];
|
|
116
|
+
readonly entrypoint: string | { readonly extends: string; readonly path: string };
|
|
117
|
+
readonly requiresMessaging?: 'always' | 'optional' | 'never'
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
export interface PluginPackageAuthenticationProvider {
|
|
112
121
|
id: string;
|
|
113
122
|
label: string;
|
|
@@ -348,7 +357,7 @@ export interface PluginScanner {
|
|
|
348
357
|
*/
|
|
349
358
|
getLifecycle(plugin: PluginPackage): PluginLifecycle;
|
|
350
359
|
|
|
351
|
-
getContribution(plugin: PluginPackage): PluginContribution | undefined
|
|
360
|
+
getContribution(plugin: PluginPackage): Promise<PluginContribution | undefined>;
|
|
352
361
|
|
|
353
362
|
/**
|
|
354
363
|
* A mapping between a dependency as its defined in package.json
|
|
@@ -376,7 +385,7 @@ export interface PluginDeployerResolver {
|
|
|
376
385
|
|
|
377
386
|
export const PluginDeployerDirectoryHandler = Symbol('PluginDeployerDirectoryHandler');
|
|
378
387
|
export interface PluginDeployerDirectoryHandler {
|
|
379
|
-
accept(pluginDeployerEntry: PluginDeployerEntry): boolean
|
|
388
|
+
accept(pluginDeployerEntry: PluginDeployerEntry): Promise<boolean>;
|
|
380
389
|
|
|
381
390
|
handle(context: PluginDeployerDirectoryHandlerContext): Promise<void>;
|
|
382
391
|
}
|
|
@@ -384,7 +393,7 @@ export interface PluginDeployerDirectoryHandler {
|
|
|
384
393
|
export const PluginDeployerFileHandler = Symbol('PluginDeployerFileHandler');
|
|
385
394
|
export interface PluginDeployerFileHandler {
|
|
386
395
|
|
|
387
|
-
accept(pluginDeployerEntry: PluginDeployerEntry): boolean
|
|
396
|
+
accept(pluginDeployerEntry: PluginDeployerEntry): Promise<boolean>;
|
|
388
397
|
|
|
389
398
|
handle(context: PluginDeployerFileHandlerContext): Promise<void>;
|
|
390
399
|
}
|
|
@@ -477,9 +486,9 @@ export interface PluginDeployerEntry {
|
|
|
477
486
|
|
|
478
487
|
getChanges(): string[];
|
|
479
488
|
|
|
480
|
-
isFile(): boolean
|
|
489
|
+
isFile(): Promise<boolean>;
|
|
481
490
|
|
|
482
|
-
isDirectory(): boolean
|
|
491
|
+
isDirectory(): Promise<boolean>;
|
|
483
492
|
|
|
484
493
|
/**
|
|
485
494
|
* Resolved if a resolver has handle this plugin
|
|
@@ -585,6 +594,7 @@ export interface PluginContribution {
|
|
|
585
594
|
localizations?: Localization[];
|
|
586
595
|
terminalProfiles?: TerminalProfile[];
|
|
587
596
|
notebooks?: NotebookContribution[];
|
|
597
|
+
notebookRenderer?: NotebookRendererContribution[];
|
|
588
598
|
}
|
|
589
599
|
|
|
590
600
|
export interface NotebookContribution {
|
|
@@ -594,6 +604,14 @@ export interface NotebookContribution {
|
|
|
594
604
|
priority?: string;
|
|
595
605
|
}
|
|
596
606
|
|
|
607
|
+
export interface NotebookRendererContribution {
|
|
608
|
+
readonly id: string;
|
|
609
|
+
readonly displayName: string;
|
|
610
|
+
readonly mimeTypes: string[];
|
|
611
|
+
readonly entrypoint: string | { readonly extends: string; readonly path: string };
|
|
612
|
+
readonly requiresMessaging?: 'always' | 'optional' | 'never'
|
|
613
|
+
}
|
|
614
|
+
|
|
597
615
|
export interface AuthenticationProviderInformation {
|
|
598
616
|
id: string;
|
|
599
617
|
label: string;
|