@theia/plugin-ext 1.55.0-next.4 → 1.55.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/plugin-api-rpc-model.d.ts +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +1 -0
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/main/browser/authentication-main.d.ts +1 -0
- package/lib/main/browser/authentication-main.d.ts.map +1 -1
- package/lib/main/browser/command-registry-main.d.ts +1 -0
- package/lib/main/browser/command-registry-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts +1 -0
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +1 -0
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
- package/lib/main/browser/editors-and-documents-main.js +6 -3
- package/lib/main/browser/editors-and-documents-main.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +1 -0
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +8 -7
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.d.ts +5 -12
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.js +6 -4
- package/lib/main/browser/notebooks/notebooks-main.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +22 -12
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +145 -74
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +198 -69
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +56 -6
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.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 +2 -1
- package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
- package/lib/main/browser/quick-open-main.d.ts +1 -0
- package/lib/main/browser/quick-open-main.d.ts.map +1 -1
- package/lib/main/browser/tabs/tabs-main.d.ts +2 -0
- package/lib/main/browser/tabs/tabs-main.d.ts.map +1 -1
- package/lib/main/browser/tabs/tabs-main.js +17 -2
- package/lib/main/browser/tabs/tabs-main.js.map +1 -1
- package/lib/main/browser/terminal-main.d.ts +1 -0
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-decorator-service.d.ts +1 -0
- package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +1 -0
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-views-main.d.ts +1 -0
- package/lib/main/browser/view/tree-views-main.d.ts.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-views/webview-views-main.d.ts +1 -0
- package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
- package/lib/main/browser/webviews-main.d.ts +1 -0
- package/lib/main/browser/webviews-main.d.ts.map +1 -1
- package/lib/main/browser/workspace-main.d.ts +1 -0
- package/lib/main/browser/workspace-main.d.ts.map +1 -1
- package/lib/plugin/authentication-ext.d.ts +1 -0
- package/lib/plugin/authentication-ext.d.ts.map +1 -1
- package/lib/plugin/clipboard-ext.d.ts +1 -0
- package/lib/plugin/clipboard-ext.d.ts.map +1 -1
- package/lib/plugin/command-registry.d.ts +1 -0
- package/lib/plugin/command-registry.d.ts.map +1 -1
- package/lib/plugin/comments.d.ts +1 -0
- package/lib/plugin/comments.d.ts.map +1 -1
- package/lib/plugin/custom-editors.d.ts +1 -0
- package/lib/plugin/custom-editors.d.ts.map +1 -1
- package/lib/plugin/debug/debug-ext.d.ts +1 -0
- package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -1
- package/lib/plugin/decorations.d.ts +1 -0
- package/lib/plugin/decorations.d.ts.map +1 -1
- package/lib/plugin/dialogs.d.ts +1 -0
- package/lib/plugin/dialogs.d.ts.map +1 -1
- package/lib/plugin/document-data.d.ts +1 -0
- package/lib/plugin/document-data.d.ts.map +1 -1
- package/lib/plugin/documents.d.ts +1 -0
- package/lib/plugin/documents.d.ts.map +1 -1
- package/lib/plugin/env.d.ts +1 -0
- package/lib/plugin/env.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts +17 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.js +9 -7
- package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
- package/lib/plugin/file-system-ext-impl.d.ts +28 -3
- package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-ext-impl.js +4 -2
- package/lib/plugin/file-system-ext-impl.js.map +1 -1
- package/lib/plugin/file-system-watcher.spec.d.ts +2 -0
- package/lib/plugin/file-system-watcher.spec.d.ts.map +1 -0
- package/lib/plugin/file-system-watcher.spec.js +108 -0
- package/lib/plugin/file-system-watcher.spec.js.map +1 -0
- package/lib/plugin/label-service.d.ts +1 -0
- package/lib/plugin/label-service.d.ts.map +1 -1
- package/lib/plugin/languages/call-hierarchy.d.ts +1 -0
- package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/code-action.d.ts +1 -0
- package/lib/plugin/languages/code-action.d.ts.map +1 -1
- package/lib/plugin/languages/color.d.ts +1 -0
- package/lib/plugin/languages/color.d.ts.map +1 -1
- package/lib/plugin/languages/completion.d.ts +1 -0
- package/lib/plugin/languages/completion.d.ts.map +1 -1
- package/lib/plugin/languages/declaration.d.ts +1 -0
- package/lib/plugin/languages/declaration.d.ts.map +1 -1
- package/lib/plugin/languages/definition.d.ts +1 -0
- package/lib/plugin/languages/definition.d.ts.map +1 -1
- package/lib/plugin/languages/diagnostics.d.ts +1 -0
- package/lib/plugin/languages/diagnostics.d.ts.map +1 -1
- package/lib/plugin/languages/document-drop-edit.d.ts +1 -0
- package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -1
- package/lib/plugin/languages/document-formatting.d.ts +1 -0
- package/lib/plugin/languages/document-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/document-highlight.d.ts +1 -0
- package/lib/plugin/languages/document-highlight.d.ts.map +1 -1
- package/lib/plugin/languages/evaluatable-expression.d.ts +1 -0
- package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -1
- package/lib/plugin/languages/folding.d.ts +1 -0
- package/lib/plugin/languages/folding.d.ts.map +1 -1
- package/lib/plugin/languages/hover.d.ts +1 -0
- package/lib/plugin/languages/hover.d.ts.map +1 -1
- package/lib/plugin/languages/implementation.d.ts +1 -0
- package/lib/plugin/languages/implementation.d.ts.map +1 -1
- package/lib/plugin/languages/inlay-hints.d.ts +1 -0
- package/lib/plugin/languages/inlay-hints.d.ts.map +1 -1
- package/lib/plugin/languages/inline-completion.d.ts +1 -0
- package/lib/plugin/languages/inline-completion.d.ts.map +1 -1
- package/lib/plugin/languages/inline-values.d.ts +1 -0
- package/lib/plugin/languages/inline-values.d.ts.map +1 -1
- package/lib/plugin/languages/lens.d.ts +1 -0
- package/lib/plugin/languages/lens.d.ts.map +1 -1
- package/lib/plugin/languages/link-provider.d.ts +1 -0
- package/lib/plugin/languages/link-provider.d.ts.map +1 -1
- package/lib/plugin/languages/linked-editing-range.d.ts +1 -0
- package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -1
- package/lib/plugin/languages/on-type-formatting.d.ts +1 -0
- package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/outline.d.ts +1 -0
- package/lib/plugin/languages/outline.d.ts.map +1 -1
- package/lib/plugin/languages/range-formatting.d.ts +1 -0
- package/lib/plugin/languages/range-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/reference.d.ts +1 -0
- package/lib/plugin/languages/reference.d.ts.map +1 -1
- package/lib/plugin/languages/rename.d.ts +1 -0
- package/lib/plugin/languages/rename.d.ts.map +1 -1
- package/lib/plugin/languages/selection-range.d.ts +1 -0
- package/lib/plugin/languages/selection-range.d.ts.map +1 -1
- package/lib/plugin/languages/semantic-highlighting.d.ts +1 -0
- package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -1
- package/lib/plugin/languages/signature.d.ts +1 -0
- package/lib/plugin/languages/signature.d.ts.map +1 -1
- package/lib/plugin/languages/type-definition.d.ts +1 -0
- package/lib/plugin/languages/type-definition.d.ts.map +1 -1
- package/lib/plugin/languages/type-hierarchy.d.ts +1 -0
- package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/util.d.ts +1 -0
- package/lib/plugin/languages/util.d.ts.map +1 -1
- package/lib/plugin/languages/workspace-symbol.d.ts +1 -0
- package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -1
- package/lib/plugin/languages-utils.d.ts +1 -0
- package/lib/plugin/languages-utils.d.ts.map +1 -1
- package/lib/plugin/languages.d.ts +1 -0
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/markdown-string.d.ts +1 -0
- package/lib/plugin/markdown-string.d.ts.map +1 -1
- package/lib/plugin/message-registry.d.ts +1 -0
- package/lib/plugin/message-registry.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +1 -0
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-document.d.ts +1 -0
- package/lib/plugin/notebook/notebook-document.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-documents.d.ts +1 -0
- package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editor.d.ts +1 -0
- package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editors.d.ts +1 -0
- package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.d.ts +1 -0
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-renderers.d.ts +1 -0
- package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
- package/lib/plugin/notebook/notebooks.d.ts +4 -2
- package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
- package/lib/plugin/notebook/notebooks.js +2 -2
- package/lib/plugin/notebook/notebooks.js.map +1 -1
- package/lib/plugin/notification.d.ts +1 -0
- package/lib/plugin/notification.d.ts.map +1 -1
- package/lib/plugin/output-channel/log-output-channel.d.ts +1 -0
- package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -1
- package/lib/plugin/output-channel/output-channel-item.d.ts +1 -0
- package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -1
- package/lib/plugin/output-channel-registry.d.ts +1 -0
- package/lib/plugin/output-channel-registry.d.ts.map +1 -1
- package/lib/plugin/plugin-context.d.ts +2 -0
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +47 -15
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts +1 -0
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-storage.d.ts +1 -0
- package/lib/plugin/plugin-storage.d.ts.map +1 -1
- package/lib/plugin/preference-registry.d.ts +1 -0
- package/lib/plugin/preference-registry.d.ts.map +1 -1
- package/lib/plugin/quick-open.d.ts +1 -0
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/scm.d.ts +2 -0
- package/lib/plugin/scm.d.ts.map +1 -1
- package/lib/plugin/scm.js +3 -3
- package/lib/plugin/scm.js.map +1 -1
- package/lib/plugin/secrets-ext.d.ts +1 -0
- package/lib/plugin/secrets-ext.d.ts.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +1 -0
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar-message-registry.d.ts +1 -0
- package/lib/plugin/status-bar-message-registry.d.ts.map +1 -1
- package/lib/plugin/tabs.d.ts +1 -0
- package/lib/plugin/tabs.d.ts.map +1 -1
- package/lib/plugin/tasks/task-provider.d.ts +1 -0
- package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
- package/lib/plugin/tasks/tasks.d.ts +1 -0
- package/lib/plugin/tasks/tasks.d.ts.map +1 -1
- package/lib/plugin/terminal-ext.d.ts +1 -0
- package/lib/plugin/terminal-ext.d.ts.map +1 -1
- package/lib/plugin/test-item.d.ts +1 -0
- package/lib/plugin/test-item.d.ts.map +1 -1
- package/lib/plugin/tests.d.ts +1 -0
- package/lib/plugin/tests.d.ts.map +1 -1
- package/lib/plugin/text-editor.d.ts +1 -0
- package/lib/plugin/text-editor.d.ts.map +1 -1
- package/lib/plugin/text-editors.d.ts +1 -0
- package/lib/plugin/text-editors.d.ts.map +1 -1
- package/lib/plugin/timeline.d.ts +1 -0
- package/lib/plugin/timeline.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.d.ts +1 -0
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/type-converters.d.ts +1 -0
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/types-impl.d.ts +1 -0
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/uri-ext.d.ts +1 -0
- package/lib/plugin/uri-ext.d.ts.map +1 -1
- package/lib/plugin/webview-views.d.ts +1 -0
- package/lib/plugin/webview-views.d.ts.map +1 -1
- package/lib/plugin/webviews.d.ts +1 -0
- package/lib/plugin/webviews.d.ts.map +1 -1
- package/lib/plugin/window-state.d.ts +2 -1
- package/lib/plugin/window-state.d.ts.map +1 -1
- package/lib/plugin/window-state.js +8 -1
- package/lib/plugin/window-state.js.map +1 -1
- package/lib/plugin/workspace.d.ts +1 -0
- package/lib/plugin/workspace.d.ts.map +1 -1
- package/package.json +29 -29
- package/src/main/browser/editors-and-documents-main.ts +5 -3
- package/src/main/browser/notebooks/notebook-documents-and-editors-main.ts +9 -8
- package/src/main/browser/notebooks/notebook-kernels-main.ts +2 -2
- package/src/main/browser/notebooks/notebooks-main.ts +13 -18
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +170 -74
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +237 -73
- package/src/main/browser/notebooks/renderers/webview-communication.ts +78 -7
- package/src/main/browser/plugin-ext-frontend-module.ts +6 -5
- package/src/main/browser/tabs/tabs-main.ts +17 -2
- package/src/plugin/file-system-event-service-ext-impl.ts +11 -8
- package/src/plugin/file-system-ext-impl.ts +7 -3
- package/src/plugin/file-system-watcher.spec.ts +125 -0
- package/src/plugin/notebook/notebooks.ts +5 -5
- package/src/plugin/plugin-context.ts +55 -15
- package/src/plugin/scm.ts +5 -4
- package/src/plugin/window-state.ts +7 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@theia/plugin/lib/theia.proposed.createFileSystemWatcher" />
|
|
1
2
|
/// <reference types="@theia/plugin/src/theia.proposed.debugVisualization" />
|
|
2
3
|
/// <reference types="@theia/plugin/lib/theia.proposed.multiDocumentHighlightProvider" />
|
|
3
4
|
/// <reference types="@theia/plugin/src/theia.proposed.notebookCellExecutionState" />
|
|
@@ -37,7 +38,7 @@ export declare class WindowStateExtImpl implements WindowStateExt {
|
|
|
37
38
|
$onDidChangeWindowFocus(focused: boolean): void;
|
|
38
39
|
$onDidChangeWindowActive(active: boolean): void;
|
|
39
40
|
onDidChangeWindowProperty(property: keyof WindowState, value: boolean): void;
|
|
40
|
-
openUri(
|
|
41
|
+
openUri(uriOrString: URI | string): Promise<boolean>;
|
|
41
42
|
asExternalUri(target: URI): Promise<URI>;
|
|
42
43
|
}
|
|
43
44
|
//# sourceMappingURL=window-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window-state.d.ts","sourceRoot":"","sources":["../../src/plugin/window-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"window-state.d.ts","sourceRoot":"","sources":["../../src/plugin/window-state.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAkC,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,KAAK,EAAW,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,kBAAmB,YAAW,cAAc;IAErD,OAAO,CAAC,iBAAiB,CAAc;IAEvC,OAAO,CAAC,yBAAyB,CAA8B;IAC/D,SAAgB,sBAAsB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAwC;IAElG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAa;gBAEvB,GAAG,EAAE,WAAW;IAK5B,cAAc,IAAI,WAAW;IAI7B,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAI/C,wBAAwB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI;IAI/C,yBAAyB,CAAC,QAAQ,EAAE,MAAM,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAStE,OAAO,CAAC,WAAW,EAAE,GAAG,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAcpD,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CASjD"}
|
|
@@ -42,7 +42,14 @@ class WindowStateExtImpl {
|
|
|
42
42
|
this.windowStateCached = { ...this.windowStateCached, [property]: value };
|
|
43
43
|
this.windowStateChangedEmitter.fire(this.windowStateCached);
|
|
44
44
|
}
|
|
45
|
-
openUri(
|
|
45
|
+
async openUri(uriOrString) {
|
|
46
|
+
let uri;
|
|
47
|
+
if (typeof uriOrString === 'string') {
|
|
48
|
+
uri = types_impl_1.URI.parse(uriOrString);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
uri = uriOrString;
|
|
52
|
+
}
|
|
46
53
|
if (!uri.scheme.trim().length) {
|
|
47
54
|
throw new Error('Invalid scheme - cannot be empty');
|
|
48
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"window-state.js","sourceRoot":"","sources":["../../src/plugin/window-state.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,6CAAmC;AAEnC,6DAA0F;AAC1F,wDAA8D;AAG9D,MAAa,kBAAkB;IAS3B,YAAY,GAAgB;QALpB,8BAAyB,GAAG,IAAI,eAAO,EAAe,CAAC;QAC/C,2BAAsB,GAAuB,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC;QAK9F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AI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACxD,CAAC;QAED,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAW;QAC3B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;YAC/B,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACpD,OAAO,gBAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;CAEJ;AA1DD,gDA0DC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@theia/plugin/lib/theia.proposed.createFileSystemWatcher" />
|
|
1
2
|
/// <reference types="@theia/plugin/src/theia.proposed.debugVisualization" />
|
|
2
3
|
/// <reference types="@theia/plugin/lib/theia.proposed.multiDocumentHighlightProvider" />
|
|
3
4
|
/// <reference types="@theia/plugin/src/theia.proposed.notebookCellExecutionState" />
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/plugin/workspace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/plugin/workspace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAW,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EACH,YAAY,EAKf,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAA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package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.55.0
|
|
3
|
+
"version": "1.55.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.55.0
|
|
9
|
-
"@theia/callhierarchy": "1.55.0
|
|
10
|
-
"@theia/console": "1.55.0
|
|
11
|
-
"@theia/core": "1.55.0
|
|
12
|
-
"@theia/debug": "1.55.0
|
|
13
|
-
"@theia/editor": "1.55.0
|
|
14
|
-
"@theia/editor-preview": "1.55.0
|
|
15
|
-
"@theia/file-search": "1.55.0
|
|
16
|
-
"@theia/filesystem": "1.55.0
|
|
17
|
-
"@theia/markers": "1.55.0
|
|
18
|
-
"@theia/messages": "1.55.0
|
|
19
|
-
"@theia/monaco": "1.55.0
|
|
8
|
+
"@theia/bulk-edit": "1.55.0",
|
|
9
|
+
"@theia/callhierarchy": "1.55.0",
|
|
10
|
+
"@theia/console": "1.55.0",
|
|
11
|
+
"@theia/core": "1.55.0",
|
|
12
|
+
"@theia/debug": "1.55.0",
|
|
13
|
+
"@theia/editor": "1.55.0",
|
|
14
|
+
"@theia/editor-preview": "1.55.0",
|
|
15
|
+
"@theia/file-search": "1.55.0",
|
|
16
|
+
"@theia/filesystem": "1.55.0",
|
|
17
|
+
"@theia/markers": "1.55.0",
|
|
18
|
+
"@theia/messages": "1.55.0",
|
|
19
|
+
"@theia/monaco": "1.55.0",
|
|
20
20
|
"@theia/monaco-editor-core": "1.83.101",
|
|
21
|
-
"@theia/navigator": "1.55.0
|
|
22
|
-
"@theia/notebook": "1.55.0
|
|
23
|
-
"@theia/output": "1.55.0
|
|
24
|
-
"@theia/plugin": "1.55.0
|
|
25
|
-
"@theia/preferences": "1.55.0
|
|
26
|
-
"@theia/scm": "1.55.0
|
|
27
|
-
"@theia/search-in-workspace": "1.55.0
|
|
28
|
-
"@theia/task": "1.55.0
|
|
29
|
-
"@theia/terminal": "1.55.0
|
|
30
|
-
"@theia/test": "1.55.0
|
|
31
|
-
"@theia/timeline": "1.55.0
|
|
32
|
-
"@theia/typehierarchy": "1.55.0
|
|
33
|
-
"@theia/variable-resolver": "1.55.0
|
|
34
|
-
"@theia/workspace": "1.55.0
|
|
21
|
+
"@theia/navigator": "1.55.0",
|
|
22
|
+
"@theia/notebook": "1.55.0",
|
|
23
|
+
"@theia/output": "1.55.0",
|
|
24
|
+
"@theia/plugin": "1.55.0",
|
|
25
|
+
"@theia/preferences": "1.55.0",
|
|
26
|
+
"@theia/scm": "1.55.0",
|
|
27
|
+
"@theia/search-in-workspace": "1.55.0",
|
|
28
|
+
"@theia/task": "1.55.0",
|
|
29
|
+
"@theia/terminal": "1.55.0",
|
|
30
|
+
"@theia/test": "1.55.0",
|
|
31
|
+
"@theia/timeline": "1.55.0",
|
|
32
|
+
"@theia/typehierarchy": "1.55.0",
|
|
33
|
+
"@theia/variable-resolver": "1.55.0",
|
|
34
|
+
"@theia/workspace": "1.55.0",
|
|
35
35
|
"@types/mime": "^2.0.1",
|
|
36
36
|
"@vscode/debugprotocol": "^1.51.0",
|
|
37
37
|
"@vscode/proxy-agent": "^0.13.2",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"watch": "theiaext watch"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@theia/ext-scripts": "1.
|
|
91
|
+
"@theia/ext-scripts": "1.55.0",
|
|
92
92
|
"@types/decompress": "^4.2.2",
|
|
93
93
|
"@types/escape-html": "^0.0.20",
|
|
94
94
|
"@types/lodash.clonedeep": "^4.5.3",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"nyc": {
|
|
98
98
|
"extends": "../../configs/nyc.json"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "0e7a523b8e798679d2e098709c63bd7060e54c8a"
|
|
101
101
|
}
|
|
@@ -250,7 +250,7 @@ class EditorAndDocumentStateComputer implements Disposable {
|
|
|
250
250
|
|
|
251
251
|
this.toDispose.push(this.cellEditorService.onDidChangeCellEditors(() => this.update()));
|
|
252
252
|
|
|
253
|
-
this.toDispose.push(this.notebookWidgetService.
|
|
253
|
+
this.toDispose.push(this.notebookWidgetService.onDidChangeCurrentEditor(() => {
|
|
254
254
|
this.currentState = this.currentState && new EditorAndDocumentState(
|
|
255
255
|
this.currentState.documents,
|
|
256
256
|
this.currentState.editors,
|
|
@@ -337,8 +337,10 @@ class EditorAndDocumentStateComputer implements Disposable {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
for (const editor of this.cellEditorService.allCellEditors) {
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
if (editor.getControl()?.getModel()) {
|
|
341
|
+
const editorSnapshot = new EditorSnapshot(editor);
|
|
342
|
+
editors.set(editorSnapshot.id, editorSnapshot);
|
|
343
|
+
}
|
|
342
344
|
};
|
|
343
345
|
|
|
344
346
|
const newState = new EditorAndDocumentState(models, editors, activeId);
|
|
@@ -55,7 +55,6 @@ class NotebookAndEditorState {
|
|
|
55
55
|
const documentDelta = diffSets(before.documents, after.documents);
|
|
56
56
|
const editorDelta = diffMaps(before.textEditors, after.textEditors);
|
|
57
57
|
|
|
58
|
-
const newActiveEditor = before.activeEditor !== after.activeEditor ? after.activeEditor : undefined;
|
|
59
58
|
const visibleEditorDelta = diffMaps(before.visibleEditors, after.visibleEditors);
|
|
60
59
|
|
|
61
60
|
return {
|
|
@@ -63,7 +62,7 @@ class NotebookAndEditorState {
|
|
|
63
62
|
removedDocuments: documentDelta.removed.map(e => e.uri.toComponents()),
|
|
64
63
|
addedEditors: editorDelta.added,
|
|
65
64
|
removedEditors: editorDelta.removed.map(removed => removed.id),
|
|
66
|
-
newActiveEditor:
|
|
65
|
+
newActiveEditor: after.activeEditor,
|
|
67
66
|
visibleEditors: visibleEditorDelta.added.length === 0 && visibleEditorDelta.removed.length === 0
|
|
68
67
|
? undefined
|
|
69
68
|
: [...after.visibleEditors].map(editor => editor[0])
|
|
@@ -114,7 +113,7 @@ export class NotebooksAndEditorsMain implements NotebookDocumentsAndEditorsMain
|
|
|
114
113
|
// this.WidgetManager.onActiveEditorChanged(() => this.updateState(), this, this.disposables);
|
|
115
114
|
this.notebookEditorService.onDidAddNotebookEditor(async editor => this.handleEditorAdd(editor), this, this.disposables);
|
|
116
115
|
this.notebookEditorService.onDidRemoveNotebookEditor(async editor => this.handleEditorRemove(editor), this, this.disposables);
|
|
117
|
-
this.notebookEditorService.
|
|
116
|
+
this.notebookEditorService.onDidChangeCurrentEditor(async editor => this.updateState(editor), this, this.disposables);
|
|
118
117
|
}
|
|
119
118
|
|
|
120
119
|
dispose(): void {
|
|
@@ -195,14 +194,16 @@ export class NotebooksAndEditorsMain implements NotebookDocumentsAndEditorsMain
|
|
|
195
194
|
addedEditors: delta.addedEditors.map(NotebooksAndEditorsMain.asEditorAddData),
|
|
196
195
|
};
|
|
197
196
|
|
|
198
|
-
//
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// handle internally
|
|
197
|
+
// Handle internally first
|
|
198
|
+
// In case the plugin wants to perform documents edits immediately
|
|
199
|
+
// we want to make sure that all events have already been setup
|
|
202
200
|
this.notebookEditorsMain.handleEditorsRemoved(delta.removedEditors);
|
|
203
201
|
this.notebookDocumentsMain.handleNotebooksRemoved(delta.removedDocuments);
|
|
204
202
|
this.notebookDocumentsMain.handleNotebooksAdded(delta.addedDocuments);
|
|
205
203
|
this.notebookEditorsMain.handleEditorsAdded(delta.addedEditors);
|
|
204
|
+
|
|
205
|
+
// Send to plugin last
|
|
206
|
+
await this.proxy.$acceptDocumentsAndEditorsDelta(dto);
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
private static isDeltaEmpty(delta: NotebookAndEditorDelta): boolean {
|
|
@@ -221,7 +222,7 @@ export class NotebooksAndEditorsMain implements NotebookDocumentsAndEditorsMain
|
|
|
221
222
|
if (delta.visibleEditors?.length) {
|
|
222
223
|
return false;
|
|
223
224
|
}
|
|
224
|
-
if (delta.newActiveEditor) {
|
|
225
|
+
if (delta.newActiveEditor !== undefined) {
|
|
225
226
|
return false;
|
|
226
227
|
}
|
|
227
228
|
return true;
|
|
@@ -25,13 +25,13 @@ import { CellExecuteUpdateDto, CellExecutionCompleteDto, MAIN_RPC_CONTEXT, Noteb
|
|
|
25
25
|
import { RPCProtocol } from '../../../common/rpc-protocol';
|
|
26
26
|
import {
|
|
27
27
|
CellExecution, NotebookEditorWidgetService, NotebookExecutionStateService,
|
|
28
|
-
NotebookKernelChangeEvent, NotebookKernelService, NotebookService
|
|
28
|
+
NotebookKernelChangeEvent, NotebookKernelService, NotebookService, NotebookKernel as NotebookKernelServiceKernel
|
|
29
29
|
} from '@theia/notebook/lib/browser';
|
|
30
30
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
31
31
|
import { NotebookKernelSourceAction } from '@theia/notebook/lib/common';
|
|
32
32
|
import { NotebookDto } from './notebook-dto';
|
|
33
33
|
|
|
34
|
-
abstract class NotebookKernel {
|
|
34
|
+
abstract class NotebookKernel implements NotebookKernelServiceKernel {
|
|
35
35
|
private readonly onDidChangeEmitter = new Emitter<NotebookKernelChangeEvent>();
|
|
36
36
|
private readonly preloads: { uri: URI; provides: readonly string[] }[];
|
|
37
37
|
readonly onDidChange: Event<NotebookKernelChangeEvent> = this.onDidChangeEmitter.event;
|
|
@@ -14,36 +14,30 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { CancellationToken, DisposableCollection, Emitter,
|
|
17
|
+
import { CancellationToken, DisposableCollection, Emitter, URI } from '@theia/core';
|
|
18
18
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
19
|
-
import { CellEditType, NotebookCellModelResource,
|
|
19
|
+
import { CellEditType, NotebookCellModelResource, NotebookData, NotebookModelResource, TransientOptions } from '@theia/notebook/lib/common';
|
|
20
20
|
import { NotebookService, NotebookWorkspaceEdit } from '@theia/notebook/lib/browser';
|
|
21
21
|
import { Disposable } from '@theia/plugin';
|
|
22
22
|
import { CommandRegistryMain, MAIN_RPC_CONTEXT, NotebooksExt, NotebooksMain, WorkspaceEditDto, WorkspaceNotebookCellEditDto } from '../../../common';
|
|
23
23
|
import { RPCProtocol } from '../../../common/rpc-protocol';
|
|
24
24
|
import { NotebookDto } from './notebook-dto';
|
|
25
|
-
import { UriComponents } from '@theia/core/lib/common/uri';
|
|
26
25
|
import { HostedPluginSupport } from '../../../hosted/browser/hosted-plugin';
|
|
27
26
|
import { NotebookModel } from '@theia/notebook/lib/browser/view-model/notebook-model';
|
|
28
27
|
import { NotebookCellModel } from '@theia/notebook/lib/browser/view-model/notebook-cell-model';
|
|
29
28
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export interface NotebookCellStatusBarItemProvider {
|
|
37
|
-
viewType: string;
|
|
38
|
-
onDidChangeStatusBarItems?: Event<void>;
|
|
39
|
-
provideCellStatusBarItems(uri: UriComponents, index: number, token: CancellationToken): Promise<NotebookCellStatusBarItemList | undefined>;
|
|
40
|
-
}
|
|
29
|
+
import {
|
|
30
|
+
NotebookCellStatusBarItemProvider,
|
|
31
|
+
NotebookCellStatusBarItemList,
|
|
32
|
+
NotebookCellStatusBarService
|
|
33
|
+
} from '@theia/notebook/lib/browser/service/notebook-cell-status-bar-service';
|
|
41
34
|
|
|
42
35
|
export class NotebooksMainImpl implements NotebooksMain {
|
|
43
36
|
|
|
44
37
|
protected readonly disposables = new DisposableCollection();
|
|
45
38
|
|
|
46
39
|
protected notebookService: NotebookService;
|
|
40
|
+
protected cellStatusBarService: NotebookCellStatusBarService;
|
|
47
41
|
|
|
48
42
|
protected readonly proxy: NotebooksExt;
|
|
49
43
|
protected readonly notebookSerializer = new Map<number, Disposable>();
|
|
@@ -55,6 +49,7 @@ export class NotebooksMainImpl implements NotebooksMain {
|
|
|
55
49
|
commands: CommandRegistryMain
|
|
56
50
|
) {
|
|
57
51
|
this.notebookService = container.get(NotebookService);
|
|
52
|
+
this.cellStatusBarService = container.get(NotebookCellStatusBarService);
|
|
58
53
|
const plugins = container.get(HostedPluginSupport);
|
|
59
54
|
|
|
60
55
|
this.proxy = rpc.getProxy(MAIN_RPC_CONTEXT.NOTEBOOKS_EXT);
|
|
@@ -111,8 +106,8 @@ export class NotebooksMainImpl implements NotebooksMain {
|
|
|
111
106
|
async $registerNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined, viewType: string): Promise<void> {
|
|
112
107
|
const that = this;
|
|
113
108
|
const provider: NotebookCellStatusBarItemProvider = {
|
|
114
|
-
async provideCellStatusBarItems(
|
|
115
|
-
const result = await that.proxy.$provideNotebookCellStatusBarItems(handle,
|
|
109
|
+
async provideCellStatusBarItems(notebookUri: URI, index: number, token: CancellationToken): Promise<NotebookCellStatusBarItemList | undefined> {
|
|
110
|
+
const result = await that.proxy.$provideNotebookCellStatusBarItems(handle, notebookUri.toComponents(), index, token);
|
|
116
111
|
return {
|
|
117
112
|
items: result?.items ?? [],
|
|
118
113
|
dispose(): void {
|
|
@@ -131,8 +126,8 @@ export class NotebooksMainImpl implements NotebooksMain {
|
|
|
131
126
|
provider.onDidChangeStatusBarItems = emitter.event;
|
|
132
127
|
}
|
|
133
128
|
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
const disposable = this.cellStatusBarService.registerCellStatusBarItemProvider(provider);
|
|
130
|
+
this.notebookCellStatusBarRegistrations.set(handle, disposable);
|
|
136
131
|
}
|
|
137
132
|
|
|
138
133
|
async $unregisterNotebookCellStatusBarItemProvider(handle: number, eventHandle: number | undefined): Promise<void> {
|