@theia/plugin-ext 1.68.0-next.8 → 1.68.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/arrays.js +5 -6
- package/lib/common/arrays.js.map +1 -1
- package/lib/common/assert.js +1 -2
- package/lib/common/assert.js.map +1 -1
- package/lib/common/cache.js +1 -1
- package/lib/common/cache.js.map +1 -1
- package/lib/common/collections.js +2 -3
- package/lib/common/collections.js.map +1 -1
- package/lib/common/disposable-util.js +1 -2
- package/lib/common/disposable-util.js.map +1 -1
- package/lib/common/editor-options.js +2 -2
- package/lib/common/editor-options.js.map +1 -1
- package/lib/common/errors.d.ts.map +1 -1
- package/lib/common/errors.js +4 -5
- package/lib/common/errors.js.map +1 -1
- package/lib/common/lm-protocol.d.ts.map +1 -1
- package/lib/common/objects.js +1 -2
- package/lib/common/objects.js.map +1 -1
- package/lib/common/paths-util.js +3 -4
- package/lib/common/paths-util.js.map +1 -1
- package/lib/common/plugin-api-rpc-model.d.ts +14 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js +9 -4
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +19 -3
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/plugin-protocol.d.ts +0 -1
- package/lib/common/plugin-protocol.d.ts.map +1 -1
- package/lib/common/plugin-protocol.js +3 -3
- package/lib/common/plugin-protocol.js.map +1 -1
- package/lib/common/rpc-protocol.js +3 -3
- package/lib/common/rpc-protocol.js.map +1 -1
- package/lib/common/semantic-tokens-dto.js +2 -3
- package/lib/common/semantic-tokens-dto.js.map +1 -1
- package/lib/common/types.js +8 -8
- package/lib/common/types.js.map +1 -1
- package/lib/common/uint.js +1 -2
- package/lib/common/uint.js.map +1 -1
- package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/browser/hosted-plugin.js +27 -28
- package/lib/hosted/browser/hosted-plugin.js.map +1 -1
- package/lib/hosted/browser/worker/debug-stub.js +1 -2
- package/lib/hosted/browser/worker/debug-stub.js.map +1 -1
- package/lib/hosted/browser/worker/plugin-manifest-loader.js +2 -4
- package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +1 -1
- package/lib/hosted/common/hosted-plugin.d.ts +0 -1
- package/lib/hosted/common/hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/common/hosted-plugin.js +6 -7
- package/lib/hosted/common/hosted-plugin.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +0 -1
- package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-cli-contribution.js +5 -4
- package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-localization-service.js +10 -15
- package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-process.js +1 -1
- package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
- package/lib/hosted/node/plugin-activation-events.js +1 -2
- package/lib/hosted/node/plugin-activation-events.js.map +1 -1
- package/lib/hosted/node/plugin-deployer-handler-impl.js +5 -8
- package/lib/hosted/node/plugin-deployer-handler-impl.js.map +1 -1
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js +2 -3
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -1
- package/lib/hosted/node/plugin-host-logger.js +1 -2
- package/lib/hosted/node/plugin-host-logger.js.map +1 -1
- package/lib/hosted/node/plugin-host-module.js +1 -2
- package/lib/hosted/node/plugin-host-module.js.map +1 -1
- package/lib/hosted/node/plugin-host-proxy.js +3 -4
- package/lib/hosted/node/plugin-host-proxy.js.map +1 -1
- package/lib/hosted/node/plugin-host.js +1 -1
- package/lib/hosted/node/plugin-host.js.map +1 -1
- package/lib/hosted/node/plugin-language-pack-service.js +2 -4
- package/lib/hosted/node/plugin-language-pack-service.js.map +1 -1
- package/lib/hosted/node/plugin-manifest-loader.js +2 -4
- package/lib/hosted/node/plugin-manifest-loader.js.map +1 -1
- package/lib/hosted/node/plugin-reader.d.ts +0 -1
- package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
- package/lib/hosted/node/plugin-require-override.js +1 -2
- package/lib/hosted/node/plugin-require-override.js.map +1 -1
- package/lib/hosted/node/plugin-service.js +3 -5
- package/lib/hosted/node/plugin-service.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.js +6 -12
- package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +1 -2
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js.map +1 -1
- package/lib/main/browser/authentication-main.js +6 -7
- package/lib/main/browser/authentication-main.js.map +1 -1
- package/lib/main/browser/commands.js +3 -3
- package/lib/main/browser/commands.js.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts +0 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts.map +1 -1
- package/lib/main/browser/comments/comment-thread-widget.js +14 -22
- package/lib/main/browser/comments/comment-thread-widget.js.map +1 -1
- package/lib/main/browser/comments/comments-contribution.js +1 -2
- package/lib/main/browser/comments/comments-contribution.js.map +1 -1
- package/lib/main/browser/comments/comments-main.js +2 -2
- package/lib/main/browser/comments/comments-main.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-opener.js +8 -9
- package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-service.js +3 -3
- package/lib/main/browser/custom-editors/custom-editor-service.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js +6 -7
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js +1 -2
- package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
- package/lib/main/browser/debug/debug-main.js +1 -2
- package/lib/main/browser/debug/debug-main.js.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +0 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
- package/lib/main/browser/decorations/decorations-main.js +2 -2
- package/lib/main/browser/decorations/decorations-main.js.map +1 -1
- package/lib/main/browser/dialogs-main.js +1 -2
- package/lib/main/browser/dialogs-main.js.map +1 -1
- package/lib/main/browser/documents-main.js +6 -7
- package/lib/main/browser/documents-main.js.map +1 -1
- package/lib/main/browser/editors-and-documents-main.js +3 -4
- package/lib/main/browser/editors-and-documents-main.js.map +1 -1
- package/lib/main/browser/env-main.js +2 -2
- package/lib/main/browser/env-main.js.map +1 -1
- package/lib/main/browser/file-system-main-impl.js +1 -1
- package/lib/main/browser/file-system-main-impl.js.map +1 -1
- package/lib/main/browser/hierarchy/hierarchy-types-converters.js +15 -15
- package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +1 -1
- package/lib/main/browser/languages-main.d.ts +2 -2
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +16 -11
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/localization-main.js +1 -2
- package/lib/main/browser/localization-main.js.map +1 -1
- package/lib/main/browser/main-context.js +1 -2
- package/lib/main/browser/main-context.js.map +1 -1
- package/lib/main/browser/main-file-system-event-service.js +2 -2
- package/lib/main/browser/main-file-system-event-service.js.map +1 -1
- package/lib/main/browser/menus/menus-contribution-handler.js +2 -3
- package/lib/main/browser/menus/menus-contribution-handler.js.map +1 -1
- package/lib/main/browser/menus/plugin-menu-command-adapter.js +2 -4
- package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +8 -9
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js +1 -2
- package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-editors-main.js +2 -3
- package/lib/main/browser/notebooks/notebook-editors-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-kernels-main.js +8 -11
- package/lib/main/browser/notebooks/notebook-kernels-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.js +5 -8
- package/lib/main/browser/notebooks/notebooks-main.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +0 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +7 -10
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +15 -23
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
- package/lib/main/browser/plugin-authentication-service.js +2 -2
- package/lib/main/browser/plugin-authentication-service.js.map +1 -1
- package/lib/main/browser/plugin-contribution-handler.js +6 -9
- package/lib/main/browser/plugin-contribution-handler.js.map +1 -1
- package/lib/main/browser/plugin-ext-widget.d.ts +0 -1
- package/lib/main/browser/plugin-ext-widget.d.ts.map +1 -1
- package/lib/main/browser/plugin-frontend-contribution.js +7 -6
- package/lib/main/browser/plugin-frontend-contribution.js.map +1 -1
- package/lib/main/browser/plugin-frontend-view-contribution.js +3 -2
- package/lib/main/browser/plugin-frontend-view-contribution.js.map +1 -1
- package/lib/main/browser/plugin-icon-theme-service.d.ts +0 -1
- package/lib/main/browser/plugin-icon-theme-service.d.ts.map +1 -1
- package/lib/main/browser/plugin-icon-theme-service.js +1 -2
- package/lib/main/browser/plugin-icon-theme-service.js.map +1 -1
- package/lib/main/browser/plugin-shared-style.js +2 -3
- package/lib/main/browser/plugin-shared-style.js.map +1 -1
- package/lib/main/browser/plugin-storage.js +1 -2
- package/lib/main/browser/plugin-storage.js.map +1 -1
- package/lib/main/browser/preference-registry-main.d.ts.map +1 -1
- package/lib/main/browser/preference-registry-main.js +5 -4
- package/lib/main/browser/preference-registry-main.js.map +1 -1
- package/lib/main/browser/quick-open-main.js +3 -5
- package/lib/main/browser/quick-open-main.js.map +1 -1
- package/lib/main/browser/scm-main.d.ts +8 -2
- package/lib/main/browser/scm-main.d.ts.map +1 -1
- package/lib/main/browser/scm-main.js +33 -1
- package/lib/main/browser/scm-main.js.map +1 -1
- package/lib/main/browser/tabs/tabs-main.js +8 -15
- package/lib/main/browser/tabs/tabs-main.js.map +1 -1
- package/lib/main/browser/tasks-main.js +1 -1
- package/lib/main/browser/tasks-main.js.map +1 -1
- package/lib/main/browser/terminal-main.js +4 -7
- package/lib/main/browser/terminal-main.js.map +1 -1
- package/lib/main/browser/test-main.js +5 -9
- package/lib/main/browser/test-main.js.map +1 -1
- package/lib/main/browser/text-editor-main.js +2 -4
- package/lib/main/browser/text-editor-main.js.map +1 -1
- package/lib/main/browser/text-editors-main.js +3 -3
- package/lib/main/browser/text-editors-main.js.map +1 -1
- package/lib/main/browser/uri-main.js +2 -4
- package/lib/main/browser/uri-main.js.map +1 -1
- package/lib/main/browser/view/dnd-file-content-store.js +3 -2
- package/lib/main/browser/view/dnd-file-content-store.js.map +1 -1
- package/lib/main/browser/view/plugin-view-registry.js +33 -38
- package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
- package/lib/main/browser/view/tree-view-decorator-service.js +2 -2
- package/lib/main/browser/view/tree-view-decorator-service.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +0 -1
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +11 -16
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/main/browser/view/tree-views-main.js +4 -7
- package/lib/main/browser/view/tree-views-main.js.map +1 -1
- package/lib/main/browser/webview/webview-environment.js +1 -1
- package/lib/main/browser/webview/webview-environment.js.map +1 -1
- package/lib/main/browser/webview/webview-resource-cache.js +1 -1
- package/lib/main/browser/webview/webview-resource-cache.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +4 -4
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.js +17 -12
- package/lib/main/browser/webview/webview.js.map +1 -1
- package/lib/main/browser/webviews-main.d.ts +2 -3
- package/lib/main/browser/webviews-main.d.ts.map +1 -1
- package/lib/main/browser/webviews-main.js +1 -2
- package/lib/main/browser/webviews-main.js.map +1 -1
- package/lib/main/browser/workspace-main.d.ts.map +1 -1
- package/lib/main/browser/workspace-main.js +10 -8
- package/lib/main/browser/workspace-main.js.map +1 -1
- package/lib/main/common/webview-preferences.js +3 -3
- package/lib/main/common/webview-preferences.js.map +1 -1
- package/lib/main/node/handlers/plugin-theia-directory-handler.js +2 -4
- package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +1 -1
- package/lib/main/node/plugin-cli-contribution.d.ts +0 -1
- package/lib/main/node/plugin-cli-contribution.d.ts.map +1 -1
- package/lib/main/node/plugin-cli-contribution.js +10 -9
- package/lib/main/node/plugin-cli-contribution.js.map +1 -1
- package/lib/main/node/plugin-deployer-impl.js +4 -6
- package/lib/main/node/plugin-deployer-impl.js.map +1 -1
- package/lib/main/node/plugin-ext-backend-module.js +1 -2
- package/lib/main/node/plugin-ext-backend-module.js.map +1 -1
- package/lib/main/node/plugin-github-resolver.js +4 -3
- package/lib/main/node/plugin-github-resolver.js.map +1 -1
- package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +0 -1
- package/lib/main/node/plugin-mgmt-cli-contribution.d.ts.map +1 -1
- package/lib/main/node/plugin-mgmt-cli-contribution.js +5 -4
- package/lib/main/node/plugin-mgmt-cli-contribution.js.map +1 -1
- package/lib/main/node/plugin-remote-copy-contribution.js +1 -2
- package/lib/main/node/plugin-remote-copy-contribution.js.map +1 -1
- package/lib/main/node/plugin-server-impl.js +1 -1
- package/lib/main/node/plugin-server-impl.js.map +1 -1
- package/lib/main/node/plugin-service.d.ts +0 -2
- package/lib/main/node/plugin-service.d.ts.map +1 -1
- package/lib/main/node/plugin-uninstallation-manager.js +3 -2
- package/lib/main/node/plugin-uninstallation-manager.js.map +1 -1
- package/lib/main/node/plugins-key-value-storage.js +4 -8
- package/lib/main/node/plugins-key-value-storage.js.map +1 -1
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +3 -2
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +1 -1
- package/lib/main/node/temp-dir-util.js +2 -3
- package/lib/main/node/temp-dir-util.js.map +1 -1
- package/lib/plugin/authentication-ext.js +1 -1
- package/lib/plugin/authentication-ext.js.map +1 -1
- package/lib/plugin/command-registry.js +1 -2
- package/lib/plugin/command-registry.js.map +1 -1
- package/lib/plugin/comments.js +2 -3
- package/lib/plugin/comments.js.map +1 -1
- package/lib/plugin/custom-editors.js +1 -1
- package/lib/plugin/custom-editors.js.map +1 -1
- package/lib/plugin/debug/debug-ext.js +8 -14
- package/lib/plugin/debug/debug-ext.js.map +1 -1
- package/lib/plugin/decorations.js +3 -3
- package/lib/plugin/decorations.js.map +1 -1
- package/lib/plugin/document-data.js +4 -4
- package/lib/plugin/document-data.js.map +1 -1
- package/lib/plugin/documents.js +3 -3
- package/lib/plugin/documents.js.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.js +2 -3
- package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
- package/lib/plugin/file-system-watcher.spec.js +6 -8
- package/lib/plugin/file-system-watcher.spec.js.map +1 -1
- package/lib/plugin/languages/call-hierarchy.js +1 -2
- package/lib/plugin/languages/call-hierarchy.js.map +1 -1
- package/lib/plugin/languages/code-action.js +1 -1
- package/lib/plugin/languages/code-action.js.map +1 -1
- package/lib/plugin/languages/completion.js +4 -6
- package/lib/plugin/languages/completion.js.map +1 -1
- package/lib/plugin/languages/diagnostics.js +5 -5
- package/lib/plugin/languages/diagnostics.js.map +1 -1
- package/lib/plugin/languages/hover.d.ts +9 -3
- package/lib/plugin/languages/hover.d.ts.map +1 -1
- package/lib/plugin/languages/hover.js +42 -13
- package/lib/plugin/languages/hover.js.map +1 -1
- package/lib/plugin/languages/inlay-hints.js +1 -2
- package/lib/plugin/languages/inlay-hints.js.map +1 -1
- package/lib/plugin/languages/inline-completion.js +2 -2
- package/lib/plugin/languages/inline-completion.js.map +1 -1
- package/lib/plugin/languages/lens.js +1 -1
- package/lib/plugin/languages/lens.js.map +1 -1
- package/lib/plugin/languages/signature.js +2 -4
- package/lib/plugin/languages/signature.js.map +1 -1
- package/lib/plugin/languages/type-hierarchy.js +1 -2
- package/lib/plugin/languages/type-hierarchy.js.map +1 -1
- package/lib/plugin/languages/util.js +2 -3
- package/lib/plugin/languages/util.js.map +1 -1
- package/lib/plugin/languages-utils.js +4 -5
- package/lib/plugin/languages-utils.js.map +1 -1
- package/lib/plugin/languages.d.ts +6 -3
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/languages.js +13 -12
- package/lib/plugin/languages.js.map +1 -1
- package/lib/plugin/localization-ext.js +6 -10
- package/lib/plugin/localization-ext.js.map +1 -1
- package/lib/plugin/logger.js +1 -2
- package/lib/plugin/logger.js.map +1 -1
- package/lib/plugin/markdown-string.js +15 -17
- package/lib/plugin/markdown-string.js.map +1 -1
- package/lib/plugin/notebook/notebook-document.js +5 -8
- package/lib/plugin/notebook/notebook-document.js.map +1 -1
- package/lib/plugin/notebook/notebook-editor.js +1 -1
- package/lib/plugin/notebook/notebook-editor.js.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.js +15 -21
- package/lib/plugin/notebook/notebook-kernels.js.map +1 -1
- package/lib/plugin/notebook/notebook-renderers.js +3 -4
- package/lib/plugin/notebook/notebook-renderers.js.map +1 -1
- package/lib/plugin/notebook/notebooks.js +14 -18
- package/lib/plugin/notebook/notebooks.js.map +1 -1
- package/lib/plugin/path.js +2 -3
- package/lib/plugin/path.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +20 -20
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-manager.js +1 -2
- package/lib/plugin/plugin-manager.js.map +1 -1
- package/lib/plugin/preference-registry.js +11 -15
- package/lib/plugin/preference-registry.js.map +1 -1
- package/lib/plugin/preference-registry.spec.js +2 -2
- package/lib/plugin/preference-registry.spec.js.map +1 -1
- package/lib/plugin/prefix-sum-computer.js +2 -2
- package/lib/plugin/prefix-sum-computer.js.map +1 -1
- package/lib/plugin/quick-open.d.ts +3 -3
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/quick-open.js +23 -29
- package/lib/plugin/quick-open.js.map +1 -1
- package/lib/plugin/scm.d.ts.map +1 -1
- package/lib/plugin/scm.js +35 -10
- package/lib/plugin/scm.js.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.js +13 -12
- package/lib/plugin/status-bar/status-bar-item.js.map +1 -1
- package/lib/plugin/status-bar-message-registry.js +1 -2
- package/lib/plugin/status-bar-message-registry.js.map +1 -1
- package/lib/plugin/tabs.js +3 -6
- package/lib/plugin/tabs.js.map +1 -1
- package/lib/plugin/tasks/task-provider.js +1 -1
- package/lib/plugin/tasks/task-provider.js.map +1 -1
- package/lib/plugin/tasks/tasks.js +1 -2
- package/lib/plugin/tasks/tasks.js.map +1 -1
- package/lib/plugin/telemetry-ext.js +6 -9
- package/lib/plugin/telemetry-ext.js.map +1 -1
- package/lib/plugin/terminal-ext.js +11 -12
- package/lib/plugin/terminal-ext.js.map +1 -1
- package/lib/plugin/test-item.js +1 -2
- package/lib/plugin/test-item.js.map +1 -1
- package/lib/plugin/tests.js +9 -15
- package/lib/plugin/tests.js.map +1 -1
- package/lib/plugin/text-editors.js +2 -2
- package/lib/plugin/text-editors.js.map +1 -1
- package/lib/plugin/timeline.js +8 -10
- package/lib/plugin/timeline.js.map +1 -1
- package/lib/plugin/tree/tree-views.js +19 -28
- package/lib/plugin/tree/tree-views.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +1 -1
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +109 -115
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +11 -2
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +70 -51
- package/lib/plugin/types-impl.js.map +1 -1
- package/lib/plugin/webview-views.js +1 -1
- package/lib/plugin/webview-views.js.map +1 -1
- package/lib/plugin/webviews.d.ts +2 -8
- package/lib/plugin/webviews.d.ts.map +1 -1
- package/lib/plugin/webviews.js +9 -7
- package/lib/plugin/webviews.js.map +1 -1
- package/lib/plugin/word-helper.js +3 -3
- package/lib/plugin/word-helper.js.map +1 -1
- package/lib/plugin/workspace.d.ts +2 -0
- package/lib/plugin/workspace.d.ts.map +1 -1
- package/lib/plugin/workspace.js +12 -4
- package/lib/plugin/workspace.js.map +1 -1
- package/lib/plugin/workspace.spec.d.ts +2 -0
- package/lib/plugin/workspace.spec.d.ts.map +1 -0
- package/lib/plugin/workspace.spec.js +127 -0
- package/lib/plugin/workspace.spec.js.map +1 -0
- package/package.json +30 -30
- package/src/common/plugin-api-rpc-model.ts +18 -0
- package/src/common/plugin-api-rpc.ts +21 -3
- package/src/main/browser/languages-main.ts +12 -4
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +1 -1
- package/src/main/browser/preference-registry-main.ts +2 -1
- package/src/main/browser/scm-main.ts +46 -2
- package/src/main/browser/webview/webview-resource-cache.ts +1 -1
- package/src/main/browser/webview/webview.ts +10 -7
- package/src/main/browser/webviews-main.ts +2 -2
- package/src/main/browser/workspace-main.ts +7 -0
- package/src/plugin/languages/hover.ts +53 -15
- package/src/plugin/languages.ts +10 -4
- package/src/plugin/plugin-context.ts +7 -0
- package/src/plugin/quick-open.ts +11 -10
- package/src/plugin/scm.ts +37 -1
- package/src/plugin/status-bar/status-bar-item.ts +4 -1
- package/src/plugin/type-converters.ts +10 -5
- package/src/plugin/types-impl.ts +23 -0
- package/src/plugin/webviews.ts +9 -5
- package/src/plugin/workspace.spec.ts +154 -0
- package/src/plugin/workspace.ts +12 -2
|
@@ -15,9 +15,85 @@
|
|
|
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.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
18
|
+
exports.TestItem = exports.TestMessageStackFrame = exports.TestMessage = exports.NotebookKernelSourceAction = exports.NotebookRange = exports.NotebookCellExecutionSummary = exports.NotebookCellOutputConverter = exports.NotebookCellOutputItem = exports.NotebookCellOutput = exports.NotebookCellKind = exports.NotebookCellData = exports.NotebookData = exports.NotebookStatusBarItem = exports.NotebookDocumentContentOptions = exports.DataTransfer = exports.DataTransferItem = exports.InlayHintKind = exports.ViewColumn = exports.ThemableDecorationAttachmentRenderOptions = exports.ThemableDecorationRenderOptions = exports.DecorationRangeBehavior = exports.DecorationRenderOptions = exports.SymbolKind = exports.SignatureHelp = exports.SignatureInformation = exports.ParameterInformation = exports.DocumentLink = void 0;
|
|
19
|
+
exports.toViewColumn = toViewColumn;
|
|
20
|
+
exports.fromViewColumn = fromViewColumn;
|
|
21
|
+
exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
|
|
22
|
+
exports.toSelection = toSelection;
|
|
23
|
+
exports.fromSelection = fromSelection;
|
|
24
|
+
exports.toRange = toRange;
|
|
25
|
+
exports.fromRange = fromRange;
|
|
26
|
+
exports.fromPosition = fromPosition;
|
|
27
|
+
exports.toPosition = toPosition;
|
|
28
|
+
exports.isDecorationOptionsArr = isDecorationOptionsArr;
|
|
29
|
+
exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
|
|
30
|
+
exports.fromManyMarkdown = fromManyMarkdown;
|
|
31
|
+
exports.fromMarkdown = fromMarkdown;
|
|
32
|
+
exports.fromMarkdownOrString = fromMarkdownOrString;
|
|
33
|
+
exports.toMarkdown = toMarkdown;
|
|
34
|
+
exports.fromDocumentSelector = fromDocumentSelector;
|
|
35
|
+
exports.fromGlobPattern = fromGlobPattern;
|
|
36
|
+
exports.fromCompletionItemKind = fromCompletionItemKind;
|
|
37
|
+
exports.toCompletionItemKind = toCompletionItemKind;
|
|
38
|
+
exports.fromTextEdit = fromTextEdit;
|
|
39
|
+
exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
|
|
40
|
+
exports.convertCode = convertCode;
|
|
41
|
+
exports.fromHover = fromHover;
|
|
42
|
+
exports.fromEvaluatableExpression = fromEvaluatableExpression;
|
|
43
|
+
exports.fromInlineValue = fromInlineValue;
|
|
44
|
+
exports.toInlineValueContext = toInlineValueContext;
|
|
45
|
+
exports.fromLocation = fromLocation;
|
|
46
|
+
exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
|
|
47
|
+
exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
|
|
48
|
+
exports.fromDefinitionLink = fromDefinitionLink;
|
|
49
|
+
exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
|
|
50
|
+
exports.fromDocumentHighlight = fromDocumentHighlight;
|
|
51
|
+
exports.fromWorkspaceEdit = fromWorkspaceEdit;
|
|
52
|
+
exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
|
|
53
|
+
exports.fromDocumentSymbol = fromDocumentSymbol;
|
|
54
|
+
exports.toDocumentSymbol = toDocumentSymbol;
|
|
55
|
+
exports.fromSymbolTag = fromSymbolTag;
|
|
56
|
+
exports.toSymbolTag = toSymbolTag;
|
|
57
|
+
exports.toMergedSymbol = toMergedSymbol;
|
|
58
|
+
exports.isModelLocation = isModelLocation;
|
|
59
|
+
exports.isModelRange = isModelRange;
|
|
60
|
+
exports.isUriComponents = isUriComponents;
|
|
61
|
+
exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
|
|
62
|
+
exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
|
|
63
|
+
exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
|
|
64
|
+
exports.toLocation = toLocation;
|
|
65
|
+
exports.fromHierarchyItem = fromHierarchyItem;
|
|
66
|
+
exports.fromCallHierarchyItem = fromCallHierarchyItem;
|
|
67
|
+
exports.toCallHierarchyItem = toCallHierarchyItem;
|
|
68
|
+
exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
|
|
69
|
+
exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
|
|
70
|
+
exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
|
|
71
|
+
exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
|
|
72
|
+
exports.toTypeHierarchyItem = toTypeHierarchyItem;
|
|
73
|
+
exports.toWorkspaceFolder = toWorkspaceFolder;
|
|
74
|
+
exports.fromTask = fromTask;
|
|
75
|
+
exports.toTask = toTask;
|
|
76
|
+
exports.fromProcessExecution = fromProcessExecution;
|
|
77
|
+
exports.fromShellExecution = fromShellExecution;
|
|
78
|
+
exports.fromCustomExecution = fromCustomExecution;
|
|
79
|
+
exports.getProcessExecution = getProcessExecution;
|
|
80
|
+
exports.getShellExecution = getShellExecution;
|
|
81
|
+
exports.getCustomExecution = getCustomExecution;
|
|
82
|
+
exports.getShellArgs = getShellArgs;
|
|
83
|
+
exports.getShellExecutionOptions = getShellExecutionOptions;
|
|
84
|
+
exports.fromSymbolInformation = fromSymbolInformation;
|
|
85
|
+
exports.toSymbolInformation = toSymbolInformation;
|
|
86
|
+
exports.fromSelectionRange = fromSelectionRange;
|
|
87
|
+
exports.fromFoldingRange = fromFoldingRange;
|
|
88
|
+
exports.fromFoldingRangeKind = fromFoldingRangeKind;
|
|
89
|
+
exports.fromColor = fromColor;
|
|
90
|
+
exports.toColor = toColor;
|
|
91
|
+
exports.fromColorPresentation = fromColorPresentation;
|
|
92
|
+
exports.convertIconPath = convertIconPath;
|
|
93
|
+
exports.convertQuickInputButton = convertQuickInputButton;
|
|
94
|
+
exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
|
|
95
|
+
exports.pathOrURIToURI = pathOrURIToURI;
|
|
96
|
+
exports.pluginToPluginInfo = pluginToPluginInfo;
|
|
21
97
|
const lstypes = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
22
98
|
const types_impl_1 = require("./types-impl");
|
|
23
99
|
const rpc = require("../common/plugin-api-rpc");
|
|
@@ -67,7 +143,6 @@ function toViewColumn(ep) {
|
|
|
67
143
|
}
|
|
68
144
|
return undefined;
|
|
69
145
|
}
|
|
70
|
-
exports.toViewColumn = toViewColumn;
|
|
71
146
|
function fromViewColumn(column) {
|
|
72
147
|
if (typeof column === 'number' && column >= types.ViewColumn.One) {
|
|
73
148
|
return column - 1;
|
|
@@ -77,7 +152,6 @@ function fromViewColumn(column) {
|
|
|
77
152
|
}
|
|
78
153
|
return ACTIVE_GROUP;
|
|
79
154
|
}
|
|
80
|
-
exports.fromViewColumn = fromViewColumn;
|
|
81
155
|
function toWebviewPanelShowOptions(options) {
|
|
82
156
|
if (typeof options === 'object') {
|
|
83
157
|
const showOptions = options;
|
|
@@ -93,14 +167,12 @@ function toWebviewPanelShowOptions(options) {
|
|
|
93
167
|
preserveFocus: false
|
|
94
168
|
};
|
|
95
169
|
}
|
|
96
|
-
exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
|
|
97
170
|
function toSelection(selection) {
|
|
98
171
|
const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
|
|
99
172
|
const start = new types.Position(selectionStartLineNumber - 1, selectionStartColumn - 1);
|
|
100
173
|
const end = new types.Position(positionLineNumber - 1, positionColumn - 1);
|
|
101
174
|
return new types.Selection(start, end);
|
|
102
175
|
}
|
|
103
|
-
exports.toSelection = toSelection;
|
|
104
176
|
function fromSelection(selection) {
|
|
105
177
|
const { active, anchor } = selection;
|
|
106
178
|
return {
|
|
@@ -110,12 +182,10 @@ function fromSelection(selection) {
|
|
|
110
182
|
positionColumn: active.character + 1
|
|
111
183
|
};
|
|
112
184
|
}
|
|
113
|
-
exports.fromSelection = fromSelection;
|
|
114
185
|
function toRange(range) {
|
|
115
186
|
const { startLineNumber, startColumn, endLineNumber, endColumn } = range;
|
|
116
187
|
return new types.Range(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
|
|
117
188
|
}
|
|
118
|
-
exports.toRange = toRange;
|
|
119
189
|
function fromRange(range) {
|
|
120
190
|
if (!range) {
|
|
121
191
|
return undefined;
|
|
@@ -128,21 +198,18 @@ function fromRange(range) {
|
|
|
128
198
|
endColumn: end.character + 1
|
|
129
199
|
};
|
|
130
200
|
}
|
|
131
|
-
exports.fromRange = fromRange;
|
|
132
201
|
function fromPosition(position) {
|
|
133
202
|
if (!position) {
|
|
134
203
|
return undefined;
|
|
135
204
|
}
|
|
136
205
|
return { lineNumber: position.line + 1, column: position.character + 1 };
|
|
137
206
|
}
|
|
138
|
-
exports.fromPosition = fromPosition;
|
|
139
207
|
function toPosition(position) {
|
|
140
208
|
if (!position) {
|
|
141
209
|
return undefined;
|
|
142
210
|
}
|
|
143
211
|
return new types.Position(position.lineNumber - 1, position.column - 1);
|
|
144
212
|
}
|
|
145
|
-
exports.toPosition = toPosition;
|
|
146
213
|
function isDecorationOptions(arg) {
|
|
147
214
|
return (0, common_1.isObject)(arg) && typeof arg.range !== 'undefined';
|
|
148
215
|
}
|
|
@@ -152,7 +219,6 @@ function isDecorationOptionsArr(something) {
|
|
|
152
219
|
}
|
|
153
220
|
return isDecorationOptions(something[0]) ? true : false;
|
|
154
221
|
}
|
|
155
|
-
exports.isDecorationOptionsArr = isDecorationOptionsArr;
|
|
156
222
|
function fromRangeOrRangeWithMessage(ranges) {
|
|
157
223
|
if (isDecorationOptionsArr(ranges)) {
|
|
158
224
|
return ranges.map(r => {
|
|
@@ -178,11 +244,9 @@ function fromRangeOrRangeWithMessage(ranges) {
|
|
|
178
244
|
return ranges.map(r => ({ range: fromRange(r) }));
|
|
179
245
|
}
|
|
180
246
|
}
|
|
181
|
-
exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
|
|
182
247
|
function fromManyMarkdown(markup) {
|
|
183
248
|
return markup.map(fromMarkdown);
|
|
184
249
|
}
|
|
185
|
-
exports.fromManyMarkdown = fromManyMarkdown;
|
|
186
250
|
function isCodeblock(arg) {
|
|
187
251
|
return (0, common_1.isObject)(arg)
|
|
188
252
|
&& typeof arg.language === 'string'
|
|
@@ -206,7 +270,6 @@ function fromMarkdown(markup) {
|
|
|
206
270
|
return { value: '' };
|
|
207
271
|
}
|
|
208
272
|
}
|
|
209
|
-
exports.fromMarkdown = fromMarkdown;
|
|
210
273
|
function fromMarkdownOrString(value) {
|
|
211
274
|
if (value === undefined) {
|
|
212
275
|
return undefined;
|
|
@@ -218,7 +281,6 @@ function fromMarkdownOrString(value) {
|
|
|
218
281
|
return fromMarkdown(value);
|
|
219
282
|
}
|
|
220
283
|
}
|
|
221
|
-
exports.fromMarkdownOrString = fromMarkdownOrString;
|
|
222
284
|
function toMarkdown(value) {
|
|
223
285
|
const implemented = new markdown_string_1.MarkdownString(value.value, value.supportThemeIcons);
|
|
224
286
|
implemented.isTrusted = value.isTrusted;
|
|
@@ -226,7 +288,6 @@ function toMarkdown(value) {
|
|
|
226
288
|
implemented.baseUri = value.baseUri && types_impl_1.URI.revive(implemented.baseUri);
|
|
227
289
|
return implemented;
|
|
228
290
|
}
|
|
229
|
-
exports.toMarkdown = toMarkdown;
|
|
230
291
|
function fromDocumentSelector(selector) {
|
|
231
292
|
if (!selector) {
|
|
232
293
|
return undefined;
|
|
@@ -245,7 +306,6 @@ function fromDocumentSelector(selector) {
|
|
|
245
306
|
};
|
|
246
307
|
}
|
|
247
308
|
}
|
|
248
|
-
exports.fromDocumentSelector = fromDocumentSelector;
|
|
249
309
|
function fromGlobPattern(pattern) {
|
|
250
310
|
if (typeof pattern === 'string') {
|
|
251
311
|
return pattern;
|
|
@@ -255,7 +315,6 @@ function fromGlobPattern(pattern) {
|
|
|
255
315
|
}
|
|
256
316
|
return pattern;
|
|
257
317
|
}
|
|
258
|
-
exports.fromGlobPattern = fromGlobPattern;
|
|
259
318
|
function isRelativePattern(obj) {
|
|
260
319
|
const rp = obj;
|
|
261
320
|
return rp && typeof rp.baseUri === 'string' && typeof rp.pattern === 'string';
|
|
@@ -292,7 +351,6 @@ function fromCompletionItemKind(kind) {
|
|
|
292
351
|
}
|
|
293
352
|
return model.CompletionItemKind.Property;
|
|
294
353
|
}
|
|
295
|
-
exports.fromCompletionItemKind = fromCompletionItemKind;
|
|
296
354
|
function toCompletionItemKind(kind) {
|
|
297
355
|
switch (kind) {
|
|
298
356
|
case model.CompletionItemKind.Method: return types.CompletionItemKind.Method;
|
|
@@ -325,14 +383,12 @@ function toCompletionItemKind(kind) {
|
|
|
325
383
|
}
|
|
326
384
|
return types.CompletionItemKind.Property;
|
|
327
385
|
}
|
|
328
|
-
exports.toCompletionItemKind = toCompletionItemKind;
|
|
329
386
|
function fromTextEdit(edit) {
|
|
330
387
|
return {
|
|
331
388
|
text: edit.newText,
|
|
332
389
|
range: fromRange(edit.range)
|
|
333
390
|
};
|
|
334
391
|
}
|
|
335
|
-
exports.fromTextEdit = fromTextEdit;
|
|
336
392
|
function fromSnippetTextEdit(edit) {
|
|
337
393
|
return {
|
|
338
394
|
text: edit.snippet.value,
|
|
@@ -352,10 +408,10 @@ function convertDiagnosticToMarkerData(diagnostic) {
|
|
|
352
408
|
endLineNumber: diagnostic.range.end.line + 1,
|
|
353
409
|
endColumn: diagnostic.range.end.character + 1,
|
|
354
410
|
relatedInformation: convertRelatedInformation(diagnostic.relatedInformation),
|
|
355
|
-
tags: convertTags(diagnostic.tags)
|
|
411
|
+
tags: convertTags(diagnostic.tags),
|
|
412
|
+
data: diagnostic.data,
|
|
356
413
|
};
|
|
357
414
|
}
|
|
358
|
-
exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
|
|
359
415
|
function convertCode(code) {
|
|
360
416
|
if (typeof code === 'number') {
|
|
361
417
|
return String(code);
|
|
@@ -368,7 +424,6 @@ function convertCode(code) {
|
|
|
368
424
|
}
|
|
369
425
|
;
|
|
370
426
|
}
|
|
371
|
-
exports.convertCode = convertCode;
|
|
372
427
|
function convertSeverity(severity) {
|
|
373
428
|
switch (severity) {
|
|
374
429
|
case types.DiagnosticSeverity.Error: return types.MarkerSeverity.Error;
|
|
@@ -412,19 +467,20 @@ function convertTags(tags) {
|
|
|
412
467
|
return markerTags;
|
|
413
468
|
}
|
|
414
469
|
function fromHover(hover) {
|
|
415
|
-
|
|
470
|
+
const modelHover = {
|
|
416
471
|
range: fromRange(hover.range),
|
|
417
|
-
contents: fromManyMarkdown(hover.contents)
|
|
472
|
+
contents: fromManyMarkdown(hover.contents),
|
|
473
|
+
canIncreaseVerbosity: hover.canIncreaseVerbosity,
|
|
474
|
+
canDecreaseVerbosity: hover.canDecreaseVerbosity,
|
|
418
475
|
};
|
|
476
|
+
return modelHover;
|
|
419
477
|
}
|
|
420
|
-
exports.fromHover = fromHover;
|
|
421
478
|
function fromEvaluatableExpression(evaluatableExpression) {
|
|
422
479
|
return {
|
|
423
480
|
range: fromRange(evaluatableExpression.range),
|
|
424
481
|
expression: evaluatableExpression.expression
|
|
425
482
|
};
|
|
426
483
|
}
|
|
427
|
-
exports.fromEvaluatableExpression = fromEvaluatableExpression;
|
|
428
484
|
function fromInlineValue(inlineValue) {
|
|
429
485
|
if (inlineValue instanceof types_impl_1.InlineValueText) {
|
|
430
486
|
return {
|
|
@@ -452,7 +508,6 @@ function fromInlineValue(inlineValue) {
|
|
|
452
508
|
throw new Error('Unknown InlineValue type');
|
|
453
509
|
}
|
|
454
510
|
}
|
|
455
|
-
exports.fromInlineValue = fromInlineValue;
|
|
456
511
|
function toInlineValueContext(inlineValueContext) {
|
|
457
512
|
const ivLocation = inlineValueContext.stoppedLocation;
|
|
458
513
|
return {
|
|
@@ -460,7 +515,6 @@ function toInlineValueContext(inlineValueContext) {
|
|
|
460
515
|
stoppedLocation: new types.Range(ivLocation.startLineNumber, ivLocation.startColumn, ivLocation.endLineNumber, ivLocation.endColumn)
|
|
461
516
|
};
|
|
462
517
|
}
|
|
463
|
-
exports.toInlineValueContext = toInlineValueContext;
|
|
464
518
|
function fromLocation(location) {
|
|
465
519
|
if (!location) {
|
|
466
520
|
return undefined;
|
|
@@ -470,7 +524,6 @@ function fromLocation(location) {
|
|
|
470
524
|
range: fromRange(location.range)
|
|
471
525
|
};
|
|
472
526
|
}
|
|
473
|
-
exports.fromLocation = fromLocation;
|
|
474
527
|
function fromLocationToLanguageServerLocation(location) {
|
|
475
528
|
if (!location) {
|
|
476
529
|
return undefined;
|
|
@@ -480,7 +533,6 @@ function fromLocationToLanguageServerLocation(location) {
|
|
|
480
533
|
range: location.range
|
|
481
534
|
};
|
|
482
535
|
}
|
|
483
|
-
exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
|
|
484
536
|
function fromTextDocumentShowOptions(options) {
|
|
485
537
|
if (options.selection) {
|
|
486
538
|
return {
|
|
@@ -490,7 +542,6 @@ function fromTextDocumentShowOptions(options) {
|
|
|
490
542
|
}
|
|
491
543
|
return options;
|
|
492
544
|
}
|
|
493
|
-
exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
|
|
494
545
|
function fromDefinitionLink(definitionLink) {
|
|
495
546
|
return {
|
|
496
547
|
uri: definitionLink.targetUri,
|
|
@@ -499,7 +550,6 @@ function fromDefinitionLink(definitionLink) {
|
|
|
499
550
|
targetSelectionRange: definitionLink.targetSelectionRange ? fromRange(definitionLink.targetSelectionRange) : undefined
|
|
500
551
|
};
|
|
501
552
|
}
|
|
502
|
-
exports.fromDefinitionLink = fromDefinitionLink;
|
|
503
553
|
var DocumentLink;
|
|
504
554
|
(function (DocumentLink) {
|
|
505
555
|
function from(link) {
|
|
@@ -532,14 +582,12 @@ function fromDocumentHighlightKind(kind) {
|
|
|
532
582
|
}
|
|
533
583
|
return model.DocumentHighlightKind.Text;
|
|
534
584
|
}
|
|
535
|
-
exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
|
|
536
585
|
function fromDocumentHighlight(documentHighlight) {
|
|
537
586
|
return {
|
|
538
587
|
range: fromRange(documentHighlight.range),
|
|
539
588
|
kind: fromDocumentHighlightKind(documentHighlight.kind)
|
|
540
589
|
};
|
|
541
590
|
}
|
|
542
|
-
exports.fromDocumentHighlight = fromDocumentHighlight;
|
|
543
591
|
var ParameterInformation;
|
|
544
592
|
(function (ParameterInformation) {
|
|
545
593
|
function from(info) {
|
|
@@ -604,27 +652,27 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
604
652
|
edits: []
|
|
605
653
|
};
|
|
606
654
|
for (const entry of value._allEntries()) {
|
|
607
|
-
if (
|
|
655
|
+
if (entry?._type === 2 /* types.FileEditType.Text */) {
|
|
608
656
|
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
609
657
|
const workspaceTextEditDto = {
|
|
610
658
|
resource: entry.uri,
|
|
611
|
-
modelVersionId: doc
|
|
659
|
+
modelVersionId: doc?.version,
|
|
612
660
|
textEdit: fromTextEdit(entry.edit),
|
|
613
661
|
metadata: entry.metadata
|
|
614
662
|
};
|
|
615
663
|
result.edits.push(workspaceTextEditDto);
|
|
616
664
|
}
|
|
617
|
-
else if (
|
|
665
|
+
else if (entry?._type === 6 /* types.FileEditType.Snippet */) {
|
|
618
666
|
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
619
667
|
const workspaceTextEditDto = {
|
|
620
668
|
resource: entry.uri,
|
|
621
|
-
modelVersionId: doc
|
|
669
|
+
modelVersionId: doc?.version,
|
|
622
670
|
textEdit: fromSnippetTextEdit(entry.edit),
|
|
623
671
|
metadata: entry.metadata
|
|
624
672
|
};
|
|
625
673
|
result.edits.push(workspaceTextEditDto);
|
|
626
674
|
}
|
|
627
|
-
else if (
|
|
675
|
+
else if (entry?._type === 1 /* types.FileEditType.File */) {
|
|
628
676
|
const workspaceFileEditDto = {
|
|
629
677
|
oldResource: entry.from,
|
|
630
678
|
newResource: entry.to,
|
|
@@ -633,7 +681,7 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
633
681
|
};
|
|
634
682
|
result.edits.push(workspaceFileEditDto);
|
|
635
683
|
}
|
|
636
|
-
else if (
|
|
684
|
+
else if (entry?._type === 3 /* types.FileEditType.Cell */) {
|
|
637
685
|
if (entry.edit) {
|
|
638
686
|
result.edits.push({
|
|
639
687
|
metadata: entry.metadata,
|
|
@@ -642,7 +690,7 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
642
690
|
});
|
|
643
691
|
}
|
|
644
692
|
}
|
|
645
|
-
else if (
|
|
693
|
+
else if (entry?._type === 5 /* types.FileEditType.CellReplace */) {
|
|
646
694
|
result.edits.push({
|
|
647
695
|
metadata: entry.metadata,
|
|
648
696
|
resource: entry.uri,
|
|
@@ -657,7 +705,6 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
657
705
|
}
|
|
658
706
|
return result;
|
|
659
707
|
}
|
|
660
|
-
exports.fromWorkspaceEdit = fromWorkspaceEdit;
|
|
661
708
|
var SymbolKind;
|
|
662
709
|
(function (SymbolKind) {
|
|
663
710
|
const fromMapping = Object.create(null);
|
|
@@ -727,7 +774,6 @@ function toCodeActionTriggerKind(triggerKind) {
|
|
|
727
774
|
return types.CodeActionTriggerKind.Automatic;
|
|
728
775
|
}
|
|
729
776
|
}
|
|
730
|
-
exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
|
|
731
777
|
function fromDocumentSymbol(info) {
|
|
732
778
|
const result = {
|
|
733
779
|
name: info.name,
|
|
@@ -742,7 +788,6 @@ function fromDocumentSymbol(info) {
|
|
|
742
788
|
}
|
|
743
789
|
return result;
|
|
744
790
|
}
|
|
745
|
-
exports.fromDocumentSymbol = fromDocumentSymbol;
|
|
746
791
|
function toDocumentSymbol(symbol) {
|
|
747
792
|
return {
|
|
748
793
|
name: symbol.name,
|
|
@@ -754,46 +799,40 @@ function toDocumentSymbol(symbol) {
|
|
|
754
799
|
kind: SymbolKind.toSymbolKind(symbol.kind)
|
|
755
800
|
};
|
|
756
801
|
}
|
|
757
|
-
exports.toDocumentSymbol = toDocumentSymbol;
|
|
758
802
|
function fromSymbolTag(kind) {
|
|
759
803
|
switch (kind) {
|
|
760
804
|
case types.SymbolTag.Deprecated: return model.SymbolTag.Deprecated;
|
|
761
805
|
}
|
|
762
806
|
}
|
|
763
|
-
exports.fromSymbolTag = fromSymbolTag;
|
|
764
807
|
function toSymbolTag(kind) {
|
|
765
808
|
switch (kind) {
|
|
766
809
|
case model.SymbolTag.Deprecated: return types.SymbolTag.Deprecated;
|
|
767
810
|
}
|
|
768
811
|
}
|
|
769
|
-
exports.toSymbolTag = toSymbolTag;
|
|
770
812
|
/**
|
|
771
813
|
* Creates a merged symbol of type theia.SymbolInformation & theia.DocumentSymbol.
|
|
772
814
|
* Is only used as the result type of the `vscode.executeDocumentSymbolProvider` command.
|
|
773
815
|
*/
|
|
774
816
|
function toMergedSymbol(uri, symbol) {
|
|
775
|
-
var _a, _b, _c;
|
|
776
817
|
const uriValue = types_impl_1.URI.revive(uri);
|
|
777
818
|
const location = new types.Location(uriValue, toRange(symbol.range));
|
|
778
819
|
return {
|
|
779
820
|
name: symbol.name,
|
|
780
|
-
containerName:
|
|
821
|
+
containerName: symbol.containerName ?? '',
|
|
781
822
|
kind: SymbolKind.toSymbolKind(symbol.kind),
|
|
782
823
|
tags: [],
|
|
783
824
|
location,
|
|
784
825
|
detail: symbol.detail,
|
|
785
826
|
range: location.range,
|
|
786
827
|
selectionRange: toRange(symbol.selectionRange),
|
|
787
|
-
children:
|
|
828
|
+
children: symbol.children?.map(child => toMergedSymbol(uri, child)) ?? []
|
|
788
829
|
};
|
|
789
830
|
}
|
|
790
|
-
exports.toMergedSymbol = toMergedSymbol;
|
|
791
831
|
function isModelLocation(arg) {
|
|
792
832
|
return (0, common_1.isObject)(arg) &&
|
|
793
833
|
isModelRange(arg.range) &&
|
|
794
834
|
isUriComponents(arg.uri);
|
|
795
835
|
}
|
|
796
|
-
exports.isModelLocation = isModelLocation;
|
|
797
836
|
function isModelRange(arg) {
|
|
798
837
|
return (0, common_1.isObject)(arg) &&
|
|
799
838
|
typeof arg.startLineNumber === 'number' &&
|
|
@@ -801,7 +840,6 @@ function isModelRange(arg) {
|
|
|
801
840
|
typeof arg.endLineNumber === 'number' &&
|
|
802
841
|
typeof arg.endColumn === 'number';
|
|
803
842
|
}
|
|
804
|
-
exports.isModelRange = isModelRange;
|
|
805
843
|
function isUriComponents(arg) {
|
|
806
844
|
return (0, common_1.isObject)(arg) &&
|
|
807
845
|
typeof arg.scheme === 'string' &&
|
|
@@ -809,7 +847,6 @@ function isUriComponents(arg) {
|
|
|
809
847
|
typeof arg.query === 'string' &&
|
|
810
848
|
typeof arg.fragment === 'string'));
|
|
811
849
|
}
|
|
812
|
-
exports.isUriComponents = isUriComponents;
|
|
813
850
|
function isModelCallHierarchyItem(arg) {
|
|
814
851
|
return (0, common_1.isObject)(arg)
|
|
815
852
|
&& isModelRange(arg.range)
|
|
@@ -817,25 +854,21 @@ function isModelCallHierarchyItem(arg) {
|
|
|
817
854
|
&& isUriComponents(arg.uri)
|
|
818
855
|
&& !!arg.name;
|
|
819
856
|
}
|
|
820
|
-
exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
|
|
821
857
|
function isModelCallHierarchyIncomingCall(arg) {
|
|
822
858
|
return (0, common_1.isObject)(arg) &&
|
|
823
859
|
'from' in arg &&
|
|
824
860
|
'fromRanges' in arg &&
|
|
825
861
|
isModelCallHierarchyItem(arg.from);
|
|
826
862
|
}
|
|
827
|
-
exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
|
|
828
863
|
function isModelCallHierarchyOutgoingCall(arg) {
|
|
829
864
|
return (0, common_1.isObject)(arg) &&
|
|
830
865
|
'to' in arg &&
|
|
831
866
|
'fromRanges' in arg &&
|
|
832
867
|
isModelCallHierarchyItem(arg.to);
|
|
833
868
|
}
|
|
834
|
-
exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
|
|
835
869
|
function toLocation(value) {
|
|
836
870
|
return new types.Location(types_impl_1.URI.revive(value.uri), toRange(value.range));
|
|
837
871
|
}
|
|
838
|
-
exports.toLocation = toLocation;
|
|
839
872
|
function fromHierarchyItem(item) {
|
|
840
873
|
return {
|
|
841
874
|
kind: SymbolKind.fromSymbolKind(item.kind),
|
|
@@ -849,11 +882,9 @@ function fromHierarchyItem(item) {
|
|
|
849
882
|
_sessionId: item._sessionId,
|
|
850
883
|
};
|
|
851
884
|
}
|
|
852
|
-
exports.fromHierarchyItem = fromHierarchyItem;
|
|
853
885
|
function fromCallHierarchyItem(item) {
|
|
854
886
|
return fromHierarchyItem(item);
|
|
855
887
|
}
|
|
856
|
-
exports.fromCallHierarchyItem = fromCallHierarchyItem;
|
|
857
888
|
function toCallHierarchyItem(value) {
|
|
858
889
|
const item = new types.CallHierarchyItem(SymbolKind.toSymbolKind(value.kind), value.name, value.detail ? value.detail : '', types_impl_1.URI.revive(value.uri), toRange(value.range), toRange(value.selectionRange));
|
|
859
890
|
item.tags = value.tags;
|
|
@@ -861,15 +892,12 @@ function toCallHierarchyItem(value) {
|
|
|
861
892
|
item._sessionId = value._sessionId;
|
|
862
893
|
return item;
|
|
863
894
|
}
|
|
864
|
-
exports.toCallHierarchyItem = toCallHierarchyItem;
|
|
865
895
|
function toCallHierarchyIncomingCall(value) {
|
|
866
896
|
return new types.CallHierarchyIncomingCall(toCallHierarchyItem(value.from), value.fromRanges && value.fromRanges.map(toRange));
|
|
867
897
|
}
|
|
868
|
-
exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
|
|
869
898
|
function toCallHierarchyOutgoingCall(value) {
|
|
870
899
|
return new types.CallHierarchyOutgoingCall(toCallHierarchyItem(value.to), value.fromRanges && value.fromRanges.map(toRange));
|
|
871
900
|
}
|
|
872
|
-
exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
|
|
873
901
|
function isModelTypeHierarchyItem(arg) {
|
|
874
902
|
return (0, common_1.isObject)(arg)
|
|
875
903
|
&& isModelRange(arg.range)
|
|
@@ -877,11 +905,9 @@ function isModelTypeHierarchyItem(arg) {
|
|
|
877
905
|
&& isUriComponents(arg.uri)
|
|
878
906
|
&& !!arg.name;
|
|
879
907
|
}
|
|
880
|
-
exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
|
|
881
908
|
function fromTypeHierarchyItem(item) {
|
|
882
909
|
return fromHierarchyItem(item);
|
|
883
910
|
}
|
|
884
|
-
exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
|
|
885
911
|
function toTypeHierarchyItem(value) {
|
|
886
912
|
const item = new types.TypeHierarchyItem(SymbolKind.toSymbolKind(value.kind), value.name, value.detail ? value.detail : '', types_impl_1.URI.revive(value.uri), toRange(value.selectionRange), toRange(value.range));
|
|
887
913
|
item.tags = value.tags;
|
|
@@ -889,7 +915,6 @@ function toTypeHierarchyItem(value) {
|
|
|
889
915
|
item._sessionId = value._sessionId;
|
|
890
916
|
return item;
|
|
891
917
|
}
|
|
892
|
-
exports.toTypeHierarchyItem = toTypeHierarchyItem;
|
|
893
918
|
function toWorkspaceFolder(folder) {
|
|
894
919
|
return {
|
|
895
920
|
uri: types_impl_1.URI.revive(folder.uri),
|
|
@@ -897,7 +922,6 @@ function toWorkspaceFolder(folder) {
|
|
|
897
922
|
index: folder.index
|
|
898
923
|
};
|
|
899
924
|
}
|
|
900
|
-
exports.toWorkspaceFolder = toWorkspaceFolder;
|
|
901
925
|
function fromTask(task) {
|
|
902
926
|
if (!task) {
|
|
903
927
|
return undefined;
|
|
@@ -956,7 +980,6 @@ function fromTask(task) {
|
|
|
956
980
|
}
|
|
957
981
|
return taskDto;
|
|
958
982
|
}
|
|
959
|
-
exports.fromTask = fromTask;
|
|
960
983
|
function toTask(taskDto) {
|
|
961
984
|
if (!taskDto) {
|
|
962
985
|
throw new Error('Task should be provided for converting');
|
|
@@ -965,7 +988,7 @@ function toTask(taskDto) {
|
|
|
965
988
|
const result = {};
|
|
966
989
|
result.name = label;
|
|
967
990
|
result.source = source;
|
|
968
|
-
result.runOptions = runOptions
|
|
991
|
+
result.runOptions = runOptions ?? {};
|
|
969
992
|
if (detail) {
|
|
970
993
|
result.detail = detail;
|
|
971
994
|
}
|
|
@@ -1016,7 +1039,6 @@ function toTask(taskDto) {
|
|
|
1016
1039
|
}
|
|
1017
1040
|
return result;
|
|
1018
1041
|
}
|
|
1019
|
-
exports.toTask = toTask;
|
|
1020
1042
|
function fromProcessExecution(execution, taskDto) {
|
|
1021
1043
|
taskDto.executionType = 'process';
|
|
1022
1044
|
taskDto.command = execution.process;
|
|
@@ -1027,7 +1049,6 @@ function fromProcessExecution(execution, taskDto) {
|
|
|
1027
1049
|
}
|
|
1028
1050
|
return taskDto;
|
|
1029
1051
|
}
|
|
1030
|
-
exports.fromProcessExecution = fromProcessExecution;
|
|
1031
1052
|
function fromShellExecution(execution, taskDto) {
|
|
1032
1053
|
taskDto.executionType = 'shell';
|
|
1033
1054
|
const options = execution.options;
|
|
@@ -1048,7 +1069,6 @@ function fromShellExecution(execution, taskDto) {
|
|
|
1048
1069
|
throw new Error('Command is undefined');
|
|
1049
1070
|
}
|
|
1050
1071
|
}
|
|
1051
|
-
exports.fromShellExecution = fromShellExecution;
|
|
1052
1072
|
function fromCustomExecution(execution, taskDto) {
|
|
1053
1073
|
taskDto.executionType = 'customExecution';
|
|
1054
1074
|
const callback = execution.callback;
|
|
@@ -1060,22 +1080,18 @@ function fromCustomExecution(execution, taskDto) {
|
|
|
1060
1080
|
throw new Error('Converting CustomExecution callback is not implemented');
|
|
1061
1081
|
}
|
|
1062
1082
|
}
|
|
1063
|
-
exports.fromCustomExecution = fromCustomExecution;
|
|
1064
1083
|
function getProcessExecution(taskDto) {
|
|
1065
1084
|
return new types.ProcessExecution(taskDto.command, taskDto.args || [], taskDto.options || {});
|
|
1066
1085
|
}
|
|
1067
|
-
exports.getProcessExecution = getProcessExecution;
|
|
1068
1086
|
function getShellExecution(taskDto) {
|
|
1069
1087
|
if (taskDto.command && Array.isArray(taskDto.args) && taskDto.args.length !== 0) {
|
|
1070
1088
|
return new types.ShellExecution(taskDto.command, taskDto.args, taskDto.options || {});
|
|
1071
1089
|
}
|
|
1072
1090
|
return new types.ShellExecution(taskDto.command || taskDto.commandLine, taskDto.options || {});
|
|
1073
1091
|
}
|
|
1074
|
-
exports.getShellExecution = getShellExecution;
|
|
1075
1092
|
function getCustomExecution(taskDto) {
|
|
1076
1093
|
return new types.CustomExecution(taskDto.callback);
|
|
1077
1094
|
}
|
|
1078
|
-
exports.getCustomExecution = getCustomExecution;
|
|
1079
1095
|
function getShellArgs(args) {
|
|
1080
1096
|
if (!args || args.length === 0) {
|
|
1081
1097
|
return [];
|
|
@@ -1091,7 +1107,6 @@ function getShellArgs(args) {
|
|
|
1091
1107
|
});
|
|
1092
1108
|
return result;
|
|
1093
1109
|
}
|
|
1094
|
-
exports.getShellArgs = getShellArgs;
|
|
1095
1110
|
function getCommand(command) {
|
|
1096
1111
|
return typeof command === 'string' ? command : command.value;
|
|
1097
1112
|
}
|
|
@@ -1121,7 +1136,6 @@ function getShellExecutionOptions(options) {
|
|
|
1121
1136
|
}
|
|
1122
1137
|
return result;
|
|
1123
1138
|
}
|
|
1124
|
-
exports.getShellExecutionOptions = getShellExecutionOptions;
|
|
1125
1139
|
function fromSymbolInformation(symbolInformation) {
|
|
1126
1140
|
if (!symbolInformation) {
|
|
1127
1141
|
return undefined;
|
|
@@ -1141,7 +1155,6 @@ function fromSymbolInformation(symbolInformation) {
|
|
|
1141
1155
|
}
|
|
1142
1156
|
};
|
|
1143
1157
|
}
|
|
1144
|
-
exports.fromSymbolInformation = fromSymbolInformation;
|
|
1145
1158
|
function toSymbolInformation(symbolInformation) {
|
|
1146
1159
|
if (!symbolInformation) {
|
|
1147
1160
|
return undefined;
|
|
@@ -1156,11 +1169,9 @@ function toSymbolInformation(symbolInformation) {
|
|
|
1156
1169
|
};
|
|
1157
1170
|
return theiaSymbolInformation;
|
|
1158
1171
|
}
|
|
1159
|
-
exports.toSymbolInformation = toSymbolInformation;
|
|
1160
1172
|
function fromSelectionRange(selectionRange) {
|
|
1161
1173
|
return { range: fromRange(selectionRange.range) };
|
|
1162
1174
|
}
|
|
1163
|
-
exports.fromSelectionRange = fromSelectionRange;
|
|
1164
1175
|
function fromFoldingRange(foldingRange) {
|
|
1165
1176
|
const range = {
|
|
1166
1177
|
start: foldingRange.start + 1,
|
|
@@ -1171,7 +1182,6 @@ function fromFoldingRange(foldingRange) {
|
|
|
1171
1182
|
}
|
|
1172
1183
|
return range;
|
|
1173
1184
|
}
|
|
1174
|
-
exports.fromFoldingRange = fromFoldingRange;
|
|
1175
1185
|
function fromFoldingRangeKind(kind) {
|
|
1176
1186
|
if (kind) {
|
|
1177
1187
|
switch (kind) {
|
|
@@ -1185,15 +1195,12 @@ function fromFoldingRangeKind(kind) {
|
|
|
1185
1195
|
}
|
|
1186
1196
|
return undefined;
|
|
1187
1197
|
}
|
|
1188
|
-
exports.fromFoldingRangeKind = fromFoldingRangeKind;
|
|
1189
1198
|
function fromColor(color) {
|
|
1190
1199
|
return [color.red, color.green, color.blue, color.alpha];
|
|
1191
1200
|
}
|
|
1192
|
-
exports.fromColor = fromColor;
|
|
1193
1201
|
function toColor(color) {
|
|
1194
1202
|
return new types.Color(color[0], color[1], color[2], color[3]);
|
|
1195
1203
|
}
|
|
1196
|
-
exports.toColor = toColor;
|
|
1197
1204
|
function fromColorPresentation(colorPresentation) {
|
|
1198
1205
|
return {
|
|
1199
1206
|
label: colorPresentation.label,
|
|
@@ -1201,9 +1208,7 @@ function fromColorPresentation(colorPresentation) {
|
|
|
1201
1208
|
additionalTextEdits: colorPresentation.additionalTextEdits ? colorPresentation.additionalTextEdits.map(value => fromTextEdit(value)) : undefined
|
|
1202
1209
|
};
|
|
1203
1210
|
}
|
|
1204
|
-
exports.fromColorPresentation = fromColorPresentation;
|
|
1205
1211
|
function convertIconPath(iconPath) {
|
|
1206
|
-
var _a;
|
|
1207
1212
|
if (!iconPath) {
|
|
1208
1213
|
return undefined;
|
|
1209
1214
|
}
|
|
@@ -1213,7 +1218,7 @@ function convertIconPath(iconPath) {
|
|
|
1213
1218
|
else if ('dark' in iconPath) {
|
|
1214
1219
|
return {
|
|
1215
1220
|
dark: iconPath.dark.toJSON(),
|
|
1216
|
-
light:
|
|
1221
|
+
light: iconPath.light?.toJSON()
|
|
1217
1222
|
};
|
|
1218
1223
|
}
|
|
1219
1224
|
else if (types_impl_1.ThemeIcon.is(iconPath)) {
|
|
@@ -1226,23 +1231,19 @@ function convertIconPath(iconPath) {
|
|
|
1226
1231
|
return undefined;
|
|
1227
1232
|
}
|
|
1228
1233
|
}
|
|
1229
|
-
exports.convertIconPath = convertIconPath;
|
|
1230
1234
|
function convertQuickInputButton(plugin, button, index) {
|
|
1231
|
-
var _a;
|
|
1232
1235
|
const iconPath = convertIconPath(button.iconPath);
|
|
1233
1236
|
if (!iconPath) {
|
|
1234
1237
|
throw new Error(`Could not convert icon path: '${button.iconPath}'`);
|
|
1235
1238
|
}
|
|
1236
1239
|
return {
|
|
1237
1240
|
handle: index,
|
|
1238
|
-
iconUrl:
|
|
1241
|
+
iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
|
|
1239
1242
|
tooltip: button.tooltip
|
|
1240
1243
|
};
|
|
1241
1244
|
}
|
|
1242
|
-
exports.convertQuickInputButton = convertQuickInputButton;
|
|
1243
1245
|
function convertToTransferQuickPickItems(plugin, items) {
|
|
1244
1246
|
return items.map((item, index) => {
|
|
1245
|
-
var _a;
|
|
1246
1247
|
if (typeof item === 'string') {
|
|
1247
1248
|
return { kind: 'item', label: item, handle: index };
|
|
1248
1249
|
}
|
|
@@ -1250,22 +1251,22 @@ function convertToTransferQuickPickItems(plugin, items) {
|
|
|
1250
1251
|
return { kind: 'separator', label: item.label, handle: index };
|
|
1251
1252
|
}
|
|
1252
1253
|
else {
|
|
1253
|
-
const { label, description, iconPath, detail, picked, alwaysShow, buttons } = item;
|
|
1254
|
+
const { label, description, iconPath, detail, picked, alwaysShow, buttons, resourceUri } = item;
|
|
1254
1255
|
return {
|
|
1255
1256
|
kind: 'item',
|
|
1256
1257
|
label,
|
|
1257
1258
|
description,
|
|
1258
|
-
iconUrl:
|
|
1259
|
+
iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
|
|
1259
1260
|
detail,
|
|
1260
1261
|
picked,
|
|
1261
1262
|
alwaysShow,
|
|
1262
1263
|
buttons: buttons ? buttons.map((button, i) => convertQuickInputButton(plugin, button, i)) : undefined,
|
|
1264
|
+
resourceUri: resourceUri?.toJSON(),
|
|
1263
1265
|
handle: index,
|
|
1264
1266
|
};
|
|
1265
1267
|
}
|
|
1266
1268
|
});
|
|
1267
1269
|
}
|
|
1268
|
-
exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
|
|
1269
1270
|
var DecorationRenderOptions;
|
|
1270
1271
|
(function (DecorationRenderOptions) {
|
|
1271
1272
|
function from(options) {
|
|
@@ -1409,7 +1410,6 @@ function pathOrURIToURI(value) {
|
|
|
1409
1410
|
return value;
|
|
1410
1411
|
}
|
|
1411
1412
|
}
|
|
1412
|
-
exports.pathOrURIToURI = pathOrURIToURI;
|
|
1413
1413
|
function pluginToPluginInfo(plugin) {
|
|
1414
1414
|
return {
|
|
1415
1415
|
id: plugin.model.id,
|
|
@@ -1417,7 +1417,6 @@ function pluginToPluginInfo(plugin) {
|
|
|
1417
1417
|
displayName: plugin.model.displayName
|
|
1418
1418
|
};
|
|
1419
1419
|
}
|
|
1420
|
-
exports.pluginToPluginInfo = pluginToPluginInfo;
|
|
1421
1420
|
var InlayHintKind;
|
|
1422
1421
|
(function (InlayHintKind) {
|
|
1423
1422
|
function from(kind) {
|
|
@@ -1468,11 +1467,10 @@ var DataTransfer;
|
|
|
1468
1467
|
var NotebookDocumentContentOptions;
|
|
1469
1468
|
(function (NotebookDocumentContentOptions) {
|
|
1470
1469
|
function from(options) {
|
|
1471
|
-
var _a, _b, _c;
|
|
1472
1470
|
return {
|
|
1473
|
-
transientOutputs:
|
|
1474
|
-
transientCellMetadata:
|
|
1475
|
-
transientDocumentMetadata:
|
|
1471
|
+
transientOutputs: options?.transientOutputs ?? false,
|
|
1472
|
+
transientCellMetadata: options?.transientCellMetadata ?? {},
|
|
1473
|
+
transientDocumentMetadata: options?.transientDocumentMetadata ?? {},
|
|
1476
1474
|
};
|
|
1477
1475
|
}
|
|
1478
1476
|
NotebookDocumentContentOptions.from = from;
|
|
@@ -1494,9 +1492,8 @@ var NotebookStatusBarItem;
|
|
|
1494
1492
|
var NotebookData;
|
|
1495
1493
|
(function (NotebookData) {
|
|
1496
1494
|
function from(data) {
|
|
1497
|
-
var _a;
|
|
1498
1495
|
const res = {
|
|
1499
|
-
metadata:
|
|
1496
|
+
metadata: data.metadata ?? Object.create(null),
|
|
1500
1497
|
cells: [],
|
|
1501
1498
|
};
|
|
1502
1499
|
for (const cell of data.cells) {
|
|
@@ -1518,13 +1515,12 @@ var NotebookData;
|
|
|
1518
1515
|
var NotebookCellData;
|
|
1519
1516
|
(function (NotebookCellData) {
|
|
1520
1517
|
function from(data) {
|
|
1521
|
-
var _a;
|
|
1522
1518
|
return {
|
|
1523
1519
|
cellKind: NotebookCellKind.from(data.kind),
|
|
1524
1520
|
language: data.languageId,
|
|
1525
1521
|
source: data.value,
|
|
1526
1522
|
metadata: data.metadata,
|
|
1527
|
-
internalMetadata: NotebookCellExecutionSummary.from(
|
|
1523
|
+
internalMetadata: NotebookCellExecutionSummary.from(data.executionSummary ?? {}),
|
|
1528
1524
|
outputs: data.outputs ? data.outputs.map(NotebookCellOutputConverter.from) : []
|
|
1529
1525
|
};
|
|
1530
1526
|
}
|
|
@@ -1636,11 +1632,10 @@ var NotebookCellExecutionSummary;
|
|
|
1636
1632
|
}
|
|
1637
1633
|
NotebookCellExecutionSummary.to = to;
|
|
1638
1634
|
function from(data) {
|
|
1639
|
-
var _a, _b;
|
|
1640
1635
|
return {
|
|
1641
1636
|
lastRunSuccess: data.success,
|
|
1642
|
-
runStartTime:
|
|
1643
|
-
runEndTime:
|
|
1637
|
+
runStartTime: data.timing?.startTime,
|
|
1638
|
+
runEndTime: data.timing?.endTime,
|
|
1644
1639
|
executionOrder: data.executionOrder
|
|
1645
1640
|
};
|
|
1646
1641
|
}
|
|
@@ -1691,11 +1686,10 @@ var TestMessage;
|
|
|
1691
1686
|
var TestMessageStackFrame;
|
|
1692
1687
|
(function (TestMessageStackFrame) {
|
|
1693
1688
|
function from(stackTrace) {
|
|
1694
|
-
var _a;
|
|
1695
1689
|
return {
|
|
1696
1690
|
label: stackTrace.label,
|
|
1697
1691
|
position: stackTrace.position,
|
|
1698
|
-
uri:
|
|
1692
|
+
uri: stackTrace?.uri?.toString()
|
|
1699
1693
|
};
|
|
1700
1694
|
}
|
|
1701
1695
|
TestMessageStackFrame.from = from;
|