@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/common/collections.ts"],"names":[],"mappings":"AAsBA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,CAcvF"}
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/common/collections.ts"],"names":[],"mappings":"AAsBA,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,CAcvF;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAAC,KAAK,EAAE,CAAC,EAAE,CAAA;CAAE,CAchG"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.diffSets = void 0;
|
|
18
|
+
exports.diffMaps = exports.diffSets = void 0;
|
|
19
19
|
/*---------------------------------------------------------------------------------------------
|
|
20
20
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
21
21
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
@@ -37,4 +37,20 @@ function diffSets(before, after) {
|
|
|
37
37
|
return { removed, added };
|
|
38
38
|
}
|
|
39
39
|
exports.diffSets = diffSets;
|
|
40
|
+
function diffMaps(before, after) {
|
|
41
|
+
const removed = [];
|
|
42
|
+
const added = [];
|
|
43
|
+
for (const [index, value] of before) {
|
|
44
|
+
if (!after.has(index)) {
|
|
45
|
+
removed.push(value);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (const [index, value] of after) {
|
|
49
|
+
if (!before.has(index)) {
|
|
50
|
+
added.push(value);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return { removed, added };
|
|
54
|
+
}
|
|
55
|
+
exports.diffMaps = diffMaps;
|
|
40
56
|
//# sourceMappingURL=collections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/common/collections.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF;;;gGAGgG;AAChG,uHAAuH;AAEvH,SAAgB,QAAQ,CAAI,MAAc,EAAE,KAAa;IACrD,MAAM,OAAO,GAAQ,EAAE,CAAC;IACxB,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,KAAK,MAAM,OAAO,IAAI,MAAM,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACzB;KACJ;IACD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE;QACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACtB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAdD,4BAcC"}
|
|
1
|
+
{"version":3,"file":"collections.js","sourceRoot":"","sources":["../../src/common/collections.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF;;;gGAGgG;AAChG,uHAAuH;AAEvH,SAAgB,QAAQ,CAAI,MAAc,EAAE,KAAa;IACrD,MAAM,OAAO,GAAQ,EAAE,CAAC;IACxB,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,KAAK,MAAM,OAAO,IAAI,MAAM,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACzB;KACJ;IACD,KAAK,MAAM,OAAO,IAAI,KAAK,EAAE;QACzB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;YACtB,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACvB;KACJ;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAdD,4BAcC;AAED,SAAgB,QAAQ,CAAO,MAAiB,EAAE,KAAgB;IAC9D,MAAM,OAAO,GAAQ,EAAE,CAAC;IACxB,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,MAAM,EAAE;QACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YACnB,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACvB;KACJ;IACD,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,KAAK,EAAE;QAChC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;YACpB,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACrB;KACJ;IACD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC9B,CAAC;AAdD,4BAcC"}
|
package/lib/common/errors.d.ts
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
export declare function illegalArgument(message?: string): Error;
|
|
2
2
|
export declare function readonly(name?: string): Error;
|
|
3
3
|
export declare function disposed(what: string): Error;
|
|
4
|
+
interface Errno {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
readonly errno: number;
|
|
7
|
+
}
|
|
8
|
+
declare const ENOENT: "ENOENT";
|
|
9
|
+
declare type ErrnoException = Error & Errno;
|
|
10
|
+
/**
|
|
11
|
+
* _(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
|
|
12
|
+
* found by the given path.
|
|
13
|
+
*/
|
|
14
|
+
export declare function isENOENT(arg: unknown): arg is ErrnoException & Readonly<{
|
|
15
|
+
code: typeof ENOENT;
|
|
16
|
+
}>;
|
|
17
|
+
export {};
|
|
4
18
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/common/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/common/errors.ts"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAMvD;AAED,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAM7C;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAI5C;AAED,UAAU,KAAK;IACX,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACzB;AACD,QAAA,MAAM,MAAM,UAAoB,CAAC;AAEjC,aAAK,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAQpC;;;GAGG;AACH,wBAAgB,QAAQ,CACpB,GAAG,EAAE,OAAO,GACb,GAAG,IAAI,cAAc,GAAG,QAAQ,CAAC;IAAE,IAAI,EAAE,OAAO,MAAM,CAAA;CAAE,CAAC,CAE3D"}
|
package/lib/common/errors.js
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.disposed = exports.readonly = exports.illegalArgument = void 0;
|
|
18
|
+
exports.isENOENT = exports.disposed = exports.readonly = exports.illegalArgument = void 0;
|
|
19
|
+
const types_1 = require("@theia/core/lib/common/types");
|
|
19
20
|
function illegalArgument(message) {
|
|
20
21
|
if (message) {
|
|
21
22
|
return new Error(`Illegal argument: ${message}`);
|
|
@@ -40,4 +41,19 @@ function disposed(what) {
|
|
|
40
41
|
return result;
|
|
41
42
|
}
|
|
42
43
|
exports.disposed = disposed;
|
|
44
|
+
const ENOENT = 'ENOENT';
|
|
45
|
+
function isErrnoException(arg) {
|
|
46
|
+
return arg instanceof Error
|
|
47
|
+
&& (0, types_1.isObject)(arg)
|
|
48
|
+
&& typeof arg.code === 'string'
|
|
49
|
+
&& typeof arg.errno === 'number';
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* _(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
|
|
53
|
+
* found by the given path.
|
|
54
|
+
*/
|
|
55
|
+
function isENOENT(arg) {
|
|
56
|
+
return isErrnoException(arg) && arg.code === ENOENT;
|
|
57
|
+
}
|
|
58
|
+
exports.isENOENT = isENOENT;
|
|
43
59
|
//# sourceMappingURL=errors.js.map
|
package/lib/common/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/common/errors.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,SAAgB,eAAe,CAAC,OAAgB;IAC5C,IAAI,OAAO,EAAE;QACT,OAAO,IAAI,KAAK,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;KACpD;SAAM;QACH,OAAO,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACxC;AACL,CAAC;AAND,0CAMC;AAED,SAAgB,QAAQ,CAAC,IAAa;IAClC,IAAI,IAAI,EAAE;QACN,OAAO,IAAI,KAAK,CAAC,sBAAsB,IAAI,qBAAqB,CAAC,CAAC;KACrE;SAAM;QACH,OAAO,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KAC3D;AACL,CAAC;AAND,4BAMC;AAED,SAAgB,QAAQ,CAAC,IAAY;IACjC,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;IACtD,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,OAAO,MAAM,CAAC;AAClB,CAAC;AAJD,4BAIC"}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/common/errors.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;AAEhF,wDAAwD;AAExD,SAAgB,eAAe,CAAC,OAAgB;IAC5C,IAAI,OAAO,EAAE;QACT,OAAO,IAAI,KAAK,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;KACpD;SAAM;QACH,OAAO,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACxC;AACL,CAAC;AAND,0CAMC;AAED,SAAgB,QAAQ,CAAC,IAAa;IAClC,IAAI,IAAI,EAAE;QACN,OAAO,IAAI,KAAK,CAAC,sBAAsB,IAAI,qBAAqB,CAAC,CAAC;KACrE;SAAM;QACH,OAAO,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KAC3D;AACL,CAAC;AAND,4BAMC;AAED,SAAgB,QAAQ,CAAC,IAAY;IACjC,MAAM,MAAM,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,oBAAoB,CAAC,CAAC;IACtD,MAAM,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,OAAO,MAAM,CAAC;AAClB,CAAC;AAJD,4BAIC;AAMD,MAAM,MAAM,GAAG,QAAiB,CAAC;AAGjC,SAAS,gBAAgB,CAAC,GAAY;IAClC,OAAO,GAAG,YAAY,KAAK;WACpB,IAAA,gBAAQ,EAAiB,GAAG,CAAC;WAC7B,OAAO,GAAG,CAAC,IAAI,KAAK,QAAQ;WAC5B,OAAO,GAAG,CAAC,KAAK,KAAK,QAAQ,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,SAAgB,QAAQ,CACpB,GAAY;IAEZ,OAAO,gBAAgB,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,CAAC;AACxD,CAAC;AAJD,4BAIC"}
|
|
@@ -3,7 +3,7 @@ import * as theia from '@theia/plugin';
|
|
|
3
3
|
import { PluginLifecycle, PluginModel, PluginMetadata, PluginPackage, IconUrl, PluginJsonValidationContribution } from './plugin-protocol';
|
|
4
4
|
import { QueryParameters } from './env';
|
|
5
5
|
import { TextEditorCursorStyle } from './editor-options';
|
|
6
|
-
import { ConfigurationTarget, TextEditorLineNumbersStyle, EndOfLine, OverviewRulerLane, FileOperationOptions, TextDocumentChangeReason, IndentAction } from '../plugin/types-impl';
|
|
6
|
+
import { ConfigurationTarget, TextEditorLineNumbersStyle, EndOfLine, OverviewRulerLane, FileOperationOptions, TextDocumentChangeReason, IndentAction, NotebookRendererScript } from '../plugin/types-impl';
|
|
7
7
|
import { UriComponents } from './uri-components';
|
|
8
8
|
import { SerializedDocumentFilter, CompletionContext, MarkdownString, Range, Completion, CompletionResultDto, MarkerData, SignatureHelp, Hover, EvaluatableExpression, InlineValue, InlineValueContext, DocumentHighlight, FormattingOptions, ChainedCacheId, Definition, DocumentLink, CodeLensSymbol, Command, TextEdit, DocumentSymbol, ReferenceContext, TextDocumentShowOptions, WorkspaceRootsChangeEvent, Location, Breakpoint, ColorPresentation, RenameLocation, SignatureHelpContext, CodeAction, CodeActionContext, FoldingContext, FoldingRange, SelectionRange, SearchInWorkspaceResult, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall, Comment, CommentOptions, CommentThreadState, CommentThreadCollapsibleState, CommentThread, CommentThreadChangedEvent, CodeActionProviderDocumentation, LinkedEditingRanges, ProvidedTerminalLink, InlayHint, CachedSession, CachedSessionItem, TypeHierarchyItem, InlineCompletion, InlineCompletions, InlineCompletionContext, DocumentDropEdit, DataTransferDTO, DocumentDropEditProviderMetadata } from './plugin-api-rpc-model';
|
|
9
9
|
import { ExtPluginApi } from './plugin-ext-api-contribution';
|
|
@@ -17,13 +17,16 @@ import * as files from '@theia/filesystem/lib/common/files';
|
|
|
17
17
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
18
18
|
import { ResourceLabelFormatter } from '@theia/core/lib/common/label-protocol';
|
|
19
19
|
import type { InternalTimelineOptions, Timeline, TimelineChangeEvent, TimelineProviderDescriptor } from '@theia/timeline/lib/common/timeline-model';
|
|
20
|
-
import { SerializableEnvironmentVariableCollection } from '@theia/terminal/lib/common/base-terminal-protocol';
|
|
20
|
+
import { SerializableEnvironmentVariableCollection, SerializableExtensionEnvironmentVariableCollection } from '@theia/terminal/lib/common/base-terminal-protocol';
|
|
21
21
|
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
22
22
|
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
23
23
|
import { PickOptions, QuickInputButtonHandle } from '@theia/core/lib/common';
|
|
24
24
|
import { Severity } from '@theia/core/lib/common/severity';
|
|
25
25
|
import { DebugConfiguration, DebugSessionOptions } from '@theia/debug/lib/common/debug-configuration';
|
|
26
|
+
import * as notebookCommon from '@theia/notebook/lib/common';
|
|
27
|
+
import { CellExecutionUpdateType, CellRange, NotebookCellExecutionState } from '@theia/notebook/lib/common';
|
|
26
28
|
import { LanguagePackBundle } from './language-pack-service';
|
|
29
|
+
import { AccessibilityInformation } from '@theia/core/lib/common/accessibility';
|
|
27
30
|
export interface PreferenceData {
|
|
28
31
|
[scope: number]: any;
|
|
29
32
|
}
|
|
@@ -230,7 +233,7 @@ export interface TerminalServiceMain {
|
|
|
230
233
|
* @param waitOnExit - Whether to wait for a key press before closing the terminal.
|
|
231
234
|
*/
|
|
232
235
|
$disposeByTerminalId(id: number, waitOnExit?: boolean | string): void;
|
|
233
|
-
$setEnvironmentVariableCollection(
|
|
236
|
+
$setEnvironmentVariableCollection(persistent: boolean, collection: SerializableExtensionEnvironmentVariableCollection): void;
|
|
234
237
|
/**
|
|
235
238
|
* Set the terminal widget name.
|
|
236
239
|
* @param id terminal id.
|
|
@@ -509,6 +512,7 @@ export interface DialogsMain {
|
|
|
509
512
|
$showUploadDialog(options: UploadDialogOptionsMain): Promise<string[] | undefined>;
|
|
510
513
|
}
|
|
511
514
|
export interface RegisterTreeDataProviderOptions {
|
|
515
|
+
manageCheckboxStateManually?: boolean;
|
|
512
516
|
showCollapseAll?: boolean;
|
|
513
517
|
canSelectMany?: boolean;
|
|
514
518
|
dragMimeTypes?: string[];
|
|
@@ -538,6 +542,10 @@ export declare class DataTransferFileDTO {
|
|
|
538
542
|
static is(value: string | DataTransferFileDTO): value is DataTransferFileDTO;
|
|
539
543
|
}
|
|
540
544
|
export interface TreeViewsExt {
|
|
545
|
+
$checkStateChanged(treeViewId: string, itemIds: {
|
|
546
|
+
id: string;
|
|
547
|
+
checked: boolean;
|
|
548
|
+
}[]): Promise<void>;
|
|
541
549
|
$dragStarted(treeViewId: string, treeItemIds: string[], token: CancellationToken): Promise<UriComponents[] | undefined>;
|
|
542
550
|
$dragEnd(treeViewId: string): Promise<void>;
|
|
543
551
|
$drop(treeViewId: string, treeItemId: string | undefined, dataTransferItems: [string, string | DataTransferFileDTO][], token: CancellationToken): Promise<void>;
|
|
@@ -548,6 +556,11 @@ export interface TreeViewsExt {
|
|
|
548
556
|
$setSelection(treeViewId: string, treeItemIds: string[]): Promise<void>;
|
|
549
557
|
$setVisible(treeViewId: string, visible: boolean): Promise<void>;
|
|
550
558
|
}
|
|
559
|
+
export interface TreeViewItemCheckboxInfo {
|
|
560
|
+
checked: boolean;
|
|
561
|
+
tooltip?: string;
|
|
562
|
+
accessibilityInformation?: AccessibilityInformation;
|
|
563
|
+
}
|
|
551
564
|
export interface TreeViewItem {
|
|
552
565
|
id: string;
|
|
553
566
|
label: string;
|
|
@@ -560,6 +573,7 @@ export interface TreeViewItem {
|
|
|
560
573
|
resourceUri?: UriComponents;
|
|
561
574
|
tooltip?: string | MarkdownString;
|
|
562
575
|
collapsibleState?: TreeViewItemCollapsibleState;
|
|
576
|
+
checkboxInfo?: TreeViewItemCheckboxInfo;
|
|
563
577
|
contextValue?: string;
|
|
564
578
|
command?: Command;
|
|
565
579
|
accessibilityInformation?: theia.AccessibilityInformation;
|
|
@@ -949,6 +963,7 @@ export interface ModelAddedData {
|
|
|
949
963
|
uri: UriComponents;
|
|
950
964
|
versionId: number;
|
|
951
965
|
lines: string[];
|
|
966
|
+
languageId?: string;
|
|
952
967
|
EOL: string;
|
|
953
968
|
modeId: string;
|
|
954
969
|
isDirty: boolean;
|
|
@@ -1112,8 +1127,31 @@ export declare namespace WorkspaceTextEditDto {
|
|
|
1112
1127
|
export interface WorkspaceEditMetadataDto {
|
|
1113
1128
|
isRefactoring?: boolean;
|
|
1114
1129
|
}
|
|
1130
|
+
export declare type CellEditOperationDto = {
|
|
1131
|
+
editType: notebookCommon.CellEditType.Metadata;
|
|
1132
|
+
index: number;
|
|
1133
|
+
metadata: Record<string, unknown>;
|
|
1134
|
+
} | {
|
|
1135
|
+
editType: notebookCommon.CellEditType.DocumentMetadata;
|
|
1136
|
+
metadata: Record<string, unknown>;
|
|
1137
|
+
} | {
|
|
1138
|
+
editType: notebookCommon.CellEditType.Replace;
|
|
1139
|
+
index: number;
|
|
1140
|
+
count: number;
|
|
1141
|
+
cells: NotebookCellDataDto[];
|
|
1142
|
+
};
|
|
1143
|
+
export interface NotebookWorkspaceEditMetadataDto {
|
|
1144
|
+
needsConfirmation: boolean;
|
|
1145
|
+
label: string;
|
|
1146
|
+
description?: string;
|
|
1147
|
+
}
|
|
1148
|
+
export interface WorkspaceNotebookCellEditDto {
|
|
1149
|
+
metadata?: NotebookWorkspaceEditMetadataDto;
|
|
1150
|
+
resource: UriComponents;
|
|
1151
|
+
cellEdit: CellEditOperationDto;
|
|
1152
|
+
}
|
|
1115
1153
|
export interface WorkspaceEditDto {
|
|
1116
|
-
edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto>;
|
|
1154
|
+
edits: Array<WorkspaceTextEditDto | WorkspaceFileEditDto | WorkspaceNotebookCellEditDto>;
|
|
1117
1155
|
}
|
|
1118
1156
|
export interface CommandProperties {
|
|
1119
1157
|
command: string;
|
|
@@ -1614,6 +1652,12 @@ export declare const PLUGIN_RPC_CONTEXT: {
|
|
|
1614
1652
|
MESSAGE_REGISTRY_MAIN: ProxyIdentifier<MessageRegistryMain>;
|
|
1615
1653
|
TEXT_EDITORS_MAIN: ProxyIdentifier<TextEditorsMain>;
|
|
1616
1654
|
DOCUMENTS_MAIN: ProxyIdentifier<DocumentsMain>;
|
|
1655
|
+
NOTEBOOKS_MAIN: ProxyIdentifier<NotebooksMain>;
|
|
1656
|
+
NOTEBOOK_DOCUMENTS_MAIN: ProxyIdentifier<NotebookDocumentsMain>;
|
|
1657
|
+
NOTEBOOK_EDITORS_MAIN: ProxyIdentifier<NotebookEditorsMain>;
|
|
1658
|
+
NOTEBOOK_DOCUMENTS_AND_EDITORS_MAIN: ProxyIdentifier<NotebookDocumentsAndEditorsMain>;
|
|
1659
|
+
NOTEBOOK_RENDERERS_MAIN: ProxyIdentifier<NotebookRenderersMain>;
|
|
1660
|
+
NOTEBOOK_KERNELS_MAIN: ProxyIdentifier<NotebookKernelsMain>;
|
|
1617
1661
|
STATUS_BAR_MESSAGE_REGISTRY_MAIN: ProxyIdentifier<StatusBarMessageRegistryMain>;
|
|
1618
1662
|
ENV_MAIN: ProxyIdentifier<EnvMain>;
|
|
1619
1663
|
NOTIFICATION_MAIN: ProxyIdentifier<NotificationMain>;
|
|
@@ -1654,6 +1698,11 @@ export declare const MAIN_RPC_CONTEXT: {
|
|
|
1654
1698
|
TEXT_EDITORS_EXT: ProxyIdentifier<TextEditorsExt>;
|
|
1655
1699
|
EDITORS_AND_DOCUMENTS_EXT: ProxyIdentifier<EditorsAndDocumentsExt>;
|
|
1656
1700
|
DOCUMENTS_EXT: ProxyIdentifier<DocumentsExt>;
|
|
1701
|
+
NOTEBOOKS_EXT: ProxyIdentifier<NotebooksExt>;
|
|
1702
|
+
NOTEBOOK_DOCUMENTS_EXT: ProxyIdentifier<NotebookDocumentsExt>;
|
|
1703
|
+
NOTEBOOK_EDITORS_EXT: ProxyIdentifier<NotebookEditorsExt>;
|
|
1704
|
+
NOTEBOOK_RENDERERS_EXT: ProxyIdentifier<NotebookRenderersExt>;
|
|
1705
|
+
NOTEBOOK_KERNELS_EXT: ProxyIdentifier<NotebookKernelsExt>;
|
|
1657
1706
|
TERMINAL_EXT: ProxyIdentifier<TerminalServiceExt>;
|
|
1658
1707
|
OUTPUT_CHANNEL_REGISTRY_EXT: ProxyIdentifier<OutputChannelRegistryExt>;
|
|
1659
1708
|
TREE_VIEWS_EXT: ProxyIdentifier<TreeViewsExt>;
|
|
@@ -1680,8 +1729,8 @@ export declare const MAIN_RPC_CONTEXT: {
|
|
|
1680
1729
|
};
|
|
1681
1730
|
export interface TasksExt {
|
|
1682
1731
|
$initLoadedTasks(executions: TaskExecutionDto[]): Promise<void>;
|
|
1683
|
-
$provideTasks(handle: number): Promise<TaskDto[]
|
|
1684
|
-
$resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto
|
|
1732
|
+
$provideTasks(handle: number): Promise<TaskDto[]>;
|
|
1733
|
+
$resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto>;
|
|
1685
1734
|
$onDidStartTask(execution: TaskExecutionDto, terminalId: number): void;
|
|
1686
1735
|
$onDidEndTask(id: number): void;
|
|
1687
1736
|
$onDidStartTaskProcess(processId: number | undefined, execution: TaskExecutionDto): void;
|
|
@@ -1708,6 +1757,237 @@ export interface AuthenticationMain {
|
|
|
1708
1757
|
$onDidChangeSessions(providerId: string, event: AuthenticationProviderAuthenticationSessionsChangeEvent): void;
|
|
1709
1758
|
$getSession(providerId: string, scopes: readonly string[], extensionId: string, extensionName: string, options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
|
|
1710
1759
|
}
|
|
1760
|
+
export interface NotebookOutputItemDto {
|
|
1761
|
+
readonly mime: string;
|
|
1762
|
+
readonly valueBytes: BinaryBuffer;
|
|
1763
|
+
}
|
|
1764
|
+
export interface NotebookOutputDto {
|
|
1765
|
+
outputId: string;
|
|
1766
|
+
items: NotebookOutputItemDto[];
|
|
1767
|
+
metadata?: Record<string, any>;
|
|
1768
|
+
}
|
|
1769
|
+
export interface NotebookCellDataDto {
|
|
1770
|
+
source: string;
|
|
1771
|
+
language: string;
|
|
1772
|
+
cellKind: notebookCommon.CellKind;
|
|
1773
|
+
outputs: NotebookOutputDto[];
|
|
1774
|
+
metadata?: notebookCommon.NotebookCellMetadata;
|
|
1775
|
+
internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
|
|
1776
|
+
}
|
|
1777
|
+
export interface NotebookDataDto {
|
|
1778
|
+
readonly cells: NotebookCellDataDto[];
|
|
1779
|
+
readonly metadata: notebookCommon.NotebookDocumentMetadata;
|
|
1780
|
+
}
|
|
1781
|
+
export interface NotebookCellDto {
|
|
1782
|
+
handle: number;
|
|
1783
|
+
uri: UriComponents;
|
|
1784
|
+
eol: string;
|
|
1785
|
+
source: string[];
|
|
1786
|
+
language: string;
|
|
1787
|
+
mime?: string;
|
|
1788
|
+
cellKind: notebookCommon.CellKind;
|
|
1789
|
+
outputs: NotebookOutputDto[];
|
|
1790
|
+
metadata?: notebookCommon.NotebookCellMetadata;
|
|
1791
|
+
internalMetadata?: notebookCommon.NotebookCellInternalMetadata;
|
|
1792
|
+
}
|
|
1793
|
+
export interface NotebookModelAddedData {
|
|
1794
|
+
uri: UriComponents;
|
|
1795
|
+
versionId: number;
|
|
1796
|
+
cells: NotebookCellDto[];
|
|
1797
|
+
viewType: string;
|
|
1798
|
+
metadata?: notebookCommon.NotebookDocumentMetadata;
|
|
1799
|
+
}
|
|
1800
|
+
export interface NotebookEditorAddData {
|
|
1801
|
+
id: string;
|
|
1802
|
+
documentUri: UriComponents;
|
|
1803
|
+
selections: CellRange[];
|
|
1804
|
+
visibleRanges: CellRange[];
|
|
1805
|
+
viewColumn?: number;
|
|
1806
|
+
}
|
|
1807
|
+
export interface NotebookDocumentsAndEditorsDelta {
|
|
1808
|
+
removedDocuments?: UriComponents[];
|
|
1809
|
+
addedDocuments?: NotebookModelAddedData[];
|
|
1810
|
+
removedEditors?: string[];
|
|
1811
|
+
addedEditors?: NotebookEditorAddData[];
|
|
1812
|
+
newActiveEditor?: string | null;
|
|
1813
|
+
visibleEditors?: string[];
|
|
1814
|
+
}
|
|
1815
|
+
export declare type NotebookCellStatusBarEntryDto = notebookCommon.NotebookCellStatusBarItem;
|
|
1816
|
+
export interface NotebookCellStatusBarListDto {
|
|
1817
|
+
items: NotebookCellStatusBarEntryDto[];
|
|
1818
|
+
cacheId: number;
|
|
1819
|
+
}
|
|
1820
|
+
export declare type NotebookRawContentEventDto = {
|
|
1821
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.ModelChange;
|
|
1822
|
+
readonly changes: notebookCommon.NotebookCellTextModelSplice<NotebookCellDto>[];
|
|
1823
|
+
} | {
|
|
1824
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.Move;
|
|
1825
|
+
readonly index: number;
|
|
1826
|
+
readonly length: number;
|
|
1827
|
+
readonly newIdx: number;
|
|
1828
|
+
} | {
|
|
1829
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.Output;
|
|
1830
|
+
readonly index: number;
|
|
1831
|
+
readonly outputs: NotebookOutputDto[];
|
|
1832
|
+
} | {
|
|
1833
|
+
readonly kind: notebookCommon.NotebookCellsChangeType.OutputItem;
|
|
1834
|
+
readonly index: number;
|
|
1835
|
+
readonly outputId: string;
|
|
1836
|
+
readonly outputItems: NotebookOutputItemDto[];
|
|
1837
|
+
readonly append: boolean;
|
|
1838
|
+
} | notebookCommon.NotebookCellsChangeLanguageEvent | notebookCommon.NotebookCellsChangeMetadataEvent | notebookCommon.NotebookCellsChangeInternalMetadataEvent | notebookCommon.NotebookCellContentChangeEvent;
|
|
1839
|
+
export interface NotebookCellsChangedEventDto {
|
|
1840
|
+
readonly rawEvents: NotebookRawContentEventDto[];
|
|
1841
|
+
readonly versionId: number;
|
|
1842
|
+
}
|
|
1843
|
+
export interface NotebookSelectionChangeEvent {
|
|
1844
|
+
selections: CellRange[];
|
|
1845
|
+
}
|
|
1846
|
+
export interface NotebookVisibleRangesEvent {
|
|
1847
|
+
ranges: CellRange[];
|
|
1848
|
+
}
|
|
1849
|
+
export interface NotebookEditorPropertiesChangeData {
|
|
1850
|
+
visibleRanges?: NotebookVisibleRangesEvent;
|
|
1851
|
+
selections?: NotebookSelectionChangeEvent;
|
|
1852
|
+
}
|
|
1853
|
+
export declare enum NotebookEditorRevealType {
|
|
1854
|
+
Default = 0,
|
|
1855
|
+
InCenter = 1,
|
|
1856
|
+
InCenterIfOutsideViewport = 2,
|
|
1857
|
+
AtTop = 3
|
|
1858
|
+
}
|
|
1859
|
+
export interface NotebookDocumentShowOptions {
|
|
1860
|
+
position?: EditorGroupColumn;
|
|
1861
|
+
preserveFocus?: boolean;
|
|
1862
|
+
pinned?: boolean;
|
|
1863
|
+
selections?: CellRange[];
|
|
1864
|
+
}
|
|
1865
|
+
export interface NotebookKernelDto {
|
|
1866
|
+
id: string;
|
|
1867
|
+
notebookType: string;
|
|
1868
|
+
extensionId: string;
|
|
1869
|
+
label: string;
|
|
1870
|
+
detail?: string;
|
|
1871
|
+
description?: string;
|
|
1872
|
+
supportedLanguages?: string[];
|
|
1873
|
+
supportsInterrupt?: boolean;
|
|
1874
|
+
supportsExecutionOrder?: boolean;
|
|
1875
|
+
preloads?: {
|
|
1876
|
+
uri: UriComponents;
|
|
1877
|
+
provides: readonly string[];
|
|
1878
|
+
}[];
|
|
1879
|
+
rendererScripts?: NotebookRendererScript[];
|
|
1880
|
+
}
|
|
1881
|
+
export declare type CellExecuteUpdateDto = CellExecuteOutputEditDto | CellExecuteOutputItemEditDto | CellExecutionStateUpdateDto;
|
|
1882
|
+
export interface CellExecuteOutputEditDto {
|
|
1883
|
+
editType: CellExecutionUpdateType.Output;
|
|
1884
|
+
cellHandle: number;
|
|
1885
|
+
append?: boolean;
|
|
1886
|
+
outputs: NotebookOutputDto[];
|
|
1887
|
+
}
|
|
1888
|
+
export interface CellExecuteOutputItemEditDto {
|
|
1889
|
+
editType: CellExecutionUpdateType.OutputItems;
|
|
1890
|
+
append?: boolean;
|
|
1891
|
+
items: NotebookOutputItemDto[];
|
|
1892
|
+
}
|
|
1893
|
+
export interface CellExecutionStateUpdateDto {
|
|
1894
|
+
editType: CellExecutionUpdateType.ExecutionState;
|
|
1895
|
+
executionOrder?: number;
|
|
1896
|
+
runStartTime?: number;
|
|
1897
|
+
didPause?: boolean;
|
|
1898
|
+
isPaused?: boolean;
|
|
1899
|
+
}
|
|
1900
|
+
export interface CellExecutionCompleteDto {
|
|
1901
|
+
runEndTime?: number;
|
|
1902
|
+
lastRunSuccess?: boolean;
|
|
1903
|
+
}
|
|
1904
|
+
export interface NotebookKernelSourceActionDto {
|
|
1905
|
+
readonly label: string;
|
|
1906
|
+
readonly description?: string;
|
|
1907
|
+
readonly detail?: string;
|
|
1908
|
+
readonly command?: string | Command;
|
|
1909
|
+
readonly documentation?: UriComponents | string;
|
|
1910
|
+
}
|
|
1911
|
+
export interface NotebookEditorAddData {
|
|
1912
|
+
id: string;
|
|
1913
|
+
documentUri: UriComponents;
|
|
1914
|
+
selections: CellRange[];
|
|
1915
|
+
visibleRanges: CellRange[];
|
|
1916
|
+
viewColumn?: number;
|
|
1917
|
+
}
|
|
1918
|
+
export interface NotebooksExt extends NotebookDocumentsAndEditorsExt {
|
|
1919
|
+
$provideNotebookCellStatusBarItems(handle: number, uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarListDto | undefined>;
|
|
1920
|
+
$releaseNotebookCellStatusBarItems(id: number): void;
|
|
1921
|
+
$dataToNotebook(handle: number, data: BinaryBuffer, token: CancellationToken): Promise<NotebookDataDto>;
|
|
1922
|
+
$notebookToData(handle: number, data: NotebookDataDto, token: CancellationToken): Promise<BinaryBuffer>;
|
|
1923
|
+
}
|
|
1924
|
+
export interface NotebooksMain extends Disposable {
|
|
1925
|
+
$registerNotebookSerializer(handle: number, extension: notebookCommon.NotebookExtensionDescription, viewType: string, options: notebookCommon.TransientOptions): void;
|
|
1926
|
+
$unregisterNotebookSerializer(handle: number): void;
|
|
1927
|
+
$registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void>;
|
|
1928
|
+
$unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void>;
|
|
1929
|
+
$emitCellStatusBarEvent(eventHandle: number): void;
|
|
1930
|
+
}
|
|
1931
|
+
export interface NotebookKernelsExt {
|
|
1932
|
+
$acceptNotebookAssociation(handle: number, uri: UriComponents, value: boolean): void;
|
|
1933
|
+
$executeCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
|
|
1934
|
+
$cancelCells(handle: number, uri: UriComponents, handles: number[]): Promise<void>;
|
|
1935
|
+
$acceptKernelMessageFromRenderer(handle: number, editorId: string, message: any): void;
|
|
1936
|
+
$cellExecutionChanged(uri: UriComponents, cellHandle: number, state: NotebookCellExecutionState | undefined): void;
|
|
1937
|
+
$provideKernelSourceActions(handle: number, token: CancellationToken): Promise<NotebookKernelSourceActionDto[]>;
|
|
1938
|
+
}
|
|
1939
|
+
export interface NotebookKernelsMain extends Disposable {
|
|
1940
|
+
$postMessage(handle: number, editorId: string | undefined, message: any): Promise<boolean>;
|
|
1941
|
+
$addKernel(handle: number, data: NotebookKernelDto): Promise<void>;
|
|
1942
|
+
$updateKernel(handle: number, data: Partial<NotebookKernelDto>): void;
|
|
1943
|
+
$removeKernel(handle: number): void;
|
|
1944
|
+
$updateNotebookPriority(handle: number, uri: UriComponents, value: number | undefined): void;
|
|
1945
|
+
$createExecution(handle: number, controllerId: string, uri: UriComponents, cellHandle: number): void;
|
|
1946
|
+
$updateExecution(handle: number, data: CellExecuteUpdateDto[]): void;
|
|
1947
|
+
$completeExecution(handle: number, data: CellExecutionCompleteDto): void;
|
|
1948
|
+
$createNotebookExecution(handle: number, controllerId: string, uri: UriComponents): void;
|
|
1949
|
+
$beginNotebookExecution(handle: number): void;
|
|
1950
|
+
$completeNotebookExecution(handle: number): void;
|
|
1951
|
+
$addKernelDetectionTask(handle: number, notebookType: string): Promise<void>;
|
|
1952
|
+
$removeKernelDetectionTask(handle: number): void;
|
|
1953
|
+
$addKernelSourceActionProvider(handle: number, eventHandle: number, notebookType: string): Promise<void>;
|
|
1954
|
+
$removeKernelSourceActionProvider(handle: number, eventHandle: number): void;
|
|
1955
|
+
$emitNotebookKernelSourceActionsChangeEvent(eventHandle: number): void;
|
|
1956
|
+
}
|
|
1957
|
+
export interface NotebookDocumentsMain extends Disposable {
|
|
1958
|
+
$tryCreateNotebook(options: {
|
|
1959
|
+
viewType: string;
|
|
1960
|
+
content?: NotebookDataDto;
|
|
1961
|
+
}): Promise<UriComponents>;
|
|
1962
|
+
$tryOpenNotebook(uriComponents: UriComponents): Promise<UriComponents>;
|
|
1963
|
+
$trySaveNotebook(uri: UriComponents): Promise<boolean>;
|
|
1964
|
+
}
|
|
1965
|
+
export interface NotebookDocumentsExt {
|
|
1966
|
+
$acceptModelChanged(uriComponents: UriComponents, event: NotebookCellsChangedEventDto, isDirty: boolean, newMetadata?: notebookCommon.NotebookDocumentMetadata): void;
|
|
1967
|
+
$acceptDirtyStateChanged(uriComponents: UriComponents, isDirty: boolean): void;
|
|
1968
|
+
$acceptModelSaved(uriComponents: UriComponents): void;
|
|
1969
|
+
}
|
|
1970
|
+
export interface NotebookDocumentsAndEditorsExt {
|
|
1971
|
+
$acceptDocumentsAndEditorsDelta(delta: NotebookDocumentsAndEditorsDelta): Promise<void>;
|
|
1972
|
+
}
|
|
1973
|
+
export interface NotebookDocumentsAndEditorsMain extends Disposable {
|
|
1974
|
+
}
|
|
1975
|
+
export declare type NotebookEditorViewColumnInfo = Record<string, number>;
|
|
1976
|
+
export interface NotebookEditorsExt {
|
|
1977
|
+
$acceptEditorPropertiesChanged(id: string, data: NotebookEditorPropertiesChangeData): void;
|
|
1978
|
+
$acceptEditorViewColumns(data: NotebookEditorViewColumnInfo): void;
|
|
1979
|
+
}
|
|
1980
|
+
export interface NotebookEditorsMain extends Disposable {
|
|
1981
|
+
$tryShowNotebookDocument(uriComponents: UriComponents, viewType: string, options: NotebookDocumentShowOptions): Promise<string>;
|
|
1982
|
+
$tryRevealRange(id: string, range: CellRange, revealType: NotebookEditorRevealType): Promise<void>;
|
|
1983
|
+
$trySetSelections(id: string, range: CellRange[]): void;
|
|
1984
|
+
}
|
|
1985
|
+
export interface NotebookRenderersExt {
|
|
1986
|
+
$postRendererMessage(editorId: string, rendererId: string, message: unknown): void;
|
|
1987
|
+
}
|
|
1988
|
+
export interface NotebookRenderersMain extends Disposable {
|
|
1989
|
+
$postMessage(editorId: string | undefined, rendererId: string, message: unknown): Promise<boolean>;
|
|
1990
|
+
}
|
|
1711
1991
|
export interface RawColorInfo {
|
|
1712
1992
|
color: [number, number, number, number];
|
|
1713
1993
|
range: Range;
|