@theia/plugin-ext 1.66.0-next.44 → 1.66.0-next.67
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 +0 -28
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +2 -31
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-process.d.ts +2 -0
- package/lib/hosted/node/hosted-plugin-process.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-process.js +6 -5
- package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
- package/lib/main/browser/authentication-main.d.ts +2 -31
- package/lib/main/browser/authentication-main.d.ts.map +1 -1
- package/lib/main/browser/authentication-main.js +7 -10
- package/lib/main/browser/authentication-main.js.map +1 -1
- package/lib/main/browser/command-registry-main.d.ts +0 -29
- package/lib/main/browser/command-registry-main.d.ts.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts +0 -28
- package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
- package/lib/main/browser/comments/comments-main.d.ts +0 -28
- package/lib/main/browser/comments/comments-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts +0 -28
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +0 -28
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
- package/lib/main/browser/editors-and-documents-main.js +3 -0
- package/lib/main/browser/editors-and-documents-main.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +0 -28
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.d.ts +0 -28
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
- package/lib/main/browser/quick-open-main.d.ts +0 -28
- package/lib/main/browser/quick-open-main.d.ts.map +1 -1
- package/lib/main/browser/secrets-main.d.ts +3 -0
- package/lib/main/browser/secrets-main.d.ts.map +1 -1
- package/lib/main/browser/secrets-main.js +23 -0
- package/lib/main/browser/secrets-main.js.map +1 -1
- package/lib/main/browser/terminal-main.d.ts +0 -28
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-decorator-service.d.ts +0 -28
- package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +0 -28
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-views-main.d.ts +0 -28
- package/lib/main/browser/view/tree-views-main.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +0 -28
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview-views/webview-views-main.d.ts +0 -28
- package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
- package/lib/main/browser/webviews-main.d.ts +0 -28
- package/lib/main/browser/webviews-main.d.ts.map +1 -1
- package/lib/main/browser/workspace-main.d.ts +0 -28
- package/lib/main/browser/workspace-main.d.ts.map +1 -1
- package/lib/plugin/authentication-ext.d.ts +4 -32
- package/lib/plugin/authentication-ext.d.ts.map +1 -1
- package/lib/plugin/authentication-ext.js +2 -2
- package/lib/plugin/authentication-ext.js.map +1 -1
- package/lib/plugin/clipboard-ext.d.ts +0 -28
- package/lib/plugin/clipboard-ext.d.ts.map +1 -1
- package/lib/plugin/command-registry.d.ts +0 -29
- package/lib/plugin/command-registry.d.ts.map +1 -1
- package/lib/plugin/comments.d.ts +0 -28
- package/lib/plugin/comments.d.ts.map +1 -1
- package/lib/plugin/custom-editors.d.ts +0 -28
- package/lib/plugin/custom-editors.d.ts.map +1 -1
- package/lib/plugin/debug/debug-ext.d.ts +0 -29
- package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +0 -28
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +0 -28
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +0 -28
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -1
- package/lib/plugin/decorations.d.ts +0 -28
- package/lib/plugin/decorations.d.ts.map +1 -1
- package/lib/plugin/dialogs.d.ts +0 -28
- package/lib/plugin/dialogs.d.ts.map +1 -1
- package/lib/plugin/document-data.d.ts +0 -28
- package/lib/plugin/document-data.d.ts.map +1 -1
- package/lib/plugin/documents.d.ts +0 -28
- package/lib/plugin/documents.d.ts.map +1 -1
- package/lib/plugin/env.d.ts +0 -29
- package/lib/plugin/env.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts +0 -28
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-ext-impl.d.ts +0 -28
- package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
- package/lib/plugin/label-service.d.ts +0 -29
- package/lib/plugin/label-service.d.ts.map +1 -1
- package/lib/plugin/languages/call-hierarchy.d.ts +0 -28
- package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/code-action.d.ts +0 -28
- package/lib/plugin/languages/code-action.d.ts.map +1 -1
- package/lib/plugin/languages/color.d.ts +0 -28
- package/lib/plugin/languages/color.d.ts.map +1 -1
- package/lib/plugin/languages/completion.d.ts +0 -28
- package/lib/plugin/languages/completion.d.ts.map +1 -1
- package/lib/plugin/languages/declaration.d.ts +0 -28
- package/lib/plugin/languages/declaration.d.ts.map +1 -1
- package/lib/plugin/languages/definition.d.ts +0 -28
- package/lib/plugin/languages/definition.d.ts.map +1 -1
- package/lib/plugin/languages/diagnostics.d.ts +0 -28
- package/lib/plugin/languages/diagnostics.d.ts.map +1 -1
- package/lib/plugin/languages/document-drop-edit.d.ts +0 -28
- package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -1
- package/lib/plugin/languages/document-formatting.d.ts +0 -28
- package/lib/plugin/languages/document-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/document-highlight.d.ts +0 -28
- package/lib/plugin/languages/document-highlight.d.ts.map +1 -1
- package/lib/plugin/languages/evaluatable-expression.d.ts +0 -28
- package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -1
- package/lib/plugin/languages/folding.d.ts +0 -28
- package/lib/plugin/languages/folding.d.ts.map +1 -1
- package/lib/plugin/languages/hover.d.ts +0 -28
- package/lib/plugin/languages/hover.d.ts.map +1 -1
- package/lib/plugin/languages/implementation.d.ts +0 -28
- package/lib/plugin/languages/implementation.d.ts.map +1 -1
- package/lib/plugin/languages/inlay-hints.d.ts +0 -28
- package/lib/plugin/languages/inlay-hints.d.ts.map +1 -1
- package/lib/plugin/languages/inline-completion.d.ts +0 -28
- package/lib/plugin/languages/inline-completion.d.ts.map +1 -1
- package/lib/plugin/languages/inline-values.d.ts +0 -28
- package/lib/plugin/languages/inline-values.d.ts.map +1 -1
- package/lib/plugin/languages/lens.d.ts +0 -28
- package/lib/plugin/languages/lens.d.ts.map +1 -1
- package/lib/plugin/languages/link-provider.d.ts +0 -28
- package/lib/plugin/languages/link-provider.d.ts.map +1 -1
- package/lib/plugin/languages/linked-editing-range.d.ts +0 -28
- package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -1
- package/lib/plugin/languages/on-type-formatting.d.ts +0 -28
- package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/outline.d.ts +0 -28
- package/lib/plugin/languages/outline.d.ts.map +1 -1
- package/lib/plugin/languages/range-formatting.d.ts +0 -28
- package/lib/plugin/languages/range-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/reference.d.ts +0 -28
- package/lib/plugin/languages/reference.d.ts.map +1 -1
- package/lib/plugin/languages/rename.d.ts +0 -28
- package/lib/plugin/languages/rename.d.ts.map +1 -1
- package/lib/plugin/languages/selection-range.d.ts +0 -28
- package/lib/plugin/languages/selection-range.d.ts.map +1 -1
- package/lib/plugin/languages/semantic-highlighting.d.ts +0 -28
- package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -1
- package/lib/plugin/languages/signature.d.ts +0 -28
- package/lib/plugin/languages/signature.d.ts.map +1 -1
- package/lib/plugin/languages/type-definition.d.ts +0 -28
- package/lib/plugin/languages/type-definition.d.ts.map +1 -1
- package/lib/plugin/languages/type-hierarchy.d.ts +0 -28
- package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/util.d.ts +0 -28
- package/lib/plugin/languages/util.d.ts.map +1 -1
- package/lib/plugin/languages/workspace-symbol.d.ts +0 -28
- package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -1
- package/lib/plugin/languages-utils.d.ts +0 -28
- package/lib/plugin/languages-utils.d.ts.map +1 -1
- package/lib/plugin/languages.d.ts +0 -28
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/lm-ext.d.ts +0 -28
- package/lib/plugin/lm-ext.d.ts.map +1 -1
- package/lib/plugin/markdown-string.d.ts +0 -28
- package/lib/plugin/markdown-string.d.ts.map +1 -1
- package/lib/plugin/message-registry.d.ts +0 -28
- package/lib/plugin/message-registry.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +0 -28
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-document.d.ts +0 -28
- package/lib/plugin/notebook/notebook-document.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-documents.d.ts +0 -28
- package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editor.d.ts +0 -28
- package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editors.d.ts +0 -28
- package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.d.ts +0 -28
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-renderers.d.ts +0 -28
- package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
- package/lib/plugin/notebook/notebooks.d.ts +0 -28
- package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
- package/lib/plugin/notification.d.ts +0 -28
- package/lib/plugin/notification.d.ts.map +1 -1
- package/lib/plugin/output-channel/log-output-channel.d.ts +0 -28
- package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -1
- package/lib/plugin/output-channel/output-channel-item.d.ts +0 -28
- package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -1
- package/lib/plugin/output-channel-registry.d.ts +0 -28
- package/lib/plugin/output-channel-registry.d.ts.map +1 -1
- package/lib/plugin/plugin-context.d.ts +0 -29
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +1 -1
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts +0 -29
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-storage.d.ts +0 -28
- package/lib/plugin/plugin-storage.d.ts.map +1 -1
- package/lib/plugin/preference-registry.d.ts +0 -28
- package/lib/plugin/preference-registry.d.ts.map +1 -1
- package/lib/plugin/quick-open.d.ts +0 -28
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/scm.d.ts +0 -28
- package/lib/plugin/scm.d.ts.map +1 -1
- package/lib/plugin/secrets-ext.d.ts +3 -28
- package/lib/plugin/secrets-ext.d.ts.map +1 -1
- package/lib/plugin/secrets-ext.js +6 -0
- package/lib/plugin/secrets-ext.js.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +0 -28
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar-message-registry.d.ts +0 -28
- package/lib/plugin/status-bar-message-registry.d.ts.map +1 -1
- package/lib/plugin/tabs.d.ts +0 -28
- package/lib/plugin/tabs.d.ts.map +1 -1
- package/lib/plugin/tasks/task-provider.d.ts +0 -28
- package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
- package/lib/plugin/tasks/tasks.d.ts +0 -28
- package/lib/plugin/tasks/tasks.d.ts.map +1 -1
- package/lib/plugin/terminal-ext.d.ts +0 -29
- package/lib/plugin/terminal-ext.d.ts.map +1 -1
- package/lib/plugin/test-item.d.ts +0 -28
- package/lib/plugin/test-item.d.ts.map +1 -1
- package/lib/plugin/tests.d.ts +0 -28
- package/lib/plugin/tests.d.ts.map +1 -1
- package/lib/plugin/text-editor.d.ts +0 -28
- package/lib/plugin/text-editor.d.ts.map +1 -1
- package/lib/plugin/text-editors.d.ts +0 -28
- package/lib/plugin/text-editors.d.ts.map +1 -1
- package/lib/plugin/timeline.d.ts +0 -29
- package/lib/plugin/timeline.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.d.ts +0 -28
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/type-converters.d.ts +0 -28
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/types-impl.d.ts +0 -28
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/uri-ext.d.ts +0 -28
- package/lib/plugin/uri-ext.d.ts.map +1 -1
- package/lib/plugin/webview-views.d.ts +0 -28
- package/lib/plugin/webview-views.d.ts.map +1 -1
- package/lib/plugin/webviews.d.ts +0 -28
- package/lib/plugin/webviews.d.ts.map +1 -1
- package/lib/plugin/window-state.d.ts +0 -28
- package/lib/plugin/window-state.d.ts.map +1 -1
- package/lib/plugin/workspace.d.ts +0 -28
- package/lib/plugin/workspace.d.ts.map +1 -1
- package/package.json +30 -32
- package/src/common/plugin-api-rpc.ts +2 -1
- package/src/hosted/node/hosted-plugin-process.ts +5 -7
- package/src/main/browser/authentication-main.ts +8 -11
- package/src/main/browser/editors-and-documents-main.ts +3 -0
- package/src/main/browser/secrets-main.ts +25 -0
- package/src/plugin/authentication-ext.ts +6 -6
- package/src/plugin/plugin-context.ts +1 -3
- package/src/plugin/secrets-ext.ts +10 -0
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
/// <reference types="@theia/plugin/src/theia.proposed.debugVisualization" />
|
|
2
|
-
/// <reference types="@theia/plugin/lib/theia.proposed.multiDocumentHighlightProvider" />
|
|
3
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookCellExecutionState" />
|
|
4
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookKernelSource" />
|
|
5
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookMessaging" />
|
|
6
|
-
/// <reference types="@theia/plugin/src/theia.proposed.portsAttributes" />
|
|
7
|
-
/// <reference types="@theia/plugin/src/theia.proposed.scmProviderOptions" />
|
|
8
|
-
/// <reference types="@theia/plugin/src/theia.proposed.terminalCompletionProvider" />
|
|
9
|
-
/// <reference types="@theia/plugin/src/theia.proposed.textEditorDiffInformation" />
|
|
10
|
-
/// <reference types="@theia/plugin/src/theia.proposed.statusBarItemTooltip" />
|
|
11
|
-
/// <reference types="@theia/plugin/src/theia-extra" />
|
|
12
|
-
/// <reference types="@theia/plugin/src/theia.proposed.canonicalUriProvider" />
|
|
13
|
-
/// <reference types="@theia/plugin/src/theia.proposed.customEditorMove" />
|
|
14
|
-
/// <reference types="@theia/plugin/src/theia.proposed.diffCommand" />
|
|
15
|
-
/// <reference types="@theia/plugin/src/theia.proposed.editSessionIdentityProvider" />
|
|
16
|
-
/// <reference types="@theia/plugin/src/theia.proposed.extensionsAny" />
|
|
17
|
-
/// <reference types="@theia/plugin/src/theia.proposed.externalUriOpener" />
|
|
18
|
-
/// <reference types="@theia/plugin/src/theia.proposed.findTextInFiles" />
|
|
19
|
-
/// <reference types="@theia/plugin/src/theia.proposed.fsChunks" />
|
|
20
|
-
/// <reference types="@theia/plugin/src/theia.proposed.interactiveWindow" />
|
|
21
|
-
/// <reference types="@theia/plugin/src/theia.proposed.mappedEditsProvider" />
|
|
22
|
-
/// <reference types="@theia/plugin/src/theia.proposed.profileContentHandlers" />
|
|
23
|
-
/// <reference types="@theia/plugin/src/theia.proposed.resolvers" />
|
|
24
|
-
/// <reference types="@theia/plugin/src/theia.proposed.scmValidation" />
|
|
25
|
-
/// <reference types="@theia/plugin/src/theia.proposed.shareProvider" />
|
|
26
|
-
/// <reference types="@theia/plugin/src/theia.proposed.terminalQuickFixProvider" />
|
|
27
|
-
/// <reference types="@theia/plugin/src/theia.proposed.textSearchProvider" />
|
|
28
|
-
/// <reference types="@theia/plugin/src/theia.proposed.timeline" />
|
|
29
1
|
import { URI } from './types-impl';
|
|
30
2
|
import { WindowState } from '@theia/plugin';
|
|
31
3
|
import { WindowStateExt } from '../common/plugin-api-rpc';
|
|
@@ -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"}
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
/// <reference types="@theia/plugin/src/theia.proposed.debugVisualization" />
|
|
2
|
-
/// <reference types="@theia/plugin/lib/theia.proposed.multiDocumentHighlightProvider" />
|
|
3
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookCellExecutionState" />
|
|
4
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookKernelSource" />
|
|
5
|
-
/// <reference types="@theia/plugin/src/theia.proposed.notebookMessaging" />
|
|
6
|
-
/// <reference types="@theia/plugin/src/theia.proposed.portsAttributes" />
|
|
7
|
-
/// <reference types="@theia/plugin/src/theia.proposed.scmProviderOptions" />
|
|
8
|
-
/// <reference types="@theia/plugin/src/theia.proposed.terminalCompletionProvider" />
|
|
9
|
-
/// <reference types="@theia/plugin/src/theia.proposed.textEditorDiffInformation" />
|
|
10
|
-
/// <reference types="@theia/plugin/src/theia.proposed.statusBarItemTooltip" />
|
|
11
|
-
/// <reference types="@theia/plugin/src/theia-extra" />
|
|
12
|
-
/// <reference types="@theia/plugin/src/theia.proposed.canonicalUriProvider" />
|
|
13
|
-
/// <reference types="@theia/plugin/src/theia.proposed.customEditorMove" />
|
|
14
|
-
/// <reference types="@theia/plugin/src/theia.proposed.diffCommand" />
|
|
15
|
-
/// <reference types="@theia/plugin/src/theia.proposed.editSessionIdentityProvider" />
|
|
16
|
-
/// <reference types="@theia/plugin/src/theia.proposed.extensionsAny" />
|
|
17
|
-
/// <reference types="@theia/plugin/src/theia.proposed.externalUriOpener" />
|
|
18
|
-
/// <reference types="@theia/plugin/src/theia.proposed.findTextInFiles" />
|
|
19
|
-
/// <reference types="@theia/plugin/src/theia.proposed.fsChunks" />
|
|
20
|
-
/// <reference types="@theia/plugin/src/theia.proposed.interactiveWindow" />
|
|
21
|
-
/// <reference types="@theia/plugin/src/theia.proposed.mappedEditsProvider" />
|
|
22
|
-
/// <reference types="@theia/plugin/src/theia.proposed.profileContentHandlers" />
|
|
23
|
-
/// <reference types="@theia/plugin/src/theia.proposed.resolvers" />
|
|
24
|
-
/// <reference types="@theia/plugin/src/theia.proposed.scmValidation" />
|
|
25
|
-
/// <reference types="@theia/plugin/src/theia.proposed.shareProvider" />
|
|
26
|
-
/// <reference types="@theia/plugin/src/theia.proposed.terminalQuickFixProvider" />
|
|
27
|
-
/// <reference types="@theia/plugin/src/theia.proposed.textSearchProvider" />
|
|
28
|
-
/// <reference types="@theia/plugin/src/theia.proposed.timeline" />
|
|
29
1
|
import * as theia from '@theia/plugin';
|
|
30
2
|
import { Event } from '@theia/core/lib/common/event';
|
|
31
3
|
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
@@ -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,EAAE,uBAAuB,EAAS,MAAM,gCAAgC,CAAC;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,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,2BAA2B,GAAG,KAAK,CAAC,UAAU;IAI7G,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAkB3F,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,UAAU,CAAC;IAOjG,OAAO,CAAC,wBAAwB;CAMnC"}
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.66.0-next.
|
|
3
|
+
"version": "1.66.0-next.67+6fae23c43",
|
|
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/ai-mcp": "1.66.0-next.
|
|
9
|
-
"@theia/bulk-edit": "1.66.0-next.
|
|
10
|
-
"@theia/callhierarchy": "1.66.0-next.
|
|
11
|
-
"@theia/console": "1.66.0-next.
|
|
12
|
-
"@theia/core": "1.66.0-next.
|
|
13
|
-
"@theia/debug": "1.66.0-next.
|
|
14
|
-
"@theia/editor": "1.66.0-next.
|
|
15
|
-
"@theia/editor-preview": "1.66.0-next.
|
|
16
|
-
"@theia/file-search": "1.66.0-next.
|
|
17
|
-
"@theia/filesystem": "1.66.0-next.
|
|
18
|
-
"@theia/markers": "1.66.0-next.
|
|
19
|
-
"@theia/messages": "1.66.0-next.
|
|
20
|
-
"@theia/monaco": "1.66.0-next.
|
|
8
|
+
"@theia/ai-mcp": "1.66.0-next.67+6fae23c43",
|
|
9
|
+
"@theia/bulk-edit": "1.66.0-next.67+6fae23c43",
|
|
10
|
+
"@theia/callhierarchy": "1.66.0-next.67+6fae23c43",
|
|
11
|
+
"@theia/console": "1.66.0-next.67+6fae23c43",
|
|
12
|
+
"@theia/core": "1.66.0-next.67+6fae23c43",
|
|
13
|
+
"@theia/debug": "1.66.0-next.67+6fae23c43",
|
|
14
|
+
"@theia/editor": "1.66.0-next.67+6fae23c43",
|
|
15
|
+
"@theia/editor-preview": "1.66.0-next.67+6fae23c43",
|
|
16
|
+
"@theia/file-search": "1.66.0-next.67+6fae23c43",
|
|
17
|
+
"@theia/filesystem": "1.66.0-next.67+6fae23c43",
|
|
18
|
+
"@theia/markers": "1.66.0-next.67+6fae23c43",
|
|
19
|
+
"@theia/messages": "1.66.0-next.67+6fae23c43",
|
|
20
|
+
"@theia/monaco": "1.66.0-next.67+6fae23c43",
|
|
21
21
|
"@theia/monaco-editor-core": "1.96.302",
|
|
22
|
-
"@theia/navigator": "1.66.0-next.
|
|
23
|
-
"@theia/notebook": "1.66.0-next.
|
|
24
|
-
"@theia/output": "1.66.0-next.
|
|
25
|
-
"@theia/plugin": "1.66.0-next.
|
|
26
|
-
"@theia/preferences": "1.66.0-next.
|
|
27
|
-
"@theia/scm": "1.66.0-next.
|
|
28
|
-
"@theia/search-in-workspace": "1.66.0-next.
|
|
29
|
-
"@theia/task": "1.66.0-next.
|
|
30
|
-
"@theia/terminal": "1.66.0-next.
|
|
31
|
-
"@theia/test": "1.66.0-next.
|
|
32
|
-
"@theia/timeline": "1.66.0-next.
|
|
33
|
-
"@theia/typehierarchy": "1.66.0-next.
|
|
34
|
-
"@theia/variable-resolver": "1.66.0-next.
|
|
35
|
-
"@theia/workspace": "1.66.0-next.
|
|
22
|
+
"@theia/navigator": "1.66.0-next.67+6fae23c43",
|
|
23
|
+
"@theia/notebook": "1.66.0-next.67+6fae23c43",
|
|
24
|
+
"@theia/output": "1.66.0-next.67+6fae23c43",
|
|
25
|
+
"@theia/plugin": "1.66.0-next.67+6fae23c43",
|
|
26
|
+
"@theia/preferences": "1.66.0-next.67+6fae23c43",
|
|
27
|
+
"@theia/scm": "1.66.0-next.67+6fae23c43",
|
|
28
|
+
"@theia/search-in-workspace": "1.66.0-next.67+6fae23c43",
|
|
29
|
+
"@theia/task": "1.66.0-next.67+6fae23c43",
|
|
30
|
+
"@theia/terminal": "1.66.0-next.67+6fae23c43",
|
|
31
|
+
"@theia/test": "1.66.0-next.67+6fae23c43",
|
|
32
|
+
"@theia/timeline": "1.66.0-next.67+6fae23c43",
|
|
33
|
+
"@theia/typehierarchy": "1.66.0-next.67+6fae23c43",
|
|
34
|
+
"@theia/variable-resolver": "1.66.0-next.67+6fae23c43",
|
|
35
|
+
"@theia/workspace": "1.66.0-next.67+6fae23c43",
|
|
36
36
|
"@types/mime": "^2.0.1",
|
|
37
37
|
"@vscode/debugprotocol": "^1.51.0",
|
|
38
38
|
"@vscode/proxy-agent": "^0.13.2",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"macaddress": "^0.5.3",
|
|
47
47
|
"mime": "^2.4.4",
|
|
48
48
|
"node-pty": "1.1.0-beta27",
|
|
49
|
-
"ps-tree": "^1.2.0",
|
|
50
49
|
"semver": "^7.5.4",
|
|
51
50
|
"tslib": "^2.6.2",
|
|
52
51
|
"vhost": "^3.0.2",
|
|
@@ -93,11 +92,10 @@
|
|
|
93
92
|
"@theia/ext-scripts": "1.65.0",
|
|
94
93
|
"@types/decompress": "^4.2.2",
|
|
95
94
|
"@types/escape-html": "^0.0.20",
|
|
96
|
-
"@types/lodash.clonedeep": "^4.5.3"
|
|
97
|
-
"@types/ps-tree": "^1.1.0"
|
|
95
|
+
"@types/lodash.clonedeep": "^4.5.3"
|
|
98
96
|
},
|
|
99
97
|
"nyc": {
|
|
100
98
|
"extends": "../../configs/nyc.json"
|
|
101
99
|
},
|
|
102
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "6fae23c43f4e850ef4dd6f7c85aa0422077f70e2"
|
|
103
101
|
}
|
|
@@ -2438,7 +2438,7 @@ export interface AuthenticationMain {
|
|
|
2438
2438
|
$registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean): void;
|
|
2439
2439
|
$unregisterAuthenticationProvider(id: string): void;
|
|
2440
2440
|
$onDidChangeSessions(providerId: string, event: AuthenticationProviderAuthenticationSessionsChangeEvent): void;
|
|
2441
|
-
$getSession(providerId: string,
|
|
2441
|
+
$getSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest, extensionId: string, extensionName: string,
|
|
2442
2442
|
options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
|
|
2443
2443
|
}
|
|
2444
2444
|
|
|
@@ -2750,6 +2750,7 @@ export interface SecretsMain {
|
|
|
2750
2750
|
$getPassword(extensionId: string, key: string): Promise<string | undefined>;
|
|
2751
2751
|
$setPassword(extensionId: string, key: string, value: string): Promise<void>;
|
|
2752
2752
|
$deletePassword(extensionId: string, key: string): Promise<void>;
|
|
2753
|
+
$getKeys(extensionId: string): Promise<string[]>;
|
|
2753
2754
|
}
|
|
2754
2755
|
|
|
2755
2756
|
export type InlayHintDto = CachedSessionItem<InlayHint>;
|
|
@@ -25,7 +25,7 @@ import { HostedPluginClient, PLUGIN_HOST_BACKEND, PluginHostEnvironmentVariable,
|
|
|
25
25
|
import { HostedPluginCliContribution } from './hosted-plugin-cli-contribution';
|
|
26
26
|
import { HostedPluginLocalizationService } from './hosted-plugin-localization-service';
|
|
27
27
|
import { ProcessTerminateMessage, ProcessTerminatedMessage } from './hosted-plugin-protocol';
|
|
28
|
-
import
|
|
28
|
+
import { ProcessUtils } from '@theia/core/lib/node/process-utils';
|
|
29
29
|
|
|
30
30
|
export interface IPCConnectionOptions {
|
|
31
31
|
readonly serverName: string;
|
|
@@ -61,6 +61,9 @@ export class HostedPluginProcess implements ServerPluginRunner {
|
|
|
61
61
|
@inject(HostedPluginLocalizationService)
|
|
62
62
|
protected readonly localizationService: HostedPluginLocalizationService;
|
|
63
63
|
|
|
64
|
+
@inject(ProcessUtils)
|
|
65
|
+
protected readonly processUtils: ProcessUtils;
|
|
66
|
+
|
|
64
67
|
private childProcess: cp.ChildProcess | undefined;
|
|
65
68
|
private messagePipe?: BinaryMessagePipe;
|
|
66
69
|
private client: HostedPluginClient;
|
|
@@ -130,12 +133,7 @@ export class HostedPluginProcess implements ServerPluginRunner {
|
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
killProcessTree(parentPid: number): void {
|
|
133
|
-
|
|
134
|
-
childProcesses.forEach(childProcess =>
|
|
135
|
-
this.killProcess(parseInt(childProcess.PID))
|
|
136
|
-
);
|
|
137
|
-
this.killProcess(parentPid);
|
|
138
|
-
});
|
|
136
|
+
this.processUtils.terminateProcessTree(parentPid);
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
protected killProcess(pid: number): void {
|
|
@@ -76,17 +76,13 @@ export class AuthenticationMainImpl implements AuthenticationMain {
|
|
|
76
76
|
return this.authenticationService.logout(providerId, sessionId);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
protected async requestNewSession(providerId: string, scopes: string[], extensionId: string, extensionName: string): Promise<void> {
|
|
80
|
-
return this.authenticationService.requestNewSession(providerId, scopes, extensionId, extensionName);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
79
|
$getAccounts(providerId: string): Thenable<readonly theia.AuthenticationSessionAccountInformation[]> {
|
|
84
80
|
return this.authenticationService.getSessions(providerId).then(sessions => sessions.map(session => session.account));
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
async $getSession(providerId: string,
|
|
83
|
+
async $getSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest, extensionId: string, extensionName: string,
|
|
88
84
|
options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined> {
|
|
89
|
-
const sessions = await this.authenticationService.getSessions(providerId,
|
|
85
|
+
const sessions = await this.authenticationService.getSessions(providerId, scopeListOrRequest, options?.account);
|
|
90
86
|
|
|
91
87
|
// Error cases
|
|
92
88
|
if (options.forceNewSession && options.createIfNone) {
|
|
@@ -137,8 +133,8 @@ export class AuthenticationMainImpl implements AuthenticationMain {
|
|
|
137
133
|
}
|
|
138
134
|
|
|
139
135
|
const session = sessions?.length && !shouldForceNewSession && supportsMultipleAccounts
|
|
140
|
-
? await this.selectSession(providerId, providerName, extensionId, extensionName, sessions,
|
|
141
|
-
: await this.authenticationService.login(providerId,
|
|
136
|
+
? await this.selectSession(providerId, providerName, extensionId, extensionName, sessions, scopeListOrRequest, !!options.clearSessionPreference)
|
|
137
|
+
: await this.authenticationService.login(providerId, scopeListOrRequest);
|
|
142
138
|
await this.setTrustedExtensionAndAccountPreference(providerId, session.account.label, extensionId, extensionName, session.id);
|
|
143
139
|
return session;
|
|
144
140
|
}
|
|
@@ -146,13 +142,14 @@ export class AuthenticationMainImpl implements AuthenticationMain {
|
|
|
146
142
|
// passive flows (silent or default)
|
|
147
143
|
const validSession = sessions.find(s => this.isAccessAllowed(providerId, s.account.label, extensionId));
|
|
148
144
|
if (!options.silent && !validSession) {
|
|
149
|
-
this.authenticationService.requestNewSession(providerId,
|
|
145
|
+
this.authenticationService.requestNewSession(providerId, scopeListOrRequest, extensionId, extensionName);
|
|
150
146
|
}
|
|
151
147
|
return validSession;
|
|
152
148
|
}
|
|
153
149
|
|
|
154
150
|
protected async selectSession(providerId: string, providerName: string, extensionId: string, extensionName: string,
|
|
155
|
-
potentialSessions: Readonly<AuthenticationSession[]>,
|
|
151
|
+
potentialSessions: Readonly<AuthenticationSession[]>, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
152
|
+
clearSessionPreference: boolean): Promise<theia.AuthenticationSession> {
|
|
156
153
|
|
|
157
154
|
if (!potentialSessions.length) {
|
|
158
155
|
throw new Error('No potential sessions found');
|
|
@@ -178,7 +175,7 @@ export class AuthenticationMainImpl implements AuthenticationMain {
|
|
|
178
175
|
if (selected) {
|
|
179
176
|
|
|
180
177
|
// if we ever have accounts without sessions, pass the account to the login call
|
|
181
|
-
const session = selected.value?.session ?? await this.authenticationService.login(providerId,
|
|
178
|
+
const session = selected.value?.session ?? await this.authenticationService.login(providerId, scopeListOrRequest);
|
|
182
179
|
const accountName = session.account.label;
|
|
183
180
|
|
|
184
181
|
const allowList = await readAllowedExtensions(this.storageService, providerId, accountName);
|
|
@@ -299,6 +299,9 @@ class EditorAndDocumentStateComputer implements Disposable {
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
private onTextEditorAdd(widget: EditorWidget): void {
|
|
302
|
+
if (widget.isDisposed) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
302
305
|
const editor = MonacoEditor.get(widget);
|
|
303
306
|
if (!editor) {
|
|
304
307
|
return;
|
|
@@ -79,4 +79,29 @@ export class SecretsMainImpl implements SecretsMain {
|
|
|
79
79
|
throw new Error('Cannot delete password');
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
+
|
|
83
|
+
async $getKeys(extensionId: string): Promise<string[]> {
|
|
84
|
+
return this.doGetKeys(extensionId);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
private async doGetKeys(extensionId: string): Promise<string[]> {
|
|
88
|
+
if (!this.credentialsService.keys) {
|
|
89
|
+
throw new Error('CredentialsProvider does not support keys() method');
|
|
90
|
+
}
|
|
91
|
+
const fullKey = SecretsMainImpl.getFullKey(extensionId);
|
|
92
|
+
const allKeys = await this.credentialsService.keys(fullKey);
|
|
93
|
+
const keys = allKeys
|
|
94
|
+
.map(key => this.parseKey(key))
|
|
95
|
+
.filter((parsedKey): parsedKey is { extensionId: string; key: string } => parsedKey !== undefined && parsedKey.extensionId === extensionId)
|
|
96
|
+
.map(({ key }) => key);
|
|
97
|
+
return keys;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
private parseKey(key: string): { extensionId: string; key: string } | undefined {
|
|
101
|
+
try {
|
|
102
|
+
return JSON.parse(key);
|
|
103
|
+
} catch {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
82
107
|
}
|
|
@@ -41,20 +41,20 @@ export class AuthenticationExtImpl implements AuthenticationExt {
|
|
|
41
41
|
this.proxy = rpc.getProxy(PLUGIN_RPC_CONTEXT.AUTHENTICATION_MAIN);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
async getSession(requestingExtension: InternalPlugin, providerId: string,
|
|
44
|
+
async getSession(requestingExtension: InternalPlugin, providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
45
45
|
options: theia.AuthenticationGetSessionOptions & ({ createIfNone: true } | { forceNewSession: true } | { forceNewSession: theia.AuthenticationForceNewSessionOptions })):
|
|
46
46
|
Promise<theia.AuthenticationSession>;
|
|
47
|
-
async getSession(requestingExtension: InternalPlugin, providerId: string,
|
|
47
|
+
async getSession(requestingExtension: InternalPlugin, providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
48
48
|
options: theia.AuthenticationGetSessionOptions & { forceNewSession: true }): Promise<theia.AuthenticationSession>;
|
|
49
|
-
async getSession(requestingExtension: InternalPlugin, providerId: string,
|
|
49
|
+
async getSession(requestingExtension: InternalPlugin, providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
50
50
|
options: theia.AuthenticationGetSessionOptions & { forceNewSession: theia.AuthenticationForceNewSessionOptions }): Promise<theia.AuthenticationSession>;
|
|
51
|
-
async getSession(requestingExtension: InternalPlugin, providerId: string,
|
|
51
|
+
async getSession(requestingExtension: InternalPlugin, providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
52
52
|
options: theia.AuthenticationGetSessionOptions): Promise<theia.AuthenticationSession | undefined>;
|
|
53
|
-
async getSession(requestingExtension: InternalPlugin, providerId: string,
|
|
53
|
+
async getSession(requestingExtension: InternalPlugin, providerId: string, scopeListOrRequest: ReadonlyArray<string> | theia.AuthenticationWwwAuthenticateRequest,
|
|
54
54
|
options: theia.AuthenticationGetSessionOptions = {}): Promise<theia.AuthenticationSession | undefined> {
|
|
55
55
|
const extensionName = requestingExtension.model.displayName || requestingExtension.model.name;
|
|
56
56
|
const extensionId = requestingExtension.model.id.toLowerCase();
|
|
57
|
-
return this.proxy.$getSession(providerId,
|
|
57
|
+
return this.proxy.$getSession(providerId, scopeListOrRequest, extensionId, extensionName, options);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
getAccounts(providerId: string): Thenable<readonly theia.AuthenticationSessionAccountInformation[]> {
|
|
@@ -686,9 +686,7 @@ export function createAPIFactory(
|
|
|
686
686
|
},
|
|
687
687
|
/** @stubbed TerminalCompletionProvider */
|
|
688
688
|
registerTerminalCompletionProvider<T extends theia.TerminalCompletionItem>(
|
|
689
|
-
provider: theia.TerminalCompletionProvider<T>,
|
|
690
|
-
...triggerCharacters: string[]
|
|
691
|
-
): theia.Disposable {
|
|
689
|
+
id: string, provider: theia.TerminalCompletionProvider<T>, ...triggerCharacters: string[]): theia.Disposable {
|
|
692
690
|
return Disposable.NULL;
|
|
693
691
|
},
|
|
694
692
|
/** @stubbed TerminalQuickFixProvider */
|
|
@@ -34,6 +34,8 @@ export interface PasswordChange {
|
|
|
34
34
|
|
|
35
35
|
export const InternalSecretsExt = Symbol('InternalSecretsExt');
|
|
36
36
|
export interface InternalSecretsExt extends SecretsExt {
|
|
37
|
+
keys(extensionId: string): Promise<string[]>;
|
|
38
|
+
|
|
37
39
|
get(extensionId: string, key: string): Promise<string | undefined>;
|
|
38
40
|
|
|
39
41
|
store(extensionId: string, key: string, value: string): Promise<void>;
|
|
@@ -69,6 +71,10 @@ export class SecretsExtImpl implements InternalSecretsExt {
|
|
|
69
71
|
delete(extensionId: string, key: string): Promise<void> {
|
|
70
72
|
return this.proxy.$deletePassword(extensionId, key);
|
|
71
73
|
}
|
|
74
|
+
|
|
75
|
+
keys(extensionId: string): Promise<string[]> {
|
|
76
|
+
return this.proxy.$getKeys(extensionId);
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
export class SecretStorageExt implements theia.SecretStorage {
|
|
@@ -101,4 +107,8 @@ export class SecretStorageExt implements theia.SecretStorage {
|
|
|
101
107
|
delete(key: string): Promise<void> {
|
|
102
108
|
return this.secretState.delete(this.id, key);
|
|
103
109
|
}
|
|
110
|
+
|
|
111
|
+
keys(): Promise<string[]> {
|
|
112
|
+
return this.secretState.keys(this.id) || [];
|
|
113
|
+
}
|
|
104
114
|
}
|