@theia/plugin-ext 1.68.0-next.9 → 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 +13 -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 +14 -10
- 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 +107 -114
- 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 +16 -0
- package/src/common/plugin-api-rpc.ts +21 -3
- package/src/main/browser/languages-main.ts +10 -3
- 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 +8 -4
- 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,
|
|
@@ -356,7 +412,6 @@ function convertDiagnosticToMarkerData(diagnostic) {
|
|
|
356
412
|
data: diagnostic.data,
|
|
357
413
|
};
|
|
358
414
|
}
|
|
359
|
-
exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
|
|
360
415
|
function convertCode(code) {
|
|
361
416
|
if (typeof code === 'number') {
|
|
362
417
|
return String(code);
|
|
@@ -369,7 +424,6 @@ function convertCode(code) {
|
|
|
369
424
|
}
|
|
370
425
|
;
|
|
371
426
|
}
|
|
372
|
-
exports.convertCode = convertCode;
|
|
373
427
|
function convertSeverity(severity) {
|
|
374
428
|
switch (severity) {
|
|
375
429
|
case types.DiagnosticSeverity.Error: return types.MarkerSeverity.Error;
|
|
@@ -413,19 +467,20 @@ function convertTags(tags) {
|
|
|
413
467
|
return markerTags;
|
|
414
468
|
}
|
|
415
469
|
function fromHover(hover) {
|
|
416
|
-
|
|
470
|
+
const modelHover = {
|
|
417
471
|
range: fromRange(hover.range),
|
|
418
|
-
contents: fromManyMarkdown(hover.contents)
|
|
472
|
+
contents: fromManyMarkdown(hover.contents),
|
|
473
|
+
canIncreaseVerbosity: hover.canIncreaseVerbosity,
|
|
474
|
+
canDecreaseVerbosity: hover.canDecreaseVerbosity,
|
|
419
475
|
};
|
|
476
|
+
return modelHover;
|
|
420
477
|
}
|
|
421
|
-
exports.fromHover = fromHover;
|
|
422
478
|
function fromEvaluatableExpression(evaluatableExpression) {
|
|
423
479
|
return {
|
|
424
480
|
range: fromRange(evaluatableExpression.range),
|
|
425
481
|
expression: evaluatableExpression.expression
|
|
426
482
|
};
|
|
427
483
|
}
|
|
428
|
-
exports.fromEvaluatableExpression = fromEvaluatableExpression;
|
|
429
484
|
function fromInlineValue(inlineValue) {
|
|
430
485
|
if (inlineValue instanceof types_impl_1.InlineValueText) {
|
|
431
486
|
return {
|
|
@@ -453,7 +508,6 @@ function fromInlineValue(inlineValue) {
|
|
|
453
508
|
throw new Error('Unknown InlineValue type');
|
|
454
509
|
}
|
|
455
510
|
}
|
|
456
|
-
exports.fromInlineValue = fromInlineValue;
|
|
457
511
|
function toInlineValueContext(inlineValueContext) {
|
|
458
512
|
const ivLocation = inlineValueContext.stoppedLocation;
|
|
459
513
|
return {
|
|
@@ -461,7 +515,6 @@ function toInlineValueContext(inlineValueContext) {
|
|
|
461
515
|
stoppedLocation: new types.Range(ivLocation.startLineNumber, ivLocation.startColumn, ivLocation.endLineNumber, ivLocation.endColumn)
|
|
462
516
|
};
|
|
463
517
|
}
|
|
464
|
-
exports.toInlineValueContext = toInlineValueContext;
|
|
465
518
|
function fromLocation(location) {
|
|
466
519
|
if (!location) {
|
|
467
520
|
return undefined;
|
|
@@ -471,7 +524,6 @@ function fromLocation(location) {
|
|
|
471
524
|
range: fromRange(location.range)
|
|
472
525
|
};
|
|
473
526
|
}
|
|
474
|
-
exports.fromLocation = fromLocation;
|
|
475
527
|
function fromLocationToLanguageServerLocation(location) {
|
|
476
528
|
if (!location) {
|
|
477
529
|
return undefined;
|
|
@@ -481,7 +533,6 @@ function fromLocationToLanguageServerLocation(location) {
|
|
|
481
533
|
range: location.range
|
|
482
534
|
};
|
|
483
535
|
}
|
|
484
|
-
exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
|
|
485
536
|
function fromTextDocumentShowOptions(options) {
|
|
486
537
|
if (options.selection) {
|
|
487
538
|
return {
|
|
@@ -491,7 +542,6 @@ function fromTextDocumentShowOptions(options) {
|
|
|
491
542
|
}
|
|
492
543
|
return options;
|
|
493
544
|
}
|
|
494
|
-
exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
|
|
495
545
|
function fromDefinitionLink(definitionLink) {
|
|
496
546
|
return {
|
|
497
547
|
uri: definitionLink.targetUri,
|
|
@@ -500,7 +550,6 @@ function fromDefinitionLink(definitionLink) {
|
|
|
500
550
|
targetSelectionRange: definitionLink.targetSelectionRange ? fromRange(definitionLink.targetSelectionRange) : undefined
|
|
501
551
|
};
|
|
502
552
|
}
|
|
503
|
-
exports.fromDefinitionLink = fromDefinitionLink;
|
|
504
553
|
var DocumentLink;
|
|
505
554
|
(function (DocumentLink) {
|
|
506
555
|
function from(link) {
|
|
@@ -533,14 +582,12 @@ function fromDocumentHighlightKind(kind) {
|
|
|
533
582
|
}
|
|
534
583
|
return model.DocumentHighlightKind.Text;
|
|
535
584
|
}
|
|
536
|
-
exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
|
|
537
585
|
function fromDocumentHighlight(documentHighlight) {
|
|
538
586
|
return {
|
|
539
587
|
range: fromRange(documentHighlight.range),
|
|
540
588
|
kind: fromDocumentHighlightKind(documentHighlight.kind)
|
|
541
589
|
};
|
|
542
590
|
}
|
|
543
|
-
exports.fromDocumentHighlight = fromDocumentHighlight;
|
|
544
591
|
var ParameterInformation;
|
|
545
592
|
(function (ParameterInformation) {
|
|
546
593
|
function from(info) {
|
|
@@ -605,27 +652,27 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
605
652
|
edits: []
|
|
606
653
|
};
|
|
607
654
|
for (const entry of value._allEntries()) {
|
|
608
|
-
if (
|
|
655
|
+
if (entry?._type === 2 /* types.FileEditType.Text */) {
|
|
609
656
|
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
610
657
|
const workspaceTextEditDto = {
|
|
611
658
|
resource: entry.uri,
|
|
612
|
-
modelVersionId: doc
|
|
659
|
+
modelVersionId: doc?.version,
|
|
613
660
|
textEdit: fromTextEdit(entry.edit),
|
|
614
661
|
metadata: entry.metadata
|
|
615
662
|
};
|
|
616
663
|
result.edits.push(workspaceTextEditDto);
|
|
617
664
|
}
|
|
618
|
-
else if (
|
|
665
|
+
else if (entry?._type === 6 /* types.FileEditType.Snippet */) {
|
|
619
666
|
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
620
667
|
const workspaceTextEditDto = {
|
|
621
668
|
resource: entry.uri,
|
|
622
|
-
modelVersionId: doc
|
|
669
|
+
modelVersionId: doc?.version,
|
|
623
670
|
textEdit: fromSnippetTextEdit(entry.edit),
|
|
624
671
|
metadata: entry.metadata
|
|
625
672
|
};
|
|
626
673
|
result.edits.push(workspaceTextEditDto);
|
|
627
674
|
}
|
|
628
|
-
else if (
|
|
675
|
+
else if (entry?._type === 1 /* types.FileEditType.File */) {
|
|
629
676
|
const workspaceFileEditDto = {
|
|
630
677
|
oldResource: entry.from,
|
|
631
678
|
newResource: entry.to,
|
|
@@ -634,7 +681,7 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
634
681
|
};
|
|
635
682
|
result.edits.push(workspaceFileEditDto);
|
|
636
683
|
}
|
|
637
|
-
else if (
|
|
684
|
+
else if (entry?._type === 3 /* types.FileEditType.Cell */) {
|
|
638
685
|
if (entry.edit) {
|
|
639
686
|
result.edits.push({
|
|
640
687
|
metadata: entry.metadata,
|
|
@@ -643,7 +690,7 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
643
690
|
});
|
|
644
691
|
}
|
|
645
692
|
}
|
|
646
|
-
else if (
|
|
693
|
+
else if (entry?._type === 5 /* types.FileEditType.CellReplace */) {
|
|
647
694
|
result.edits.push({
|
|
648
695
|
metadata: entry.metadata,
|
|
649
696
|
resource: entry.uri,
|
|
@@ -658,7 +705,6 @@ function fromWorkspaceEdit(value, documents) {
|
|
|
658
705
|
}
|
|
659
706
|
return result;
|
|
660
707
|
}
|
|
661
|
-
exports.fromWorkspaceEdit = fromWorkspaceEdit;
|
|
662
708
|
var SymbolKind;
|
|
663
709
|
(function (SymbolKind) {
|
|
664
710
|
const fromMapping = Object.create(null);
|
|
@@ -728,7 +774,6 @@ function toCodeActionTriggerKind(triggerKind) {
|
|
|
728
774
|
return types.CodeActionTriggerKind.Automatic;
|
|
729
775
|
}
|
|
730
776
|
}
|
|
731
|
-
exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
|
|
732
777
|
function fromDocumentSymbol(info) {
|
|
733
778
|
const result = {
|
|
734
779
|
name: info.name,
|
|
@@ -743,7 +788,6 @@ function fromDocumentSymbol(info) {
|
|
|
743
788
|
}
|
|
744
789
|
return result;
|
|
745
790
|
}
|
|
746
|
-
exports.fromDocumentSymbol = fromDocumentSymbol;
|
|
747
791
|
function toDocumentSymbol(symbol) {
|
|
748
792
|
return {
|
|
749
793
|
name: symbol.name,
|
|
@@ -755,46 +799,40 @@ function toDocumentSymbol(symbol) {
|
|
|
755
799
|
kind: SymbolKind.toSymbolKind(symbol.kind)
|
|
756
800
|
};
|
|
757
801
|
}
|
|
758
|
-
exports.toDocumentSymbol = toDocumentSymbol;
|
|
759
802
|
function fromSymbolTag(kind) {
|
|
760
803
|
switch (kind) {
|
|
761
804
|
case types.SymbolTag.Deprecated: return model.SymbolTag.Deprecated;
|
|
762
805
|
}
|
|
763
806
|
}
|
|
764
|
-
exports.fromSymbolTag = fromSymbolTag;
|
|
765
807
|
function toSymbolTag(kind) {
|
|
766
808
|
switch (kind) {
|
|
767
809
|
case model.SymbolTag.Deprecated: return types.SymbolTag.Deprecated;
|
|
768
810
|
}
|
|
769
811
|
}
|
|
770
|
-
exports.toSymbolTag = toSymbolTag;
|
|
771
812
|
/**
|
|
772
813
|
* Creates a merged symbol of type theia.SymbolInformation & theia.DocumentSymbol.
|
|
773
814
|
* Is only used as the result type of the `vscode.executeDocumentSymbolProvider` command.
|
|
774
815
|
*/
|
|
775
816
|
function toMergedSymbol(uri, symbol) {
|
|
776
|
-
var _a, _b, _c;
|
|
777
817
|
const uriValue = types_impl_1.URI.revive(uri);
|
|
778
818
|
const location = new types.Location(uriValue, toRange(symbol.range));
|
|
779
819
|
return {
|
|
780
820
|
name: symbol.name,
|
|
781
|
-
containerName:
|
|
821
|
+
containerName: symbol.containerName ?? '',
|
|
782
822
|
kind: SymbolKind.toSymbolKind(symbol.kind),
|
|
783
823
|
tags: [],
|
|
784
824
|
location,
|
|
785
825
|
detail: symbol.detail,
|
|
786
826
|
range: location.range,
|
|
787
827
|
selectionRange: toRange(symbol.selectionRange),
|
|
788
|
-
children:
|
|
828
|
+
children: symbol.children?.map(child => toMergedSymbol(uri, child)) ?? []
|
|
789
829
|
};
|
|
790
830
|
}
|
|
791
|
-
exports.toMergedSymbol = toMergedSymbol;
|
|
792
831
|
function isModelLocation(arg) {
|
|
793
832
|
return (0, common_1.isObject)(arg) &&
|
|
794
833
|
isModelRange(arg.range) &&
|
|
795
834
|
isUriComponents(arg.uri);
|
|
796
835
|
}
|
|
797
|
-
exports.isModelLocation = isModelLocation;
|
|
798
836
|
function isModelRange(arg) {
|
|
799
837
|
return (0, common_1.isObject)(arg) &&
|
|
800
838
|
typeof arg.startLineNumber === 'number' &&
|
|
@@ -802,7 +840,6 @@ function isModelRange(arg) {
|
|
|
802
840
|
typeof arg.endLineNumber === 'number' &&
|
|
803
841
|
typeof arg.endColumn === 'number';
|
|
804
842
|
}
|
|
805
|
-
exports.isModelRange = isModelRange;
|
|
806
843
|
function isUriComponents(arg) {
|
|
807
844
|
return (0, common_1.isObject)(arg) &&
|
|
808
845
|
typeof arg.scheme === 'string' &&
|
|
@@ -810,7 +847,6 @@ function isUriComponents(arg) {
|
|
|
810
847
|
typeof arg.query === 'string' &&
|
|
811
848
|
typeof arg.fragment === 'string'));
|
|
812
849
|
}
|
|
813
|
-
exports.isUriComponents = isUriComponents;
|
|
814
850
|
function isModelCallHierarchyItem(arg) {
|
|
815
851
|
return (0, common_1.isObject)(arg)
|
|
816
852
|
&& isModelRange(arg.range)
|
|
@@ -818,25 +854,21 @@ function isModelCallHierarchyItem(arg) {
|
|
|
818
854
|
&& isUriComponents(arg.uri)
|
|
819
855
|
&& !!arg.name;
|
|
820
856
|
}
|
|
821
|
-
exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
|
|
822
857
|
function isModelCallHierarchyIncomingCall(arg) {
|
|
823
858
|
return (0, common_1.isObject)(arg) &&
|
|
824
859
|
'from' in arg &&
|
|
825
860
|
'fromRanges' in arg &&
|
|
826
861
|
isModelCallHierarchyItem(arg.from);
|
|
827
862
|
}
|
|
828
|
-
exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
|
|
829
863
|
function isModelCallHierarchyOutgoingCall(arg) {
|
|
830
864
|
return (0, common_1.isObject)(arg) &&
|
|
831
865
|
'to' in arg &&
|
|
832
866
|
'fromRanges' in arg &&
|
|
833
867
|
isModelCallHierarchyItem(arg.to);
|
|
834
868
|
}
|
|
835
|
-
exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
|
|
836
869
|
function toLocation(value) {
|
|
837
870
|
return new types.Location(types_impl_1.URI.revive(value.uri), toRange(value.range));
|
|
838
871
|
}
|
|
839
|
-
exports.toLocation = toLocation;
|
|
840
872
|
function fromHierarchyItem(item) {
|
|
841
873
|
return {
|
|
842
874
|
kind: SymbolKind.fromSymbolKind(item.kind),
|
|
@@ -850,11 +882,9 @@ function fromHierarchyItem(item) {
|
|
|
850
882
|
_sessionId: item._sessionId,
|
|
851
883
|
};
|
|
852
884
|
}
|
|
853
|
-
exports.fromHierarchyItem = fromHierarchyItem;
|
|
854
885
|
function fromCallHierarchyItem(item) {
|
|
855
886
|
return fromHierarchyItem(item);
|
|
856
887
|
}
|
|
857
|
-
exports.fromCallHierarchyItem = fromCallHierarchyItem;
|
|
858
888
|
function toCallHierarchyItem(value) {
|
|
859
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));
|
|
860
890
|
item.tags = value.tags;
|
|
@@ -862,15 +892,12 @@ function toCallHierarchyItem(value) {
|
|
|
862
892
|
item._sessionId = value._sessionId;
|
|
863
893
|
return item;
|
|
864
894
|
}
|
|
865
|
-
exports.toCallHierarchyItem = toCallHierarchyItem;
|
|
866
895
|
function toCallHierarchyIncomingCall(value) {
|
|
867
896
|
return new types.CallHierarchyIncomingCall(toCallHierarchyItem(value.from), value.fromRanges && value.fromRanges.map(toRange));
|
|
868
897
|
}
|
|
869
|
-
exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
|
|
870
898
|
function toCallHierarchyOutgoingCall(value) {
|
|
871
899
|
return new types.CallHierarchyOutgoingCall(toCallHierarchyItem(value.to), value.fromRanges && value.fromRanges.map(toRange));
|
|
872
900
|
}
|
|
873
|
-
exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
|
|
874
901
|
function isModelTypeHierarchyItem(arg) {
|
|
875
902
|
return (0, common_1.isObject)(arg)
|
|
876
903
|
&& isModelRange(arg.range)
|
|
@@ -878,11 +905,9 @@ function isModelTypeHierarchyItem(arg) {
|
|
|
878
905
|
&& isUriComponents(arg.uri)
|
|
879
906
|
&& !!arg.name;
|
|
880
907
|
}
|
|
881
|
-
exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
|
|
882
908
|
function fromTypeHierarchyItem(item) {
|
|
883
909
|
return fromHierarchyItem(item);
|
|
884
910
|
}
|
|
885
|
-
exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
|
|
886
911
|
function toTypeHierarchyItem(value) {
|
|
887
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));
|
|
888
913
|
item.tags = value.tags;
|
|
@@ -890,7 +915,6 @@ function toTypeHierarchyItem(value) {
|
|
|
890
915
|
item._sessionId = value._sessionId;
|
|
891
916
|
return item;
|
|
892
917
|
}
|
|
893
|
-
exports.toTypeHierarchyItem = toTypeHierarchyItem;
|
|
894
918
|
function toWorkspaceFolder(folder) {
|
|
895
919
|
return {
|
|
896
920
|
uri: types_impl_1.URI.revive(folder.uri),
|
|
@@ -898,7 +922,6 @@ function toWorkspaceFolder(folder) {
|
|
|
898
922
|
index: folder.index
|
|
899
923
|
};
|
|
900
924
|
}
|
|
901
|
-
exports.toWorkspaceFolder = toWorkspaceFolder;
|
|
902
925
|
function fromTask(task) {
|
|
903
926
|
if (!task) {
|
|
904
927
|
return undefined;
|
|
@@ -957,7 +980,6 @@ function fromTask(task) {
|
|
|
957
980
|
}
|
|
958
981
|
return taskDto;
|
|
959
982
|
}
|
|
960
|
-
exports.fromTask = fromTask;
|
|
961
983
|
function toTask(taskDto) {
|
|
962
984
|
if (!taskDto) {
|
|
963
985
|
throw new Error('Task should be provided for converting');
|
|
@@ -966,7 +988,7 @@ function toTask(taskDto) {
|
|
|
966
988
|
const result = {};
|
|
967
989
|
result.name = label;
|
|
968
990
|
result.source = source;
|
|
969
|
-
result.runOptions = runOptions
|
|
991
|
+
result.runOptions = runOptions ?? {};
|
|
970
992
|
if (detail) {
|
|
971
993
|
result.detail = detail;
|
|
972
994
|
}
|
|
@@ -1017,7 +1039,6 @@ function toTask(taskDto) {
|
|
|
1017
1039
|
}
|
|
1018
1040
|
return result;
|
|
1019
1041
|
}
|
|
1020
|
-
exports.toTask = toTask;
|
|
1021
1042
|
function fromProcessExecution(execution, taskDto) {
|
|
1022
1043
|
taskDto.executionType = 'process';
|
|
1023
1044
|
taskDto.command = execution.process;
|
|
@@ -1028,7 +1049,6 @@ function fromProcessExecution(execution, taskDto) {
|
|
|
1028
1049
|
}
|
|
1029
1050
|
return taskDto;
|
|
1030
1051
|
}
|
|
1031
|
-
exports.fromProcessExecution = fromProcessExecution;
|
|
1032
1052
|
function fromShellExecution(execution, taskDto) {
|
|
1033
1053
|
taskDto.executionType = 'shell';
|
|
1034
1054
|
const options = execution.options;
|
|
@@ -1049,7 +1069,6 @@ function fromShellExecution(execution, taskDto) {
|
|
|
1049
1069
|
throw new Error('Command is undefined');
|
|
1050
1070
|
}
|
|
1051
1071
|
}
|
|
1052
|
-
exports.fromShellExecution = fromShellExecution;
|
|
1053
1072
|
function fromCustomExecution(execution, taskDto) {
|
|
1054
1073
|
taskDto.executionType = 'customExecution';
|
|
1055
1074
|
const callback = execution.callback;
|
|
@@ -1061,22 +1080,18 @@ function fromCustomExecution(execution, taskDto) {
|
|
|
1061
1080
|
throw new Error('Converting CustomExecution callback is not implemented');
|
|
1062
1081
|
}
|
|
1063
1082
|
}
|
|
1064
|
-
exports.fromCustomExecution = fromCustomExecution;
|
|
1065
1083
|
function getProcessExecution(taskDto) {
|
|
1066
1084
|
return new types.ProcessExecution(taskDto.command, taskDto.args || [], taskDto.options || {});
|
|
1067
1085
|
}
|
|
1068
|
-
exports.getProcessExecution = getProcessExecution;
|
|
1069
1086
|
function getShellExecution(taskDto) {
|
|
1070
1087
|
if (taskDto.command && Array.isArray(taskDto.args) && taskDto.args.length !== 0) {
|
|
1071
1088
|
return new types.ShellExecution(taskDto.command, taskDto.args, taskDto.options || {});
|
|
1072
1089
|
}
|
|
1073
1090
|
return new types.ShellExecution(taskDto.command || taskDto.commandLine, taskDto.options || {});
|
|
1074
1091
|
}
|
|
1075
|
-
exports.getShellExecution = getShellExecution;
|
|
1076
1092
|
function getCustomExecution(taskDto) {
|
|
1077
1093
|
return new types.CustomExecution(taskDto.callback);
|
|
1078
1094
|
}
|
|
1079
|
-
exports.getCustomExecution = getCustomExecution;
|
|
1080
1095
|
function getShellArgs(args) {
|
|
1081
1096
|
if (!args || args.length === 0) {
|
|
1082
1097
|
return [];
|
|
@@ -1092,7 +1107,6 @@ function getShellArgs(args) {
|
|
|
1092
1107
|
});
|
|
1093
1108
|
return result;
|
|
1094
1109
|
}
|
|
1095
|
-
exports.getShellArgs = getShellArgs;
|
|
1096
1110
|
function getCommand(command) {
|
|
1097
1111
|
return typeof command === 'string' ? command : command.value;
|
|
1098
1112
|
}
|
|
@@ -1122,7 +1136,6 @@ function getShellExecutionOptions(options) {
|
|
|
1122
1136
|
}
|
|
1123
1137
|
return result;
|
|
1124
1138
|
}
|
|
1125
|
-
exports.getShellExecutionOptions = getShellExecutionOptions;
|
|
1126
1139
|
function fromSymbolInformation(symbolInformation) {
|
|
1127
1140
|
if (!symbolInformation) {
|
|
1128
1141
|
return undefined;
|
|
@@ -1142,7 +1155,6 @@ function fromSymbolInformation(symbolInformation) {
|
|
|
1142
1155
|
}
|
|
1143
1156
|
};
|
|
1144
1157
|
}
|
|
1145
|
-
exports.fromSymbolInformation = fromSymbolInformation;
|
|
1146
1158
|
function toSymbolInformation(symbolInformation) {
|
|
1147
1159
|
if (!symbolInformation) {
|
|
1148
1160
|
return undefined;
|
|
@@ -1157,11 +1169,9 @@ function toSymbolInformation(symbolInformation) {
|
|
|
1157
1169
|
};
|
|
1158
1170
|
return theiaSymbolInformation;
|
|
1159
1171
|
}
|
|
1160
|
-
exports.toSymbolInformation = toSymbolInformation;
|
|
1161
1172
|
function fromSelectionRange(selectionRange) {
|
|
1162
1173
|
return { range: fromRange(selectionRange.range) };
|
|
1163
1174
|
}
|
|
1164
|
-
exports.fromSelectionRange = fromSelectionRange;
|
|
1165
1175
|
function fromFoldingRange(foldingRange) {
|
|
1166
1176
|
const range = {
|
|
1167
1177
|
start: foldingRange.start + 1,
|
|
@@ -1172,7 +1182,6 @@ function fromFoldingRange(foldingRange) {
|
|
|
1172
1182
|
}
|
|
1173
1183
|
return range;
|
|
1174
1184
|
}
|
|
1175
|
-
exports.fromFoldingRange = fromFoldingRange;
|
|
1176
1185
|
function fromFoldingRangeKind(kind) {
|
|
1177
1186
|
if (kind) {
|
|
1178
1187
|
switch (kind) {
|
|
@@ -1186,15 +1195,12 @@ function fromFoldingRangeKind(kind) {
|
|
|
1186
1195
|
}
|
|
1187
1196
|
return undefined;
|
|
1188
1197
|
}
|
|
1189
|
-
exports.fromFoldingRangeKind = fromFoldingRangeKind;
|
|
1190
1198
|
function fromColor(color) {
|
|
1191
1199
|
return [color.red, color.green, color.blue, color.alpha];
|
|
1192
1200
|
}
|
|
1193
|
-
exports.fromColor = fromColor;
|
|
1194
1201
|
function toColor(color) {
|
|
1195
1202
|
return new types.Color(color[0], color[1], color[2], color[3]);
|
|
1196
1203
|
}
|
|
1197
|
-
exports.toColor = toColor;
|
|
1198
1204
|
function fromColorPresentation(colorPresentation) {
|
|
1199
1205
|
return {
|
|
1200
1206
|
label: colorPresentation.label,
|
|
@@ -1202,9 +1208,7 @@ function fromColorPresentation(colorPresentation) {
|
|
|
1202
1208
|
additionalTextEdits: colorPresentation.additionalTextEdits ? colorPresentation.additionalTextEdits.map(value => fromTextEdit(value)) : undefined
|
|
1203
1209
|
};
|
|
1204
1210
|
}
|
|
1205
|
-
exports.fromColorPresentation = fromColorPresentation;
|
|
1206
1211
|
function convertIconPath(iconPath) {
|
|
1207
|
-
var _a;
|
|
1208
1212
|
if (!iconPath) {
|
|
1209
1213
|
return undefined;
|
|
1210
1214
|
}
|
|
@@ -1214,7 +1218,7 @@ function convertIconPath(iconPath) {
|
|
|
1214
1218
|
else if ('dark' in iconPath) {
|
|
1215
1219
|
return {
|
|
1216
1220
|
dark: iconPath.dark.toJSON(),
|
|
1217
|
-
light:
|
|
1221
|
+
light: iconPath.light?.toJSON()
|
|
1218
1222
|
};
|
|
1219
1223
|
}
|
|
1220
1224
|
else if (types_impl_1.ThemeIcon.is(iconPath)) {
|
|
@@ -1227,23 +1231,19 @@ function convertIconPath(iconPath) {
|
|
|
1227
1231
|
return undefined;
|
|
1228
1232
|
}
|
|
1229
1233
|
}
|
|
1230
|
-
exports.convertIconPath = convertIconPath;
|
|
1231
1234
|
function convertQuickInputButton(plugin, button, index) {
|
|
1232
|
-
var _a;
|
|
1233
1235
|
const iconPath = convertIconPath(button.iconPath);
|
|
1234
1236
|
if (!iconPath) {
|
|
1235
1237
|
throw new Error(`Could not convert icon path: '${button.iconPath}'`);
|
|
1236
1238
|
}
|
|
1237
1239
|
return {
|
|
1238
1240
|
handle: index,
|
|
1239
|
-
iconUrl:
|
|
1241
|
+
iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
|
|
1240
1242
|
tooltip: button.tooltip
|
|
1241
1243
|
};
|
|
1242
1244
|
}
|
|
1243
|
-
exports.convertQuickInputButton = convertQuickInputButton;
|
|
1244
1245
|
function convertToTransferQuickPickItems(plugin, items) {
|
|
1245
1246
|
return items.map((item, index) => {
|
|
1246
|
-
var _a;
|
|
1247
1247
|
if (typeof item === 'string') {
|
|
1248
1248
|
return { kind: 'item', label: item, handle: index };
|
|
1249
1249
|
}
|
|
@@ -1251,22 +1251,22 @@ function convertToTransferQuickPickItems(plugin, items) {
|
|
|
1251
1251
|
return { kind: 'separator', label: item.label, handle: index };
|
|
1252
1252
|
}
|
|
1253
1253
|
else {
|
|
1254
|
-
const { label, description, iconPath, detail, picked, alwaysShow, buttons } = item;
|
|
1254
|
+
const { label, description, iconPath, detail, picked, alwaysShow, buttons, resourceUri } = item;
|
|
1255
1255
|
return {
|
|
1256
1256
|
kind: 'item',
|
|
1257
1257
|
label,
|
|
1258
1258
|
description,
|
|
1259
|
-
iconUrl:
|
|
1259
|
+
iconUrl: plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin) ?? types_impl_1.ThemeIcon.get(iconPath),
|
|
1260
1260
|
detail,
|
|
1261
1261
|
picked,
|
|
1262
1262
|
alwaysShow,
|
|
1263
1263
|
buttons: buttons ? buttons.map((button, i) => convertQuickInputButton(plugin, button, i)) : undefined,
|
|
1264
|
+
resourceUri: resourceUri?.toJSON(),
|
|
1264
1265
|
handle: index,
|
|
1265
1266
|
};
|
|
1266
1267
|
}
|
|
1267
1268
|
});
|
|
1268
1269
|
}
|
|
1269
|
-
exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
|
|
1270
1270
|
var DecorationRenderOptions;
|
|
1271
1271
|
(function (DecorationRenderOptions) {
|
|
1272
1272
|
function from(options) {
|
|
@@ -1410,7 +1410,6 @@ function pathOrURIToURI(value) {
|
|
|
1410
1410
|
return value;
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
|
-
exports.pathOrURIToURI = pathOrURIToURI;
|
|
1414
1413
|
function pluginToPluginInfo(plugin) {
|
|
1415
1414
|
return {
|
|
1416
1415
|
id: plugin.model.id,
|
|
@@ -1418,7 +1417,6 @@ function pluginToPluginInfo(plugin) {
|
|
|
1418
1417
|
displayName: plugin.model.displayName
|
|
1419
1418
|
};
|
|
1420
1419
|
}
|
|
1421
|
-
exports.pluginToPluginInfo = pluginToPluginInfo;
|
|
1422
1420
|
var InlayHintKind;
|
|
1423
1421
|
(function (InlayHintKind) {
|
|
1424
1422
|
function from(kind) {
|
|
@@ -1469,11 +1467,10 @@ var DataTransfer;
|
|
|
1469
1467
|
var NotebookDocumentContentOptions;
|
|
1470
1468
|
(function (NotebookDocumentContentOptions) {
|
|
1471
1469
|
function from(options) {
|
|
1472
|
-
var _a, _b, _c;
|
|
1473
1470
|
return {
|
|
1474
|
-
transientOutputs:
|
|
1475
|
-
transientCellMetadata:
|
|
1476
|
-
transientDocumentMetadata:
|
|
1471
|
+
transientOutputs: options?.transientOutputs ?? false,
|
|
1472
|
+
transientCellMetadata: options?.transientCellMetadata ?? {},
|
|
1473
|
+
transientDocumentMetadata: options?.transientDocumentMetadata ?? {},
|
|
1477
1474
|
};
|
|
1478
1475
|
}
|
|
1479
1476
|
NotebookDocumentContentOptions.from = from;
|
|
@@ -1495,9 +1492,8 @@ var NotebookStatusBarItem;
|
|
|
1495
1492
|
var NotebookData;
|
|
1496
1493
|
(function (NotebookData) {
|
|
1497
1494
|
function from(data) {
|
|
1498
|
-
var _a;
|
|
1499
1495
|
const res = {
|
|
1500
|
-
metadata:
|
|
1496
|
+
metadata: data.metadata ?? Object.create(null),
|
|
1501
1497
|
cells: [],
|
|
1502
1498
|
};
|
|
1503
1499
|
for (const cell of data.cells) {
|
|
@@ -1519,13 +1515,12 @@ var NotebookData;
|
|
|
1519
1515
|
var NotebookCellData;
|
|
1520
1516
|
(function (NotebookCellData) {
|
|
1521
1517
|
function from(data) {
|
|
1522
|
-
var _a;
|
|
1523
1518
|
return {
|
|
1524
1519
|
cellKind: NotebookCellKind.from(data.kind),
|
|
1525
1520
|
language: data.languageId,
|
|
1526
1521
|
source: data.value,
|
|
1527
1522
|
metadata: data.metadata,
|
|
1528
|
-
internalMetadata: NotebookCellExecutionSummary.from(
|
|
1523
|
+
internalMetadata: NotebookCellExecutionSummary.from(data.executionSummary ?? {}),
|
|
1529
1524
|
outputs: data.outputs ? data.outputs.map(NotebookCellOutputConverter.from) : []
|
|
1530
1525
|
};
|
|
1531
1526
|
}
|
|
@@ -1637,11 +1632,10 @@ var NotebookCellExecutionSummary;
|
|
|
1637
1632
|
}
|
|
1638
1633
|
NotebookCellExecutionSummary.to = to;
|
|
1639
1634
|
function from(data) {
|
|
1640
|
-
var _a, _b;
|
|
1641
1635
|
return {
|
|
1642
1636
|
lastRunSuccess: data.success,
|
|
1643
|
-
runStartTime:
|
|
1644
|
-
runEndTime:
|
|
1637
|
+
runStartTime: data.timing?.startTime,
|
|
1638
|
+
runEndTime: data.timing?.endTime,
|
|
1645
1639
|
executionOrder: data.executionOrder
|
|
1646
1640
|
};
|
|
1647
1641
|
}
|
|
@@ -1692,11 +1686,10 @@ var TestMessage;
|
|
|
1692
1686
|
var TestMessageStackFrame;
|
|
1693
1687
|
(function (TestMessageStackFrame) {
|
|
1694
1688
|
function from(stackTrace) {
|
|
1695
|
-
var _a;
|
|
1696
1689
|
return {
|
|
1697
1690
|
label: stackTrace.label,
|
|
1698
1691
|
position: stackTrace.position,
|
|
1699
|
-
uri:
|
|
1692
|
+
uri: stackTrace?.uri?.toString()
|
|
1700
1693
|
};
|
|
1701
1694
|
}
|
|
1702
1695
|
TestMessageStackFrame.from = from;
|