@theia/plugin-ext 1.67.0-next.13 → 1.67.0-next.56
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/README.md +1 -1
- package/package.json +29 -29
- package/src/common/plugin-api-rpc.ts +2 -1
- package/src/main/browser/languages-main.ts +14 -4
- package/src/main/browser/notebooks/notebook-editors-main.ts +2 -2
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +1 -1
- package/src/plugin/authentication-ext.ts +1 -0
- package/src/plugin/languages.ts +17 -13
- package/src/plugin/plugin-context.ts +5 -1
- package/src/plugin/timeline.ts +7 -3
- package/src/plugin/types-impl.ts +55 -18
- package/lib/common/arrays.d.ts +0 -24
- package/lib/common/arrays.d.ts.map +0 -1
- package/lib/common/arrays.js +0 -61
- package/lib/common/arrays.js.map +0 -1
- package/lib/common/assert.d.ts +0 -2
- package/lib/common/assert.d.ts.map +0 -1
- package/lib/common/assert.js +0 -26
- package/lib/common/assert.js.map +0 -1
- package/lib/common/cache.d.ts +0 -12
- package/lib/common/cache.d.ts.map +0 -1
- package/lib/common/cache.js +0 -48
- package/lib/common/cache.js.map +0 -1
- package/lib/common/character-classifier.d.ts +0 -19
- package/lib/common/character-classifier.d.ts.map +0 -1
- package/lib/common/character-classifier.js +0 -61
- package/lib/common/character-classifier.js.map +0 -1
- package/lib/common/collections.d.ts +0 -9
- package/lib/common/collections.d.ts.map +0 -1
- package/lib/common/collections.js +0 -56
- package/lib/common/collections.js.map +0 -1
- package/lib/common/commands.d.ts +0 -4
- package/lib/common/commands.d.ts.map +0 -1
- package/lib/common/commands.js +0 -17
- package/lib/common/commands.js.map +0 -1
- package/lib/common/connection.d.ts +0 -55
- package/lib/common/connection.d.ts.map +0 -1
- package/lib/common/connection.js +0 -108
- package/lib/common/connection.js.map +0 -1
- package/lib/common/disposable-util.d.ts +0 -7
- package/lib/common/disposable-util.d.ts.map +0 -1
- package/lib/common/disposable-util.js +0 -38
- package/lib/common/disposable-util.js.map +0 -1
- package/lib/common/editor-options.d.ts +0 -31
- package/lib/common/editor-options.d.ts.map +0 -1
- package/lib/common/editor-options.js +0 -73
- package/lib/common/editor-options.js.map +0 -1
- package/lib/common/env.d.ts +0 -4
- package/lib/common/env.d.ts.map +0 -1
- package/lib/common/env.js +0 -18
- package/lib/common/env.js.map +0 -1
- package/lib/common/errors.d.ts +0 -18
- package/lib/common/errors.d.ts.map +0 -1
- package/lib/common/errors.js +0 -59
- package/lib/common/errors.js.map +0 -1
- package/lib/common/id-generator.d.ts +0 -7
- package/lib/common/id-generator.d.ts.map +0 -1
- package/lib/common/id-generator.js +0 -29
- package/lib/common/id-generator.js.map +0 -1
- package/lib/common/index.d.ts +0 -4
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -25
- package/lib/common/index.js.map +0 -1
- package/lib/common/language-pack-service.d.ts +0 -16
- package/lib/common/language-pack-service.d.ts.map +0 -1
- package/lib/common/language-pack-service.js +0 -21
- package/lib/common/language-pack-service.js.map +0 -1
- package/lib/common/link-computer.d.ts +0 -42
- package/lib/common/link-computer.d.ts.map +0 -1
- package/lib/common/link-computer.js +0 -276
- package/lib/common/link-computer.js.map +0 -1
- package/lib/common/lm-protocol.d.ts +0 -103
- package/lib/common/lm-protocol.d.ts.map +0 -1
- package/lib/common/lm-protocol.js +0 -21
- package/lib/common/lm-protocol.js.map +0 -1
- package/lib/common/object-identifier.d.ts +0 -9
- package/lib/common/object-identifier.d.ts.map +0 -1
- package/lib/common/object-identifier.js +0 -33
- package/lib/common/object-identifier.js.map +0 -1
- package/lib/common/objects.d.ts +0 -2
- package/lib/common/objects.d.ts.map +0 -1
- package/lib/common/objects.js +0 -47
- package/lib/common/objects.js.map +0 -1
- package/lib/common/paths-util.d.ts +0 -4
- package/lib/common/paths-util.d.ts.map +0 -1
- package/lib/common/paths-util.js +0 -145
- package/lib/common/paths-util.js.map +0 -1
- package/lib/common/plugin-api-rpc-model.d.ts +0 -776
- package/lib/common/plugin-api-rpc-model.d.ts.map +0 -1
- package/lib/common/plugin-api-rpc-model.js +0 -179
- package/lib/common/plugin-api-rpc-model.js.map +0 -1
- package/lib/common/plugin-api-rpc.d.ts +0 -2220
- package/lib/common/plugin-api-rpc.d.ts.map +0 -1
- package/lib/common/plugin-api-rpc.js +0 -341
- package/lib/common/plugin-api-rpc.js.map +0 -1
- package/lib/common/plugin-ext-api-contribution.d.ts +0 -89
- package/lib/common/plugin-ext-api-contribution.d.ts.map +0 -1
- package/lib/common/plugin-ext-api-contribution.js +0 -6
- package/lib/common/plugin-ext-api-contribution.js.map +0 -1
- package/lib/common/plugin-identifiers.d.ts +0 -47
- package/lib/common/plugin-identifiers.d.ts.map +0 -1
- package/lib/common/plugin-identifiers.js +0 -90
- package/lib/common/plugin-identifiers.js.map +0 -1
- package/lib/common/plugin-protocol.d.ts +0 -960
- package/lib/common/plugin-protocol.d.ts.map +0 -1
- package/lib/common/plugin-protocol.js +0 -73
- package/lib/common/plugin-protocol.js.map +0 -1
- package/lib/common/reference-map.d.ts +0 -8
- package/lib/common/reference-map.d.ts.map +0 -1
- package/lib/common/reference-map.js +0 -40
- package/lib/common/reference-map.js.map +0 -1
- package/lib/common/rpc-protocol.d.ts +0 -83
- package/lib/common/rpc-protocol.d.ts.map +0 -1
- package/lib/common/rpc-protocol.js +0 -262
- package/lib/common/rpc-protocol.js.map +0 -1
- package/lib/common/semantic-tokens-dto.d.ts +0 -19
- package/lib/common/semantic-tokens-dto.d.ts.map +0 -1
- package/lib/common/semantic-tokens-dto.js +0 -163
- package/lib/common/semantic-tokens-dto.js.map +0 -1
- package/lib/common/test-types.d.ts +0 -103
- package/lib/common/test-types.d.ts.map +0 -1
- package/lib/common/test-types.js +0 -83
- package/lib/common/test-types.js.map +0 -1
- package/lib/common/types.d.ts +0 -38
- package/lib/common/types.d.ts.map +0 -1
- package/lib/common/types.js +0 -122
- package/lib/common/types.js.map +0 -1
- package/lib/common/uint.d.ts +0 -8
- package/lib/common/uint.d.ts.map +0 -1
- package/lib/common/uint.js +0 -34
- package/lib/common/uint.js.map +0 -1
- package/lib/common/uri-components.d.ts +0 -40
- package/lib/common/uri-components.d.ts.map +0 -1
- package/lib/common/uri-components.js +0 -65
- package/lib/common/uri-components.js.map +0 -1
- package/lib/hosted/browser/hosted-plugin-watcher.d.ts +0 -16
- package/lib/hosted/browser/hosted-plugin-watcher.d.ts.map +0 -1
- package/lib/hosted/browser/hosted-plugin-watcher.js +0 -55
- package/lib/hosted/browser/hosted-plugin-watcher.js.map +0 -1
- package/lib/hosted/browser/hosted-plugin.d.ts +0 -101
- package/lib/hosted/browser/hosted-plugin.d.ts.map +0 -1
- package/lib/hosted/browser/hosted-plugin.js +0 -605
- package/lib/hosted/browser/hosted-plugin.js.map +0 -1
- package/lib/hosted/browser/plugin-worker.d.ts +0 -7
- package/lib/hosted/browser/plugin-worker.d.ts.map +0 -1
- package/lib/hosted/browser/plugin-worker.js +0 -50
- package/lib/hosted/browser/plugin-worker.js.map +0 -1
- package/lib/hosted/browser/worker/debug-stub.d.ts +0 -4
- package/lib/hosted/browser/worker/debug-stub.d.ts.map +0 -1
- package/lib/hosted/browser/worker/debug-stub.js +0 -30
- package/lib/hosted/browser/worker/debug-stub.js.map +0 -1
- package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts +0 -3
- package/lib/hosted/browser/worker/plugin-manifest-loader.d.ts.map +0 -1
- package/lib/hosted/browser/worker/plugin-manifest-loader.js +0 -108
- package/lib/hosted/browser/worker/plugin-manifest-loader.js.map +0 -1
- package/lib/hosted/browser/worker/worker-env-ext.d.ts +0 -11
- package/lib/hosted/browser/worker/worker-env-ext.d.ts.map +0 -1
- package/lib/hosted/browser/worker/worker-env-ext.js +0 -43
- package/lib/hosted/browser/worker/worker-env-ext.js.map +0 -1
- package/lib/hosted/browser/worker/worker-main.d.ts +0 -2
- package/lib/hosted/browser/worker/worker-main.d.ts.map +0 -1
- package/lib/hosted/browser/worker/worker-main.js +0 -183
- package/lib/hosted/browser/worker/worker-main.js.map +0 -1
- package/lib/hosted/browser/worker/worker-plugin-module.d.ts +0 -5
- package/lib/hosted/browser/worker/worker-plugin-module.d.ts.map +0 -1
- package/lib/hosted/browser/worker/worker-plugin-module.js +0 -80
- package/lib/hosted/browser/worker/worker-plugin-module.js.map +0 -1
- package/lib/hosted/common/hosted-plugin.d.ts +0 -97
- package/lib/hosted/common/hosted-plugin.d.ts.map +0 -1
- package/lib/hosted/common/hosted-plugin.js +0 -408
- package/lib/hosted/common/hosted-plugin.js.map +0 -1
- package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts +0 -17
- package/lib/hosted/node/hosted-plugin-cli-contribution.d.ts.map +0 -1
- package/lib/hosted/node/hosted-plugin-cli-contribution.js +0 -72
- package/lib/hosted/node/hosted-plugin-cli-contribution.js.map +0 -1
- package/lib/hosted/node/hosted-plugin-localization-service.d.ts +0 -47
- package/lib/hosted/node/hosted-plugin-localization-service.d.ts.map +0 -1
- package/lib/hosted/node/hosted-plugin-localization-service.js +0 -380
- package/lib/hosted/node/hosted-plugin-localization-service.js.map +0 -1
- package/lib/hosted/node/hosted-plugin-process.d.ts +0 -42
- package/lib/hosted/node/hosted-plugin-process.d.ts.map +0 -1
- package/lib/hosted/node/hosted-plugin-process.js +0 -205
- package/lib/hosted/node/hosted-plugin-process.js.map +0 -1
- package/lib/hosted/node/hosted-plugin-protocol.d.ts +0 -22
- package/lib/hosted/node/hosted-plugin-protocol.d.ts.map +0 -1
- package/lib/hosted/node/hosted-plugin-protocol.js +0 -37
- package/lib/hosted/node/hosted-plugin-protocol.js.map +0 -1
- package/lib/hosted/node/hosted-plugin.d.ts +0 -29
- package/lib/hosted/node/hosted-plugin.d.ts.map +0 -1
- package/lib/hosted/node/hosted-plugin.js +0 -99
- package/lib/hosted/node/hosted-plugin.js.map +0 -1
- package/lib/hosted/node/metadata-scanner.d.ts +0 -18
- package/lib/hosted/node/metadata-scanner.d.ts.map +0 -1
- package/lib/hosted/node/metadata-scanner.js +0 -73
- package/lib/hosted/node/metadata-scanner.js.map +0 -1
- package/lib/hosted/node/plugin-activation-events.d.ts +0 -7
- package/lib/hosted/node/plugin-activation-events.d.ts.map +0 -1
- package/lib/hosted/node/plugin-activation-events.js +0 -96
- package/lib/hosted/node/plugin-activation-events.js.map +0 -1
- package/lib/hosted/node/plugin-deployer-handler-impl.d.ts +0 -48
- package/lib/hosted/node/plugin-deployer-handler-impl.d.ts.map +0 -1
- package/lib/hosted/node/plugin-deployer-handler-impl.js +0 -277
- package/lib/hosted/node/plugin-deployer-handler-impl.js.map +0 -1
- package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts +0 -4
- package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts.map +0 -1
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js +0 -83
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +0 -1
- package/lib/hosted/node/plugin-host-logger.d.ts +0 -3
- package/lib/hosted/node/plugin-host-logger.d.ts.map +0 -1
- package/lib/hosted/node/plugin-host-logger.js +0 -39
- package/lib/hosted/node/plugin-host-logger.js.map +0 -1
- package/lib/hosted/node/plugin-host-module.d.ts +0 -5
- package/lib/hosted/node/plugin-host-module.d.ts.map +0 -1
- package/lib/hosted/node/plugin-host-module.js +0 -75
- package/lib/hosted/node/plugin-host-module.js.map +0 -1
- package/lib/hosted/node/plugin-host-proxy.d.ts +0 -19
- package/lib/hosted/node/plugin-host-proxy.d.ts.map +0 -1
- package/lib/hosted/node/plugin-host-proxy.js +0 -71
- package/lib/hosted/node/plugin-host-proxy.js.map +0 -1
- package/lib/hosted/node/plugin-host-rpc.d.ts +0 -108
- package/lib/hosted/node/plugin-host-rpc.d.ts.map +0 -1
- package/lib/hosted/node/plugin-host-rpc.js +0 -333
- package/lib/hosted/node/plugin-host-rpc.js.map +0 -1
- package/lib/hosted/node/plugin-host.d.ts +0 -2
- package/lib/hosted/node/plugin-host.d.ts.map +0 -1
- package/lib/hosted/node/plugin-host.js +0 -114
- package/lib/hosted/node/plugin-host.js.map +0 -1
- package/lib/hosted/node/plugin-language-pack-service.d.ts +0 -8
- package/lib/hosted/node/plugin-language-pack-service.d.ts.map +0 -1
- package/lib/hosted/node/plugin-language-pack-service.js +0 -49
- package/lib/hosted/node/plugin-language-pack-service.js.map +0 -1
- package/lib/hosted/node/plugin-manifest-loader.d.ts +0 -3
- package/lib/hosted/node/plugin-manifest-loader.d.ts.map +0 -1
- package/lib/hosted/node/plugin-manifest-loader.js +0 -36
- package/lib/hosted/node/plugin-manifest-loader.js.map +0 -1
- package/lib/hosted/node/plugin-reader.d.ts +0 -26
- package/lib/hosted/node/plugin-reader.d.ts.map +0 -1
- package/lib/hosted/node/plugin-reader.js +0 -140
- package/lib/hosted/node/plugin-reader.js.map +0 -1
- package/lib/hosted/node/plugin-require-override.d.ts +0 -25
- package/lib/hosted/node/plugin-require-override.d.ts.map +0 -1
- package/lib/hosted/node/plugin-require-override.js +0 -56
- package/lib/hosted/node/plugin-require-override.js.map +0 -1
- package/lib/hosted/node/plugin-service.d.ts +0 -56
- package/lib/hosted/node/plugin-service.d.ts.map +0 -1
- package/lib/hosted/node/plugin-service.js +0 -203
- package/lib/hosted/node/plugin-service.js.map +0 -1
- package/lib/hosted/node/scanners/backend-init-theia.d.ts +0 -3
- package/lib/hosted/node/scanners/backend-init-theia.d.ts.map +0 -1
- package/lib/hosted/node/scanners/backend-init-theia.js +0 -61
- package/lib/hosted/node/scanners/backend-init-theia.js.map +0 -1
- package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts +0 -11
- package/lib/hosted/node/scanners/file-plugin-uri-factory.d.ts.map +0 -1
- package/lib/hosted/node/scanners/file-plugin-uri-factory.js +0 -36
- package/lib/hosted/node/scanners/file-plugin-uri-factory.js.map +0 -1
- package/lib/hosted/node/scanners/grammars-reader.d.ts +0 -6
- package/lib/hosted/node/scanners/grammars-reader.d.ts.map +0 -1
- package/lib/hosted/node/scanners/grammars-reader.js +0 -59
- package/lib/hosted/node/scanners/grammars-reader.js.map +0 -1
- package/lib/hosted/node/scanners/plugin-uri-factory.d.ts +0 -17
- package/lib/hosted/node/scanners/plugin-uri-factory.d.ts.map +0 -1
- package/lib/hosted/node/scanners/plugin-uri-factory.js +0 -20
- package/lib/hosted/node/scanners/plugin-uri-factory.js.map +0 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts +0 -113
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +0 -1
- package/lib/hosted/node/scanners/scanner-theia.js +0 -923
- package/lib/hosted/node/scanners/scanner-theia.js.map +0 -1
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts +0 -3
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.d.ts.map +0 -1
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js +0 -27
- package/lib/hosted/node-electron/plugin-ext-hosted-electron-backend-module.js.map +0 -1
- package/lib/hosted/node-electron/scanner-theia-electron.d.ts +0 -6
- package/lib/hosted/node-electron/scanner-theia-electron.d.ts.map +0 -1
- package/lib/hosted/node-electron/scanner-theia-electron.js +0 -36
- package/lib/hosted/node-electron/scanner-theia-electron.js.map +0 -1
- package/lib/main/browser/authentication-main.d.ts +0 -52
- package/lib/main/browser/authentication-main.d.ts.map +0 -1
- package/lib/main/browser/authentication-main.js +0 -324
- package/lib/main/browser/authentication-main.js.map +0 -1
- package/lib/main/browser/clipboard-main.d.ts +0 -10
- package/lib/main/browser/clipboard-main.d.ts.map +0 -1
- package/lib/main/browser/clipboard-main.js +0 -33
- package/lib/main/browser/clipboard-main.js.map +0 -1
- package/lib/main/browser/command-registry-main.d.ts +0 -28
- package/lib/main/browser/command-registry-main.d.ts.map +0 -1
- package/lib/main/browser/command-registry-main.js +0 -113
- package/lib/main/browser/command-registry-main.js.map +0 -1
- package/lib/main/browser/commands.d.ts +0 -13
- package/lib/main/browser/commands.d.ts.map +0 -1
- package/lib/main/browser/commands.js +0 -92
- package/lib/main/browser/commands.js.map +0 -1
- package/lib/main/browser/comments/comment-glyph-widget.d.ts +0 -13
- package/lib/main/browser/comments/comment-glyph-widget.d.ts.map +0 -1
- package/lib/main/browser/comments/comment-glyph-widget.js +0 -43
- package/lib/main/browser/comments/comment-glyph-widget.js.map +0 -1
- package/lib/main/browser/comments/comment-thread-widget.d.ts +0 -178
- package/lib/main/browser/comments/comment-thread-widget.d.ts.map +0 -1
- package/lib/main/browser/comments/comment-thread-widget.js +0 -523
- package/lib/main/browser/comments/comment-thread-widget.js.map +0 -1
- package/lib/main/browser/comments/comments-context.d.ts +0 -13
- package/lib/main/browser/comments/comments-context.d.ts.map +0 -1
- package/lib/main/browser/comments/comments-context.js +0 -56
- package/lib/main/browser/comments/comments-context.js.map +0 -1
- package/lib/main/browser/comments/comments-contribution.d.ts +0 -32
- package/lib/main/browser/comments/comments-contribution.d.ts.map +0 -1
- package/lib/main/browser/comments/comments-contribution.js +0 -258
- package/lib/main/browser/comments/comments-contribution.js.map +0 -1
- package/lib/main/browser/comments/comments-decorator.d.ts +0 -16
- package/lib/main/browser/comments/comments-decorator.d.ts.map +0 -1
- package/lib/main/browser/comments/comments-decorator.js +0 -100
- package/lib/main/browser/comments/comments-decorator.js.map +0 -1
- package/lib/main/browser/comments/comments-main.d.ts +0 -116
- package/lib/main/browser/comments/comments-main.d.ts.map +0 -1
- package/lib/main/browser/comments/comments-main.js +0 -358
- package/lib/main/browser/comments/comments-main.js.map +0 -1
- package/lib/main/browser/comments/comments-service.d.ts +0 -76
- package/lib/main/browser/comments/comments-service.d.ts.map +0 -1
- package/lib/main/browser/comments/comments-service.js +0 -118
- package/lib/main/browser/comments/comments-service.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-opener.d.ts +0 -29
- package/lib/main/browser/custom-editors/custom-editor-opener.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-opener.js +0 -196
- package/lib/main/browser/custom-editors/custom-editor-opener.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-service.d.ts +0 -17
- package/lib/main/browser/custom-editors/custom-editor-service.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-service.js +0 -98
- package/lib/main/browser/custom-editors/custom-editor-service.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts +0 -10
- package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js +0 -49
- package/lib/main/browser/custom-editors/custom-editor-undo-redo-handler.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts +0 -10
- package/lib/main/browser/custom-editors/custom-editor-widget-factory.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-widget-factory.js +0 -40
- package/lib/main/browser/custom-editors/custom-editor-widget-factory.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts +0 -35
- package/lib/main/browser/custom-editors/custom-editor-widget.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editor-widget.js +0 -108
- package/lib/main/browser/custom-editors/custom-editor-widget.js.map +0 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts +0 -123
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js +0 -380
- package/lib/main/browser/custom-editors/custom-editors-main.js.map +0 -1
- package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts +0 -22
- package/lib/main/browser/custom-editors/plugin-custom-editor-registry.d.ts.map +0 -1
- package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js +0 -128
- package/lib/main/browser/custom-editors/plugin-custom-editor-registry.js.map +0 -1
- package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts +0 -9
- package/lib/main/browser/data-transfer/data-transfer-type-converters.d.ts.map +0 -1
- package/lib/main/browser/data-transfer/data-transfer-type-converters.js +0 -63
- package/lib/main/browser/data-transfer/data-transfer-type-converters.js.map +0 -1
- package/lib/main/browser/debug/debug-main.d.ts +0 -52
- package/lib/main/browser/debug/debug-main.d.ts.map +0 -1
- package/lib/main/browser/debug/debug-main.js +0 -314
- package/lib/main/browser/debug/debug-main.js.map +0 -1
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts +0 -19
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts.map +0 -1
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.js +0 -43
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.js.map +0 -1
- package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts +0 -18
- package/lib/main/browser/debug/plugin-debug-configuration-provider.d.ts.map +0 -1
- package/lib/main/browser/debug/plugin-debug-configuration-provider.js +0 -40
- package/lib/main/browser/debug/plugin-debug-configuration-provider.js.map +0 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +0 -56
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +0 -1
- package/lib/main/browser/debug/plugin-debug-service.js +0 -365
- package/lib/main/browser/debug/plugin-debug-service.js.map +0 -1
- package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts +0 -31
- package/lib/main/browser/debug/plugin-debug-session-contribution-registry.d.ts.map +0 -1
- package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js +0 -68
- package/lib/main/browser/debug/plugin-debug-session-contribution-registry.js.map +0 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.d.ts +0 -59
- package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +0 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.js +0 -72
- package/lib/main/browser/debug/plugin-debug-session-factory.js.map +0 -1
- package/lib/main/browser/decorations/decorations-main.d.ts +0 -16
- package/lib/main/browser/decorations/decorations-main.d.ts.map +0 -1
- package/lib/main/browser/decorations/decorations-main.js +0 -120
- package/lib/main/browser/decorations/decorations-main.js.map +0 -1
- package/lib/main/browser/dialogs/modal-notification.d.ts +0 -19
- package/lib/main/browser/dialogs/modal-notification.d.ts.map +0 -1
- package/lib/main/browser/dialogs/modal-notification.js +0 -102
- package/lib/main/browser/dialogs/modal-notification.js.map +0 -1
- package/lib/main/browser/dialogs-main.d.ts +0 -17
- package/lib/main/browser/dialogs-main.d.ts.map +0 -1
- package/lib/main/browser/dialogs-main.js +0 -163
- package/lib/main/browser/dialogs-main.js.map +0 -1
- package/lib/main/browser/documents-main.d.ts +0 -51
- package/lib/main/browser/documents-main.d.ts.map +0 -1
- package/lib/main/browser/documents-main.js +0 -252
- package/lib/main/browser/documents-main.js.map +0 -1
- package/lib/main/browser/editors-and-documents-main.d.ts +0 -41
- package/lib/main/browser/editors-and-documents-main.d.ts.map +0 -1
- package/lib/main/browser/editors-and-documents-main.js +0 -357
- package/lib/main/browser/editors-and-documents-main.js.map +0 -1
- package/lib/main/browser/env-main.d.ts +0 -7
- package/lib/main/browser/env-main.d.ts.map +0 -1
- package/lib/main/browser/env-main.js +0 -64
- package/lib/main/browser/env-main.js.map +0 -1
- package/lib/main/browser/file-system-main-impl.d.ts +0 -29
- package/lib/main/browser/file-system-main-impl.d.ts.map +0 -1
- package/lib/main/browser/file-system-main-impl.js +0 -208
- package/lib/main/browser/file-system-main-impl.js.map +0 -1
- package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts +0 -25
- package/lib/main/browser/hierarchy/hierarchy-types-converters.d.ts.map +0 -1
- package/lib/main/browser/hierarchy/hierarchy-types-converters.js +0 -185
- package/lib/main/browser/hierarchy/hierarchy-types-converters.js.map +0 -1
- package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts +0 -10
- package/lib/main/browser/keybindings/keybindings-contribution-handler.d.ts.map +0 -1
- package/lib/main/browser/keybindings/keybindings-contribution-handler.js +0 -70
- package/lib/main/browser/keybindings/keybindings-contribution-handler.js.map +0 -1
- package/lib/main/browser/label-service-main.d.ts +0 -11
- package/lib/main/browser/label-service-main.d.ts.map +0 -1
- package/lib/main/browser/label-service-main.js +0 -47
- package/lib/main/browser/label-service-main.js.map +0 -1
- package/lib/main/browser/languages-main.d.ts +0 -144
- package/lib/main/browser/languages-main.d.ts.map +0 -1
- package/lib/main/browser/languages-main.js +0 -1172
- package/lib/main/browser/languages-main.js.map +0 -1
- package/lib/main/browser/lm-main.d.ts +0 -17
- package/lib/main/browser/lm-main.d.ts.map +0 -1
- package/lib/main/browser/lm-main.js +0 -154
- package/lib/main/browser/lm-main.js.map +0 -1
- package/lib/main/browser/localization-main.d.ts +0 -9
- package/lib/main/browser/localization-main.d.ts.map +0 -1
- package/lib/main/browser/localization-main.js +0 -32
- package/lib/main/browser/localization-main.js.map +0 -1
- package/lib/main/browser/logger-main.d.ts +0 -8
- package/lib/main/browser/logger-main.d.ts.map +0 -1
- package/lib/main/browser/logger-main.js +0 -53
- package/lib/main/browser/logger-main.js.map +0 -1
- package/lib/main/browser/main-context.d.ts +0 -4
- package/lib/main/browser/main-context.d.ts.map +0 -1
- package/lib/main/browser/main-context.js +0 -161
- package/lib/main/browser/main-context.js.map +0 -1
- package/lib/main/browser/main-file-system-event-service.d.ts +0 -8
- package/lib/main/browser/main-file-system-event-service.d.ts.map +0 -1
- package/lib/main/browser/main-file-system-event-service.js +0 -66
- package/lib/main/browser/main-file-system-event-service.js.map +0 -1
- package/lib/main/browser/menus/menus-contribution-handler.d.ts +0 -24
- package/lib/main/browser/menus/menus-contribution-handler.d.ts.map +0 -1
- package/lib/main/browser/menus/menus-contribution-handler.js +0 -208
- package/lib/main/browser/menus/menus-contribution-handler.js.map +0 -1
- package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts +0 -24
- package/lib/main/browser/menus/plugin-menu-command-adapter.d.ts.map +0 -1
- package/lib/main/browser/menus/plugin-menu-command-adapter.js +0 -281
- package/lib/main/browser/menus/plugin-menu-command-adapter.js.map +0 -1
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts +0 -19
- package/lib/main/browser/menus/vscode-theia-menu-mappings.d.ts.map +0 -1
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js +0 -115
- package/lib/main/browser/menus/vscode-theia-menu-mappings.js.map +0 -1
- package/lib/main/browser/message-registry-main.d.ts +0 -11
- package/lib/main/browser/message-registry-main.d.ts.map +0 -1
- package/lib/main/browser/message-registry-main.js +0 -41
- package/lib/main/browser/message-registry-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts +0 -52
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js +0 -208
- package/lib/main/browser/notebooks/notebook-documents-and-editors-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-documents-main.d.ts +0 -30
- package/lib/main/browser/notebooks/notebook-documents-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js +0 -164
- package/lib/main/browser/notebooks/notebook-documents-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-dto.d.ts +0 -18
- package/lib/main/browser/notebooks/notebook-dto.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-dto.js +0 -131
- package/lib/main/browser/notebooks/notebook-dto.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-editors-main.d.ts +0 -21
- package/lib/main/browser/notebooks/notebook-editors-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-editors-main.js +0 -77
- package/lib/main/browser/notebooks/notebook-editors-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-kernels-main.d.ts +0 -43
- package/lib/main/browser/notebooks/notebook-kernels-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-kernels-main.js +0 -274
- package/lib/main/browser/notebooks/notebook-kernels-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebook-renderers-main.d.ts +0 -12
- package/lib/main/browser/notebooks/notebook-renderers-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebook-renderers-main.js +0 -39
- package/lib/main/browser/notebooks/notebook-renderers-main.js.map +0 -1
- package/lib/main/browser/notebooks/notebooks-main.d.ts +0 -25
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +0 -1
- package/lib/main/browser/notebooks/notebooks-main.js +0 -134
- package/lib/main/browser/notebooks/notebooks-main.js.map +0 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +0 -75
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +0 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +0 -571
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +0 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts +0 -14
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +0 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +0 -660
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +0 -1
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +0 -127
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +0 -1
- package/lib/main/browser/notebooks/renderers/webview-communication.js +0 -22
- package/lib/main/browser/notebooks/renderers/webview-communication.js.map +0 -1
- package/lib/main/browser/notification-main.d.ts +0 -7
- package/lib/main/browser/notification-main.d.ts.map +0 -1
- package/lib/main/browser/notification-main.js +0 -27
- package/lib/main/browser/notification-main.js.map +0 -1
- package/lib/main/browser/output-channel-registry-main.d.ts +0 -11
- package/lib/main/browser/output-channel-registry-main.d.ts.map +0 -1
- package/lib/main/browser/output-channel-registry-main.js +0 -53
- package/lib/main/browser/output-channel-registry-main.js.map +0 -1
- package/lib/main/browser/plugin-authentication-service.d.ts +0 -14
- package/lib/main/browser/plugin-authentication-service.d.ts.map +0 -1
- package/lib/main/browser/plugin-authentication-service.js +0 -73
- package/lib/main/browser/plugin-authentication-service.js.map +0 -1
- package/lib/main/browser/plugin-contribution-handler.d.ts +0 -75
- package/lib/main/browser/plugin-contribution-handler.d.ts.map +0 -1
- package/lib/main/browser/plugin-contribution-handler.js +0 -640
- package/lib/main/browser/plugin-contribution-handler.js.map +0 -1
- package/lib/main/browser/plugin-ext-argument-processor.d.ts +0 -12
- package/lib/main/browser/plugin-ext-argument-processor.d.ts.map +0 -1
- package/lib/main/browser/plugin-ext-argument-processor.js +0 -41
- package/lib/main/browser/plugin-ext-argument-processor.js.map +0 -1
- package/lib/main/browser/plugin-ext-frontend-module.d.ts +0 -8
- package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +0 -1
- package/lib/main/browser/plugin-ext-frontend-module.js +0 -257
- package/lib/main/browser/plugin-ext-frontend-module.js.map +0 -1
- package/lib/main/browser/plugin-ext-widget.d.ts +0 -29
- package/lib/main/browser/plugin-ext-widget.d.ts.map +0 -1
- package/lib/main/browser/plugin-ext-widget.js +0 -122
- package/lib/main/browser/plugin-ext-widget.js.map +0 -1
- package/lib/main/browser/plugin-frontend-contribution.d.ts +0 -10
- package/lib/main/browser/plugin-frontend-contribution.d.ts.map +0 -1
- package/lib/main/browser/plugin-frontend-contribution.js +0 -72
- package/lib/main/browser/plugin-frontend-contribution.js.map +0 -1
- package/lib/main/browser/plugin-frontend-view-contribution.d.ts +0 -7
- package/lib/main/browser/plugin-frontend-view-contribution.d.ts.map +0 -1
- package/lib/main/browser/plugin-frontend-view-contribution.js +0 -43
- package/lib/main/browser/plugin-frontend-view-contribution.js.map +0 -1
- package/lib/main/browser/plugin-icon-service.d.ts +0 -17
- package/lib/main/browser/plugin-icon-service.d.ts.map +0 -1
- package/lib/main/browser/plugin-icon-service.js +0 -89
- package/lib/main/browser/plugin-icon-service.js.map +0 -1
- package/lib/main/browser/plugin-icon-theme-service.d.ts +0 -147
- package/lib/main/browser/plugin-icon-theme-service.d.ts.map +0 -1
- package/lib/main/browser/plugin-icon-theme-service.js +0 -554
- package/lib/main/browser/plugin-icon-theme-service.js.map +0 -1
- package/lib/main/browser/plugin-shared-style.d.ts +0 -41
- package/lib/main/browser/plugin-shared-style.d.ts.map +0 -1
- package/lib/main/browser/plugin-shared-style.js +0 -137
- package/lib/main/browser/plugin-shared-style.js.map +0 -1
- package/lib/main/browser/plugin-storage.d.ts +0 -14
- package/lib/main/browser/plugin-storage.d.ts.map +0 -1
- package/lib/main/browser/plugin-storage.js +0 -47
- package/lib/main/browser/plugin-storage.js.map +0 -1
- package/lib/main/browser/plugin-terminal-registry.d.ts +0 -5
- package/lib/main/browser/plugin-terminal-registry.d.ts.map +0 -1
- package/lib/main/browser/plugin-terminal-registry.js +0 -30
- package/lib/main/browser/plugin-terminal-registry.js.map +0 -1
- package/lib/main/browser/preference-registry-main.d.ts +0 -20
- package/lib/main/browser/preference-registry-main.d.ts.map +0 -1
- package/lib/main/browser/preference-registry-main.js +0 -107
- package/lib/main/browser/preference-registry-main.js.map +0 -1
- package/lib/main/browser/quick-open-main.d.ts +0 -36
- package/lib/main/browser/quick-open-main.d.ts.map +0 -1
- package/lib/main/browser/quick-open-main.js +0 -314
- package/lib/main/browser/quick-open-main.js.map +0 -1
- package/lib/main/browser/scm-main.d.ts +0 -108
- package/lib/main/browser/scm-main.d.ts.map +0 -1
- package/lib/main/browser/scm-main.js +0 -348
- package/lib/main/browser/scm-main.js.map +0 -1
- package/lib/main/browser/secrets-main.d.ts +0 -16
- package/lib/main/browser/secrets-main.d.ts.map +0 -1
- package/lib/main/browser/secrets-main.js +0 -91
- package/lib/main/browser/secrets-main.js.map +0 -1
- package/lib/main/browser/selection-provider-command.d.ts +0 -13
- package/lib/main/browser/selection-provider-command.d.ts.map +0 -1
- package/lib/main/browser/selection-provider-command.js +0 -49
- package/lib/main/browser/selection-provider-command.js.map +0 -1
- package/lib/main/browser/status-bar-message-registry-main.d.ts +0 -19
- package/lib/main/browser/status-bar-message-registry-main.d.ts.map +0 -1
- package/lib/main/browser/status-bar-message-registry-main.js +0 -60
- package/lib/main/browser/status-bar-message-registry-main.js.map +0 -1
- package/lib/main/browser/tabs/tabs-main.d.ts +0 -54
- package/lib/main/browser/tabs/tabs-main.d.ts.map +0 -1
- package/lib/main/browser/tabs/tabs-main.js +0 -368
- package/lib/main/browser/tabs/tabs-main.js.map +0 -1
- package/lib/main/browser/tasks-main.d.ts +0 -34
- package/lib/main/browser/tasks-main.d.ts.map +0 -1
- package/lib/main/browser/tasks-main.js +0 -209
- package/lib/main/browser/tasks-main.js.map +0 -1
- package/lib/main/browser/terminal-main.d.ts +0 -64
- package/lib/main/browser/terminal-main.d.ts.map +0 -1
- package/lib/main/browser/terminal-main.js +0 -331
- package/lib/main/browser/terminal-main.js.map +0 -1
- package/lib/main/browser/test-main.d.ts +0 -144
- package/lib/main/browser/test-main.d.ts.map +0 -1
- package/lib/main/browser/test-main.js +0 -563
- package/lib/main/browser/test-main.js.map +0 -1
- package/lib/main/browser/text-editor-main.d.ts +0 -53
- package/lib/main/browser/text-editor-main.d.ts.map +0 -1
- package/lib/main/browser/text-editor-main.js +0 -443
- package/lib/main/browser/text-editor-main.js.map +0 -1
- package/lib/main/browser/text-editor-model-service.d.ts +0 -35
- package/lib/main/browser/text-editor-model-service.d.ts.map +0 -1
- package/lib/main/browser/text-editor-model-service.js +0 -111
- package/lib/main/browser/text-editor-model-service.js.map +0 -1
- package/lib/main/browser/text-editors-main.d.ts +0 -41
- package/lib/main/browser/text-editors-main.d.ts.map +0 -1
- package/lib/main/browser/text-editors-main.js +0 -180
- package/lib/main/browser/text-editors-main.js.map +0 -1
- package/lib/main/browser/theme-icon-override.d.ts +0 -2
- package/lib/main/browser/theme-icon-override.d.ts.map +0 -1
- package/lib/main/browser/theme-icon-override.js +0 -245
- package/lib/main/browser/theme-icon-override.js.map +0 -1
- package/lib/main/browser/theming-main.d.ts +0 -10
- package/lib/main/browser/theming-main.d.ts.map +0 -1
- package/lib/main/browser/theming-main.js +0 -36
- package/lib/main/browser/theming-main.js.map +0 -1
- package/lib/main/browser/timeline-main.d.ts +0 -14
- package/lib/main/browser/timeline-main.d.ts.map +0 -1
- package/lib/main/browser/timeline-main.js +0 -51
- package/lib/main/browser/timeline-main.js.map +0 -1
- package/lib/main/browser/uri-main.d.ts +0 -16
- package/lib/main/browser/uri-main.d.ts.map +0 -1
- package/lib/main/browser/uri-main.js +0 -64
- package/lib/main/browser/uri-main.js.map +0 -1
- package/lib/main/browser/view/dnd-file-content-store.d.ts +0 -8
- package/lib/main/browser/view/dnd-file-content-store.d.ts.map +0 -1
- package/lib/main/browser/view/dnd-file-content-store.js +0 -47
- package/lib/main/browser/view/dnd-file-content-store.js.map +0 -1
- package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts +0 -12
- package/lib/main/browser/view/plugin-tree-view-node-label-provider.d.ts.map +0 -1
- package/lib/main/browser/view/plugin-tree-view-node-label-provider.js +0 -83
- package/lib/main/browser/view/plugin-tree-view-node-label-provider.js.map +0 -1
- package/lib/main/browser/view/plugin-view-registry.d.ts +0 -112
- package/lib/main/browser/view/plugin-view-registry.d.ts.map +0 -1
- package/lib/main/browser/view/plugin-view-registry.js +0 -901
- package/lib/main/browser/view/plugin-view-registry.js.map +0 -1
- package/lib/main/browser/view/plugin-view-widget.d.ts +0 -53
- package/lib/main/browser/view/plugin-view-widget.d.ts.map +0 -1
- package/lib/main/browser/view/plugin-view-widget.js +0 -164
- package/lib/main/browser/view/plugin-view-widget.js.map +0 -1
- package/lib/main/browser/view/tree-view-decorator-service.d.ts +0 -31
- package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +0 -1
- package/lib/main/browser/view/tree-view-decorator-service.js +0 -58
- package/lib/main/browser/view/tree-view-decorator-service.js.map +0 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +0 -166
- package/lib/main/browser/view/tree-view-widget.d.ts.map +0 -1
- package/lib/main/browser/view/tree-view-widget.js +0 -848
- package/lib/main/browser/view/tree-view-widget.js.map +0 -1
- package/lib/main/browser/view/tree-views-main.d.ts +0 -35
- package/lib/main/browser/view/tree-views-main.d.ts.map +0 -1
- package/lib/main/browser/view/tree-views-main.js +0 -179
- package/lib/main/browser/view/tree-views-main.js.map +0 -1
- package/lib/main/browser/view/view-context-key-service.d.ts +0 -17
- package/lib/main/browser/view/view-context-key-service.d.ts.map +0 -1
- package/lib/main/browser/view/view-context-key-service.js +0 -63
- package/lib/main/browser/view/view-context-key-service.js.map +0 -1
- package/lib/main/browser/webview/webview-context-keys.d.ts +0 -17
- package/lib/main/browser/webview/webview-context-keys.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-context-keys.js +0 -65
- package/lib/main/browser/webview/webview-context-keys.js.map +0 -1
- package/lib/main/browser/webview/webview-environment.d.ts +0 -17
- package/lib/main/browser/webview/webview-environment.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-environment.js +0 -89
- package/lib/main/browser/webview/webview-environment.js.map +0 -1
- package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts +0 -5
- package/lib/main/browser/webview/webview-frontend-preference-contribution.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-frontend-preference-contribution.js +0 -40
- package/lib/main/browser/webview/webview-frontend-preference-contribution.js.map +0 -1
- package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts +0 -12
- package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-frontend-security-warnings.js +0 -66
- package/lib/main/browser/webview/webview-frontend-security-warnings.js.map +0 -1
- package/lib/main/browser/webview/webview-resource-cache.d.ts +0 -18
- package/lib/main/browser/webview/webview-resource-cache.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-resource-cache.js +0 -83
- package/lib/main/browser/webview/webview-resource-cache.js.map +0 -1
- package/lib/main/browser/webview/webview-secondary-window-support.d.ts +0 -8
- package/lib/main/browser/webview/webview-secondary-window-support.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-secondary-window-support.js +0 -52
- package/lib/main/browser/webview/webview-secondary-window-support.js.map +0 -1
- package/lib/main/browser/webview/webview-theme-data-provider.d.ts +0 -31
- package/lib/main/browser/webview/webview-theme-data-provider.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-theme-data-provider.js +0 -125
- package/lib/main/browser/webview/webview-theme-data-provider.js.map +0 -1
- package/lib/main/browser/webview/webview-widget-factory.d.ts +0 -9
- package/lib/main/browser/webview/webview-widget-factory.d.ts.map +0 -1
- package/lib/main/browser/webview/webview-widget-factory.js +0 -40
- package/lib/main/browser/webview/webview-widget-factory.js.map +0 -1
- package/lib/main/browser/webview/webview.d.ts +0 -150
- package/lib/main/browser/webview/webview.d.ts.map +0 -1
- package/lib/main/browser/webview/webview.js +0 -591
- package/lib/main/browser/webview/webview.js.map +0 -1
- package/lib/main/browser/webview-views/webview-views-main.d.ts +0 -34
- package/lib/main/browser/webview-views/webview-views-main.d.ts.map +0 -1
- package/lib/main/browser/webview-views/webview-views-main.js +0 -133
- package/lib/main/browser/webview-views/webview-views-main.js.map +0 -1
- package/lib/main/browser/webview-views/webview-views.d.ts +0 -16
- package/lib/main/browser/webview-views/webview-views.d.ts.map +0 -1
- package/lib/main/browser/webview-views/webview-views.js +0 -23
- package/lib/main/browser/webview-views/webview-views.js.map +0 -1
- package/lib/main/browser/webviews-main.d.ts +0 -40
- package/lib/main/browser/webviews-main.d.ts.map +0 -1
- package/lib/main/browser/webviews-main.js +0 -247
- package/lib/main/browser/webviews-main.js.map +0 -1
- package/lib/main/browser/window-activity-tracker.d.ts +0 -20
- package/lib/main/browser/window-activity-tracker.d.ts.map +0 -1
- package/lib/main/browser/window-activity-tracker.js +0 -86
- package/lib/main/browser/window-activity-tracker.js.map +0 -1
- package/lib/main/browser/window-state-main.d.ts +0 -18
- package/lib/main/browser/window-state-main.d.ts.map +0 -1
- package/lib/main/browser/window-state-main.js +0 -69
- package/lib/main/browser/window-state-main.js.map +0 -1
- package/lib/main/browser/workspace-main.d.ts +0 -98
- package/lib/main/browser/workspace-main.d.ts.map +0 -1
- package/lib/main/browser/workspace-main.js +0 -384
- package/lib/main/browser/workspace-main.js.map +0 -1
- package/lib/main/common/basic-message-registry-main.d.ts +0 -14
- package/lib/main/common/basic-message-registry-main.d.ts.map +0 -1
- package/lib/main/common/basic-message-registry-main.js +0 -50
- package/lib/main/common/basic-message-registry-main.js.map +0 -1
- package/lib/main/common/basic-notification-main.d.ts +0 -19
- package/lib/main/common/basic-notification-main.d.ts.map +0 -1
- package/lib/main/common/basic-notification-main.js +0 -75
- package/lib/main/common/basic-notification-main.js.map +0 -1
- package/lib/main/common/env-main.d.ts +0 -11
- package/lib/main/common/env-main.d.ts.map +0 -1
- package/lib/main/common/env-main.js +0 -40
- package/lib/main/common/env-main.js.map +0 -1
- package/lib/main/common/plugin-paths-protocol.d.ts +0 -9
- package/lib/main/common/plugin-paths-protocol.d.ts.map +0 -1
- package/lib/main/common/plugin-paths-protocol.js +0 -22
- package/lib/main/common/plugin-paths-protocol.js.map +0 -1
- package/lib/main/common/plugin-theia-environment.d.ts +0 -8
- package/lib/main/common/plugin-theia-environment.d.ts.map +0 -1
- package/lib/main/common/plugin-theia-environment.js +0 -40
- package/lib/main/common/plugin-theia-environment.js.map +0 -1
- package/lib/main/common/webview-preferences.d.ts +0 -13
- package/lib/main/common/webview-preferences.d.ts.map +0 -1
- package/lib/main/common/webview-preferences.js +0 -47
- package/lib/main/common/webview-preferences.js.map +0 -1
- package/lib/main/common/webview-protocol.d.ts +0 -13
- package/lib/main/common/webview-protocol.d.ts.map +0 -1
- package/lib/main/common/webview-protocol.js +0 -32
- package/lib/main/common/webview-protocol.js.map +0 -1
- package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts +0 -4
- package/lib/main/electron-browser/plugin-ext-frontend-electron-module.d.ts.map +0 -1
- package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js +0 -26
- package/lib/main/electron-browser/plugin-ext-frontend-electron-module.js.map +0 -1
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts +0 -24
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.d.ts.map +0 -1
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.js +0 -54
- package/lib/main/electron-browser/webview/electron-webview-widget-factory.js.map +0 -1
- package/lib/main/node/errors.spec.d.ts +0 -2
- package/lib/main/node/errors.spec.d.ts.map +0 -1
- package/lib/main/node/errors.spec.js +0 -36
- package/lib/main/node/errors.spec.js.map +0 -1
- package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts +0 -19
- package/lib/main/node/handlers/plugin-theia-directory-handler.d.ts.map +0 -1
- package/lib/main/node/handlers/plugin-theia-directory-handler.js +0 -130
- package/lib/main/node/handlers/plugin-theia-directory-handler.js.map +0 -1
- package/lib/main/node/handlers/plugin-theia-file-handler.d.ts +0 -11
- package/lib/main/node/handlers/plugin-theia-file-handler.d.ts.map +0 -1
- package/lib/main/node/handlers/plugin-theia-file-handler.js +0 -67
- package/lib/main/node/handlers/plugin-theia-file-handler.js.map +0 -1
- package/lib/main/node/paths/const.d.ts +0 -6
- package/lib/main/node/paths/const.d.ts.map +0 -1
- package/lib/main/node/paths/const.js +0 -25
- package/lib/main/node/paths/const.js.map +0 -1
- package/lib/main/node/paths/plugin-paths-service.d.ts +0 -26
- package/lib/main/node/paths/plugin-paths-service.d.ts.map +0 -1
- package/lib/main/node/paths/plugin-paths-service.js +0 -153
- package/lib/main/node/paths/plugin-paths-service.js.map +0 -1
- package/lib/main/node/plugin-cli-contribution.d.ts +0 -22
- package/lib/main/node/plugin-cli-contribution.d.ts.map +0 -1
- package/lib/main/node/plugin-cli-contribution.js +0 -80
- package/lib/main/node/plugin-cli-contribution.js.map +0 -1
- package/lib/main/node/plugin-deployer-contribution.d.ts +0 -9
- package/lib/main/node/plugin-deployer-contribution.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-contribution.js +0 -41
- package/lib/main/node/plugin-deployer-contribution.js.map +0 -1
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts +0 -8
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.js +0 -45
- package/lib/main/node/plugin-deployer-directory-handler-context-impl.js.map +0 -1
- package/lib/main/node/plugin-deployer-entry-impl.d.ts +0 -35
- package/lib/main/node/plugin-deployer-entry-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-entry-impl.js +0 -112
- package/lib/main/node/plugin-deployer-entry-impl.js.map +0 -1
- package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts +0 -8
- package/lib/main/node/plugin-deployer-file-handler-context-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-file-handler-context-impl.js +0 -32
- package/lib/main/node/plugin-deployer-file-handler-context-impl.js.map +0 -1
- package/lib/main/node/plugin-deployer-impl.d.ts +0 -64
- package/lib/main/node/plugin-deployer-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-impl.js +0 -350
- package/lib/main/node/plugin-deployer-impl.js.map +0 -1
- package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts +0 -30
- package/lib/main/node/plugin-deployer-proxy-entry-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-proxy-entry-impl.js +0 -93
- package/lib/main/node/plugin-deployer-proxy-entry-impl.js.map +0 -1
- package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts +0 -16
- package/lib/main/node/plugin-deployer-resolver-context-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-deployer-resolver-context-impl.js +0 -43
- package/lib/main/node/plugin-deployer-resolver-context-impl.js.map +0 -1
- package/lib/main/node/plugin-ext-backend-module.d.ts +0 -3
- package/lib/main/node/plugin-ext-backend-module.d.ts.map +0 -1
- package/lib/main/node/plugin-ext-backend-module.js +0 -84
- package/lib/main/node/plugin-ext-backend-module.js.map +0 -1
- package/lib/main/node/plugin-github-resolver.d.ts +0 -24
- package/lib/main/node/plugin-github-resolver.d.ts.map +0 -1
- package/lib/main/node/plugin-github-resolver.js +0 -136
- package/lib/main/node/plugin-github-resolver.js.map +0 -1
- package/lib/main/node/plugin-http-resolver.d.ts +0 -21
- package/lib/main/node/plugin-http-resolver.d.ts.map +0 -1
- package/lib/main/node/plugin-http-resolver.js +0 -92
- package/lib/main/node/plugin-http-resolver.js.map +0 -1
- package/lib/main/node/plugin-localization-server.d.ts +0 -10
- package/lib/main/node/plugin-localization-server.d.ts.map +0 -1
- package/lib/main/node/plugin-localization-server.js +0 -51
- package/lib/main/node/plugin-localization-server.js.map +0 -1
- package/lib/main/node/plugin-mgmt-cli-contribution.d.ts +0 -13
- package/lib/main/node/plugin-mgmt-cli-contribution.d.ts.map +0 -1
- package/lib/main/node/plugin-mgmt-cli-contribution.js +0 -63
- package/lib/main/node/plugin-mgmt-cli-contribution.js.map +0 -1
- package/lib/main/node/plugin-remote-cli-contribution.d.ts +0 -8
- package/lib/main/node/plugin-remote-cli-contribution.d.ts.map +0 -1
- package/lib/main/node/plugin-remote-cli-contribution.js +0 -40
- package/lib/main/node/plugin-remote-cli-contribution.js.map +0 -1
- package/lib/main/node/plugin-remote-copy-contribution.d.ts +0 -7
- package/lib/main/node/plugin-remote-copy-contribution.d.ts.map +0 -1
- package/lib/main/node/plugin-remote-copy-contribution.js +0 -44
- package/lib/main/node/plugin-remote-copy-contribution.js.map +0 -1
- package/lib/main/node/plugin-server-impl.d.ts +0 -24
- package/lib/main/node/plugin-server-impl.d.ts.map +0 -1
- package/lib/main/node/plugin-server-impl.js +0 -88
- package/lib/main/node/plugin-server-impl.js.map +0 -1
- package/lib/main/node/plugin-service.d.ts +0 -24
- package/lib/main/node/plugin-service.d.ts.map +0 -1
- package/lib/main/node/plugin-service.js +0 -102
- package/lib/main/node/plugin-service.js.map +0 -1
- package/lib/main/node/plugin-theia-deployer-participant.d.ts +0 -7
- package/lib/main/node/plugin-theia-deployer-participant.d.ts.map +0 -1
- package/lib/main/node/plugin-theia-deployer-participant.js +0 -36
- package/lib/main/node/plugin-theia-deployer-participant.js.map +0 -1
- package/lib/main/node/plugin-uninstallation-manager.d.ts +0 -27
- package/lib/main/node/plugin-uninstallation-manager.d.ts.map +0 -1
- package/lib/main/node/plugin-uninstallation-manager.js +0 -133
- package/lib/main/node/plugin-uninstallation-manager.js.map +0 -1
- package/lib/main/node/plugins-key-value-storage.d.ts +0 -29
- package/lib/main/node/plugins-key-value-storage.d.ts.map +0 -1
- package/lib/main/node/plugins-key-value-storage.js +0 -160
- package/lib/main/node/plugins-key-value-storage.js.map +0 -1
- package/lib/main/node/plugins-key-value-storage.spec.d.ts +0 -17
- package/lib/main/node/plugins-key-value-storage.spec.d.ts.map +0 -1
- package/lib/main/node/plugins-key-value-storage.spec.js +0 -101
- package/lib/main/node/plugins-key-value-storage.spec.js.map +0 -1
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts +0 -8
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.d.ts.map +0 -1
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js +0 -39
- package/lib/main/node/resolvers/local-directory-plugin-deployer-resolver.js.map +0 -1
- package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts +0 -9
- package/lib/main/node/resolvers/local-plugin-deployer-resolver.d.ts.map +0 -1
- package/lib/main/node/resolvers/local-plugin-deployer-resolver.js +0 -55
- package/lib/main/node/resolvers/local-plugin-deployer-resolver.js.map +0 -1
- package/lib/main/node/temp-dir-util.d.ts +0 -3
- package/lib/main/node/temp-dir-util.d.ts.map +0 -1
- package/lib/main/node/temp-dir-util.js +0 -40
- package/lib/main/node/temp-dir-util.js.map +0 -1
- package/lib/main/node/webview-backend-security-warnings.d.ts +0 -6
- package/lib/main/node/webview-backend-security-warnings.d.ts.map +0 -1
- package/lib/main/node/webview-backend-security-warnings.js +0 -47
- package/lib/main/node/webview-backend-security-warnings.js.map +0 -1
- package/lib/plugin/authentication-ext.d.ts +0 -32
- package/lib/plugin/authentication-ext.d.ts.map +0 -1
- package/lib/plugin/authentication-ext.js +0 -107
- package/lib/plugin/authentication-ext.js.map +0 -1
- package/lib/plugin/clipboard-ext.d.ts +0 -11
- package/lib/plugin/clipboard-ext.d.ts.map +0 -1
- package/lib/plugin/clipboard-ext.js +0 -48
- package/lib/plugin/clipboard-ext.js.map +0 -1
- package/lib/plugin/command-registry.d.ts +0 -42
- package/lib/plugin/command-registry.d.ts.map +0 -1
- package/lib/plugin/command-registry.js +0 -183
- package/lib/plugin/command-registry.js.map +0 -1
- package/lib/plugin/comments.d.ts +0 -96
- package/lib/plugin/comments.d.ts.map +0 -1
- package/lib/plugin/comments.js +0 -406
- package/lib/plugin/comments.js.map +0 -1
- package/lib/plugin/custom-editors.d.ts +0 -46
- package/lib/plugin/custom-editors.d.ts.map +0 -1
- package/lib/plugin/custom-editors.js +0 -254
- package/lib/plugin/custom-editors.js.map +0 -1
- package/lib/plugin/debug/debug-ext.d.ts +0 -97
- package/lib/plugin/debug/debug-ext.d.ts.map +0 -1
- package/lib/plugin/debug/debug-ext.js +0 -459
- package/lib/plugin/debug/debug-ext.js.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +0 -11
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-creator.js +0 -42
- package/lib/plugin/debug/plugin-debug-adapter-creator.js.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +0 -27
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-session.js +0 -97
- package/lib/plugin/debug/plugin-debug-adapter-session.js.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +0 -13
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +0 -1
- package/lib/plugin/debug/plugin-debug-adapter-tracker.js +0 -78
- package/lib/plugin/debug/plugin-debug-adapter-tracker.js.map +0 -1
- package/lib/plugin/decorations.d.ts +0 -16
- package/lib/plugin/decorations.d.ts.map +0 -1
- package/lib/plugin/decorations.js +0 -115
- package/lib/plugin/decorations.js.map +0 -1
- package/lib/plugin/dialogs.d.ts +0 -11
- package/lib/plugin/dialogs.d.ts.map +0 -1
- package/lib/plugin/dialogs.js +0 -92
- package/lib/plugin/dialogs.js.map +0 -1
- package/lib/plugin/document-data.d.ts +0 -41
- package/lib/plugin/document-data.d.ts.map +0 -1
- package/lib/plugin/document-data.js +0 -316
- package/lib/plugin/document-data.js.map +0 -1
- package/lib/plugin/documents.d.ts +0 -63
- package/lib/plugin/documents.d.ts.map +0 -1
- package/lib/plugin/documents.js +0 -272
- package/lib/plugin/documents.js.map +0 -1
- package/lib/plugin/editors-and-documents.d.ts +0 -27
- package/lib/plugin/editors-and-documents.d.ts.map +0 -1
- package/lib/plugin/editors-and-documents.js +0 -150
- package/lib/plugin/editors-and-documents.js.map +0 -1
- package/lib/plugin/env.d.ts +0 -41
- package/lib/plugin/env.d.ts.map +0 -1
- package/lib/plugin/env.js +0 -114
- package/lib/plugin/env.js.map +0 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts +0 -56
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +0 -1
- package/lib/plugin/file-system-event-service-ext-impl.js +0 -206
- package/lib/plugin/file-system-event-service-ext-impl.js.map +0 -1
- package/lib/plugin/file-system-ext-impl.d.ts +0 -82
- package/lib/plugin/file-system-ext-impl.d.ts.map +0 -1
- package/lib/plugin/file-system-ext-impl.js +0 -361
- package/lib/plugin/file-system-ext-impl.js.map +0 -1
- package/lib/plugin/file-system-watcher.spec.d.ts +0 -2
- package/lib/plugin/file-system-watcher.spec.d.ts.map +0 -1
- package/lib/plugin/file-system-watcher.spec.js +0 -108
- package/lib/plugin/file-system-watcher.spec.js.map +0 -1
- package/lib/plugin/known-commands.d.ts +0 -6
- package/lib/plugin/known-commands.d.ts.map +0 -1
- package/lib/plugin/known-commands.js +0 -402
- package/lib/plugin/known-commands.js.map +0 -1
- package/lib/plugin/known-commands.spec.d.ts +0 -2
- package/lib/plugin/known-commands.spec.d.ts.map +0 -1
- package/lib/plugin/known-commands.spec.js +0 -43
- package/lib/plugin/known-commands.spec.js.map +0 -1
- package/lib/plugin/label-service.d.ts +0 -12
- package/lib/plugin/label-service.d.ts.map +0 -1
- package/lib/plugin/label-service.js +0 -36
- package/lib/plugin/label-service.js.map +0 -1
- package/lib/plugin/languages/call-hierarchy.d.ts +0 -21
- package/lib/plugin/languages/call-hierarchy.d.ts.map +0 -1
- package/lib/plugin/languages/call-hierarchy.js +0 -102
- package/lib/plugin/languages/call-hierarchy.js.map +0 -1
- package/lib/plugin/languages/code-action.d.ts +0 -25
- package/lib/plugin/languages/code-action.d.ts.map +0 -1
- package/lib/plugin/languages/code-action.js +0 -138
- package/lib/plugin/languages/code-action.js.map +0 -1
- package/lib/plugin/languages/color.d.ts +0 -13
- package/lib/plugin/languages/color.d.ts.map +0 -1
- package/lib/plugin/languages/color.js +0 -59
- package/lib/plugin/languages/color.js.map +0 -1
- package/lib/plugin/languages/completion.d.ts +0 -21
- package/lib/plugin/languages/completion.d.ts.map +0 -1
- package/lib/plugin/languages/completion.js +0 -165
- package/lib/plugin/languages/completion.js.map +0 -1
- package/lib/plugin/languages/declaration.d.ts +0 -12
- package/lib/plugin/languages/declaration.d.ts.map +0 -1
- package/lib/plugin/languages/declaration.js +0 -59
- package/lib/plugin/languages/declaration.js.map +0 -1
- package/lib/plugin/languages/definition.d.ts +0 -12
- package/lib/plugin/languages/definition.d.ts.map +0 -1
- package/lib/plugin/languages/definition.js +0 -59
- package/lib/plugin/languages/definition.js.map +0 -1
- package/lib/plugin/languages/diagnostics.d.ts +0 -51
- package/lib/plugin/languages/diagnostics.d.ts.map +0 -1
- package/lib/plugin/languages/diagnostics.js +0 -288
- package/lib/plugin/languages/diagnostics.js.map +0 -1
- package/lib/plugin/languages/document-drop-edit.d.ts +0 -16
- package/lib/plugin/languages/document-drop-edit.d.ts.map +0 -1
- package/lib/plugin/languages/document-drop-edit.js +0 -23
- package/lib/plugin/languages/document-drop-edit.js.map +0 -1
- package/lib/plugin/languages/document-formatting.d.ts +0 -11
- package/lib/plugin/languages/document-formatting.d.ts.map +0 -1
- package/lib/plugin/languages/document-formatting.js +0 -41
- package/lib/plugin/languages/document-formatting.js.map +0 -1
- package/lib/plugin/languages/document-highlight.d.ts +0 -13
- package/lib/plugin/languages/document-highlight.d.ts.map +0 -1
- package/lib/plugin/languages/document-highlight.js +0 -51
- package/lib/plugin/languages/document-highlight.js.map +0 -1
- package/lib/plugin/languages/evaluatable-expression.d.ts +0 -12
- package/lib/plugin/languages/evaluatable-expression.d.ts.map +0 -1
- package/lib/plugin/languages/evaluatable-expression.js +0 -41
- package/lib/plugin/languages/evaluatable-expression.js.map +0 -1
- package/lib/plugin/languages/folding.d.ts +0 -11
- package/lib/plugin/languages/folding.d.ts.map +0 -1
- package/lib/plugin/languages/folding.js +0 -40
- package/lib/plugin/languages/folding.js.map +0 -1
- package/lib/plugin/languages/hover.d.ts +0 -12
- package/lib/plugin/languages/hover.d.ts.map +0 -1
- package/lib/plugin/languages/hover.js +0 -49
- package/lib/plugin/languages/hover.js.map +0 -1
- package/lib/plugin/languages/implementation.d.ts +0 -12
- package/lib/plugin/languages/implementation.d.ts.map +0 -1
- package/lib/plugin/languages/implementation.js +0 -59
- package/lib/plugin/languages/implementation.js.map +0 -1
- package/lib/plugin/languages/inlay-hints.d.ts +0 -20
- package/lib/plugin/languages/inlay-hints.d.ts.map +0 -1
- package/lib/plugin/languages/inlay-hints.js +0 -128
- package/lib/plugin/languages/inlay-hints.js.map +0 -1
- package/lib/plugin/languages/inline-completion.d.ts +0 -21
- package/lib/plugin/languages/inline-completion.d.ts.map +0 -1
- package/lib/plugin/languages/inline-completion.js +0 -94
- package/lib/plugin/languages/inline-completion.js.map +0 -1
- package/lib/plugin/languages/inline-values.d.ts +0 -11
- package/lib/plugin/languages/inline-values.d.ts.map +0 -1
- package/lib/plugin/languages/inline-values.js +0 -45
- package/lib/plugin/languages/inline-values.js.map +0 -1
- package/lib/plugin/languages/lens.d.ts +0 -20
- package/lib/plugin/languages/lens.d.ts.map +0 -1
- package/lib/plugin/languages/lens.js +0 -90
- package/lib/plugin/languages/lens.js.map +0 -1
- package/lib/plugin/languages/link-provider.d.ts +0 -15
- package/lib/plugin/languages/link-provider.d.ts.map +0 -1
- package/lib/plugin/languages/link-provider.js +0 -74
- package/lib/plugin/languages/link-provider.js.map +0 -1
- package/lib/plugin/languages/linked-editing-range.d.ts +0 -12
- package/lib/plugin/languages/linked-editing-range.d.ts.map +0 -1
- package/lib/plugin/languages/linked-editing-range.js +0 -41
- package/lib/plugin/languages/linked-editing-range.js.map +0 -1
- package/lib/plugin/languages/on-type-formatting.d.ts +0 -12
- package/lib/plugin/languages/on-type-formatting.d.ts.map +0 -1
- package/lib/plugin/languages/on-type-formatting.js +0 -42
- package/lib/plugin/languages/on-type-formatting.js.map +0 -1
- package/lib/plugin/languages/outline.d.ts +0 -21
- package/lib/plugin/languages/outline.d.ts.map +0 -1
- package/lib/plugin/languages/outline.js +0 -116
- package/lib/plugin/languages/outline.js.map +0 -1
- package/lib/plugin/languages/range-formatting.d.ts +0 -11
- package/lib/plugin/languages/range-formatting.d.ts.map +0 -1
- package/lib/plugin/languages/range-formatting.js +0 -42
- package/lib/plugin/languages/range-formatting.js.map +0 -1
- package/lib/plugin/languages/reference.d.ts +0 -12
- package/lib/plugin/languages/reference.d.ts.map +0 -1
- package/lib/plugin/languages/reference.js +0 -48
- package/lib/plugin/languages/reference.js.map +0 -1
- package/lib/plugin/languages/rename.d.ts +0 -15
- package/lib/plugin/languages/rename.d.ts.map +0 -1
- package/lib/plugin/languages/rename.js +0 -115
- package/lib/plugin/languages/rename.js.map +0 -1
- package/lib/plugin/languages/selection-range.d.ts +0 -12
- package/lib/plugin/languages/selection-range.d.ts.map +0 -1
- package/lib/plugin/languages/selection-range.js +0 -66
- package/lib/plugin/languages/selection-range.js.map +0 -1
- package/lib/plugin/languages/semantic-highlighting.d.ts +0 -29
- package/lib/plugin/languages/semantic-highlighting.d.ts.map +0 -1
- package/lib/plugin/languages/semantic-highlighting.js +0 -176
- package/lib/plugin/languages/semantic-highlighting.js.map +0 -1
- package/lib/plugin/languages/signature.d.ts +0 -16
- package/lib/plugin/languages/signature.d.ts.map +0 -1
- package/lib/plugin/languages/signature.js +0 -72
- package/lib/plugin/languages/signature.js.map +0 -1
- package/lib/plugin/languages/type-definition.d.ts +0 -12
- package/lib/plugin/languages/type-definition.d.ts.map +0 -1
- package/lib/plugin/languages/type-definition.js +0 -59
- package/lib/plugin/languages/type-definition.js.map +0 -1
- package/lib/plugin/languages/type-hierarchy.d.ts +0 -19
- package/lib/plugin/languages/type-hierarchy.d.ts.map +0 -1
- package/lib/plugin/languages/type-hierarchy.js +0 -96
- package/lib/plugin/languages/type-hierarchy.js.map +0 -1
- package/lib/plugin/languages/util.d.ts +0 -5
- package/lib/plugin/languages/util.d.ts.map +0 -1
- package/lib/plugin/languages/util.js +0 -28
- package/lib/plugin/languages/util.js.map +0 -1
- package/lib/plugin/languages/workspace-symbol.d.ts +0 -9
- package/lib/plugin/languages/workspace-symbol.d.ts.map +0 -1
- package/lib/plugin/languages/workspace-symbol.js +0 -62
- package/lib/plugin/languages/workspace-symbol.js.map +0 -1
- package/lib/plugin/languages-utils.d.ts +0 -7
- package/lib/plugin/languages-utils.d.ts.map +0 -1
- package/lib/plugin/languages-utils.js +0 -66
- package/lib/plugin/languages-utils.js.map +0 -1
- package/lib/plugin/languages.d.ts +0 -128
- package/lib/plugin/languages.d.ts.map +0 -1
- package/lib/plugin/languages.js +0 -713
- package/lib/plugin/languages.js.map +0 -1
- package/lib/plugin/lm-ext.d.ts +0 -28
- package/lib/plugin/lm-ext.d.ts.map +0 -1
- package/lib/plugin/lm-ext.js +0 -131
- package/lib/plugin/lm-ext.js.map +0 -1
- package/lib/plugin/localization-ext.d.ts +0 -19
- package/lib/plugin/localization-ext.d.ts.map +0 -1
- package/lib/plugin/localization-ext.js +0 -94
- package/lib/plugin/localization-ext.js.map +0 -1
- package/lib/plugin/logger.d.ts +0 -16
- package/lib/plugin/logger.d.ts.map +0 -1
- package/lib/plugin/logger.js +0 -56
- package/lib/plugin/logger.js.map +0 -1
- package/lib/plugin/markdown-string.d.ts +0 -25
- package/lib/plugin/markdown-string.d.ts.map +0 -1
- package/lib/plugin/markdown-string.js +0 -106
- package/lib/plugin/markdown-string.js.map +0 -1
- package/lib/plugin/message-registry.d.ts +0 -10
- package/lib/plugin/message-registry.d.ts.map +0 -1
- package/lib/plugin/message-registry.js +0 -77
- package/lib/plugin/message-registry.js.map +0 -1
- package/lib/plugin/node/debug/debug.spec.d.ts +0 -2
- package/lib/plugin/node/debug/debug.spec.d.ts.map +0 -1
- package/lib/plugin/node/debug/debug.spec.js +0 -88
- package/lib/plugin/node/debug/debug.spec.js.map +0 -1
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +0 -18
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +0 -1
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js +0 -155
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.js.map +0 -1
- package/lib/plugin/node/env-node-ext.d.ts +0 -17
- package/lib/plugin/node/env-node-ext.d.ts.map +0 -1
- package/lib/plugin/node/env-node-ext.js +0 -64
- package/lib/plugin/node/env-node-ext.js.map +0 -1
- package/lib/plugin/node/plugin-container-module.d.ts +0 -75
- package/lib/plugin/node/plugin-container-module.d.ts.map +0 -1
- package/lib/plugin/node/plugin-container-module.js +0 -115
- package/lib/plugin/node/plugin-container-module.js.map +0 -1
- package/lib/plugin/notebook/notebook-document.d.ts +0 -60
- package/lib/plugin/notebook/notebook-document.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-document.js +0 -383
- package/lib/plugin/notebook/notebook-document.js.map +0 -1
- package/lib/plugin/notebook/notebook-documents.d.ts +0 -17
- package/lib/plugin/notebook/notebook-documents.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-documents.js +0 -48
- package/lib/plugin/notebook/notebook-documents.js.map +0 -1
- package/lib/plugin/notebook/notebook-editor.d.ts +0 -21
- package/lib/plugin/notebook/notebook-editor.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-editor.js +0 -99
- package/lib/plugin/notebook/notebook-editor.js.map +0 -1
- package/lib/plugin/notebook/notebook-editors.d.ts +0 -14
- package/lib/plugin/notebook/notebook-editors.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-editors.js +0 -65
- package/lib/plugin/notebook/notebook-editors.js.map +0 -1
- package/lib/plugin/notebook/notebook-kernels.d.ts +0 -40
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-kernels.js +0 -536
- package/lib/plugin/notebook/notebook-kernels.js.map +0 -1
- package/lib/plugin/notebook/notebook-renderers.d.ts +0 -14
- package/lib/plugin/notebook/notebook-renderers.d.ts.map +0 -1
- package/lib/plugin/notebook/notebook-renderers.js +0 -63
- package/lib/plugin/notebook/notebook-renderers.js.map +0 -1
- package/lib/plugin/notebook/notebooks.d.ts +0 -62
- package/lib/plugin/notebook/notebooks.d.ts.map +0 -1
- package/lib/plugin/notebook/notebooks.js +0 -381
- package/lib/plugin/notebook/notebooks.js.map +0 -1
- package/lib/plugin/notification.d.ts +0 -18
- package/lib/plugin/notification.d.ts.map +0 -1
- package/lib/plugin/notification.js +0 -68
- package/lib/plugin/notification.js.map +0 -1
- package/lib/plugin/output-channel/log-output-channel.d.ts +0 -24
- package/lib/plugin/output-channel/log-output-channel.d.ts.map +0 -1
- package/lib/plugin/output-channel/log-output-channel.js +0 -101
- package/lib/plugin/output-channel/log-output-channel.js.map +0 -1
- package/lib/plugin/output-channel/output-channel-item.d.ts +0 -18
- package/lib/plugin/output-channel/output-channel-item.d.ts.map +0 -1
- package/lib/plugin/output-channel/output-channel-item.js +0 -60
- package/lib/plugin/output-channel/output-channel-item.js.map +0 -1
- package/lib/plugin/output-channel-registry.d.ts +0 -14
- package/lib/plugin/output-channel-registry.d.ts.map +0 -1
- package/lib/plugin/output-channel-registry.js +0 -45
- package/lib/plugin/output-channel-registry.js.map +0 -1
- package/lib/plugin/path.d.ts +0 -3
- package/lib/plugin/path.d.ts.map +0 -1
- package/lib/plugin/path.js +0 -60
- package/lib/plugin/path.js.map +0 -1
- package/lib/plugin/path.spec.d.ts +0 -2
- package/lib/plugin/path.spec.d.ts.map +0 -1
- package/lib/plugin/path.spec.js +0 -35
- package/lib/plugin/path.spec.js.map +0 -1
- package/lib/plugin/plugin-context.d.ts +0 -60
- package/lib/plugin/plugin-context.d.ts.map +0 -1
- package/lib/plugin/plugin-context.js +0 -1349
- package/lib/plugin/plugin-context.js.map +0 -1
- package/lib/plugin/plugin-icon-path.d.ts +0 -13
- package/lib/plugin/plugin-icon-path.d.ts.map +0 -1
- package/lib/plugin/plugin-icon-path.js +0 -54
- package/lib/plugin/plugin-icon-path.js.map +0 -1
- package/lib/plugin/plugin-manager.d.ts +0 -96
- package/lib/plugin/plugin-manager.d.ts.map +0 -1
- package/lib/plugin/plugin-manager.js +0 -434
- package/lib/plugin/plugin-manager.js.map +0 -1
- package/lib/plugin/plugin-storage.d.ts +0 -45
- package/lib/plugin/plugin-storage.d.ts.map +0 -1
- package/lib/plugin/plugin-storage.js +0 -109
- package/lib/plugin/plugin-storage.js.map +0 -1
- package/lib/plugin/preference-registry.d.ts +0 -41
- package/lib/plugin/preference-registry.d.ts.map +0 -1
- package/lib/plugin/preference-registry.js +0 -337
- package/lib/plugin/preference-registry.js.map +0 -1
- package/lib/plugin/preference-registry.spec.d.ts +0 -2
- package/lib/plugin/preference-registry.spec.d.ts.map +0 -1
- package/lib/plugin/preference-registry.spec.js +0 -247
- package/lib/plugin/preference-registry.spec.js.map +0 -1
- package/lib/plugin/prefix-sum-computer.d.ts +0 -31
- package/lib/plugin/prefix-sum-computer.d.ts.map +0 -1
- package/lib/plugin/prefix-sum-computer.js +0 -173
- package/lib/plugin/prefix-sum-computer.js.map +0 -1
- package/lib/plugin/quick-open.d.ts +0 -182
- package/lib/plugin/quick-open.d.ts.map +0 -1
- package/lib/plugin/quick-open.js +0 -605
- package/lib/plugin/quick-open.js.map +0 -1
- package/lib/plugin/scm.d.ts +0 -55
- package/lib/plugin/scm.d.ts.map +0 -1
- package/lib/plugin/scm.js +0 -740
- package/lib/plugin/scm.js.map +0 -1
- package/lib/plugin/secrets-ext.d.ts +0 -43
- package/lib/plugin/secrets-ext.d.ts.map +0 -1
- package/lib/plugin/secrets-ext.js +0 -84
- package/lib/plugin/secrets-ext.js.map +0 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +0 -52
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +0 -1
- package/lib/plugin/status-bar/status-bar-item.js +0 -190
- package/lib/plugin/status-bar/status-bar-item.js.map +0 -1
- package/lib/plugin/status-bar-message-registry.d.ts +0 -26
- package/lib/plugin/status-bar-message-registry.d.ts.map +0 -1
- package/lib/plugin/status-bar-message-registry.js +0 -100
- package/lib/plugin/status-bar-message-registry.js.map +0 -1
- package/lib/plugin/tabs.d.ts +0 -23
- package/lib/plugin/tabs.d.ts.map +0 -1
- package/lib/plugin/tabs.js +0 -363
- package/lib/plugin/tabs.js.map +0 -1
- package/lib/plugin/tasks/task-provider.d.ts +0 -9
- package/lib/plugin/tasks/task-provider.d.ts.map +0 -1
- package/lib/plugin/tasks/task-provider.js +0 -54
- package/lib/plugin/tasks/task-provider.js.map +0 -1
- package/lib/plugin/tasks/tasks.d.ts +0 -47
- package/lib/plugin/tasks/tasks.d.ts.map +0 -1
- package/lib/plugin/tasks/tasks.js +0 -216
- package/lib/plugin/tasks/tasks.js.map +0 -1
- package/lib/plugin/telemetry-ext.d.ts +0 -44
- package/lib/plugin/telemetry-ext.d.ts.map +0 -1
- package/lib/plugin/telemetry-ext.js +0 -252
- package/lib/plugin/telemetry-ext.js.map +0 -1
- package/lib/plugin/terminal-ext.d.ts +0 -115
- package/lib/plugin/terminal-ext.d.ts.map +0 -1
- package/lib/plugin/terminal-ext.js +0 -502
- package/lib/plugin/terminal-ext.js.map +0 -1
- package/lib/plugin/test-item.d.ts +0 -47
- package/lib/plugin/test-item.d.ts.map +0 -1
- package/lib/plugin/test-item.js +0 -188
- package/lib/plugin/test-item.js.map +0 -1
- package/lib/plugin/tests.d.ts +0 -141
- package/lib/plugin/tests.d.ts.map +0 -1
- package/lib/plugin/tests.js +0 -469
- package/lib/plugin/tests.js.map +0 -1
- package/lib/plugin/text-editor.d.ts +0 -109
- package/lib/plugin/text-editor.d.ts.map +0 -1
- package/lib/plugin/text-editor.js +0 -474
- package/lib/plugin/text-editor.js.map +0 -1
- package/lib/plugin/text-editors.d.ts +0 -44
- package/lib/plugin/text-editors.d.ts.map +0 -1
- package/lib/plugin/text-editors.js +0 -203
- package/lib/plugin/text-editors.js.map +0 -1
- package/lib/plugin/theming.d.ts +0 -16
- package/lib/plugin/theming.d.ts.map +0 -1
- package/lib/plugin/theming.js +0 -62
- package/lib/plugin/theming.js.map +0 -1
- package/lib/plugin/timeline.d.ts +0 -21
- package/lib/plugin/timeline.d.ts.map +0 -1
- package/lib/plugin/timeline.js +0 -158
- package/lib/plugin/timeline.js.map +0 -1
- package/lib/plugin/tree/tree-views.d.ts +0 -108
- package/lib/plugin/tree/tree-views.d.ts.map +0 -1
- package/lib/plugin/tree/tree-views.js +0 -610
- package/lib/plugin/tree/tree-views.js.map +0 -1
- package/lib/plugin/type-converters.d.ts +0 -216
- package/lib/plugin/type-converters.d.ts.map +0 -1
- package/lib/plugin/type-converters.js +0 -1737
- package/lib/plugin/type-converters.js.map +0 -1
- package/lib/plugin/type-converters.spec.d.ts +0 -2
- package/lib/plugin/type-converters.spec.d.ts.map +0 -1
- package/lib/plugin/type-converters.spec.js +0 -396
- package/lib/plugin/type-converters.spec.js.map +0 -1
- package/lib/plugin/types-impl.d.ts +0 -2110
- package/lib/plugin/types-impl.d.ts.map +0 -1
- package/lib/plugin/types-impl.js +0 -3608
- package/lib/plugin/types-impl.js.map +0 -1
- package/lib/plugin/types-impl.spec.d.ts +0 -2
- package/lib/plugin/types-impl.spec.d.ts.map +0 -1
- package/lib/plugin/types-impl.spec.js +0 -79
- package/lib/plugin/types-impl.spec.js.map +0 -1
- package/lib/plugin/uri-ext.d.ts +0 -13
- package/lib/plugin/uri-ext.d.ts.map +0 -1
- package/lib/plugin/uri-ext.js +0 -49
- package/lib/plugin/uri-ext.js.map +0 -1
- package/lib/plugin/webview-views.d.ts +0 -56
- package/lib/plugin/webview-views.d.ts.map +0 -1
- package/lib/plugin/webview-views.js +0 -157
- package/lib/plugin/webview-views.js.map +0 -1
- package/lib/plugin/webviews.d.ts +0 -113
- package/lib/plugin/webviews.d.ts.map +0 -1
- package/lib/plugin/webviews.js +0 -393
- package/lib/plugin/webviews.js.map +0 -1
- package/lib/plugin/window-state.d.ts +0 -19
- package/lib/plugin/window-state.d.ts.map +0 -1
- package/lib/plugin/window-state.js +0 -67
- package/lib/plugin/window-state.js.map +0 -1
- package/lib/plugin/word-helper.d.ts +0 -22
- package/lib/plugin/word-helper.d.ts.map +0 -1
- package/lib/plugin/word-helper.js +0 -126
- package/lib/plugin/word-helper.js.map +0 -1
- package/lib/plugin/workspace.d.ts +0 -75
- package/lib/plugin/workspace.d.ts.map +0 -1
- package/lib/plugin/workspace.js +0 -476
- package/lib/plugin/workspace.js.map +0 -1
- package/lib/plugin-ext-backend-electron-module.d.ts +0 -4
- package/lib/plugin-ext-backend-electron-module.d.ts.map +0 -1
- package/lib/plugin-ext-backend-electron-module.js +0 -25
- package/lib/plugin-ext-backend-electron-module.js.map +0 -1
- package/lib/plugin-ext-backend-module.d.ts +0 -4
- package/lib/plugin-ext-backend-module.d.ts.map +0 -1
- package/lib/plugin-ext-backend-module.js +0 -25
- package/lib/plugin-ext-backend-module.js.map +0 -1
- package/lib/plugin-ext-frontend-electron-module.d.ts +0 -3
- package/lib/plugin-ext-frontend-electron-module.d.ts.map +0 -1
- package/lib/plugin-ext-frontend-electron-module.js +0 -20
- package/lib/plugin-ext-frontend-electron-module.js.map +0 -1
- package/lib/plugin-ext-frontend-module.d.ts +0 -3
- package/lib/plugin-ext-frontend-module.d.ts.map +0 -1
- package/lib/plugin-ext-frontend-module.js +0 -20
- package/lib/plugin-ext-frontend-module.js.map +0 -1
|
@@ -1,1737 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 Red Hat, Inc. and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.isModelCallHierarchyOutgoingCall = exports.isModelCallHierarchyIncomingCall = exports.isModelCallHierarchyItem = exports.isUriComponents = exports.isModelRange = exports.isModelLocation = exports.toMergedSymbol = exports.toSymbolTag = exports.fromSymbolTag = exports.toDocumentSymbol = exports.fromDocumentSymbol = exports.toCodeActionTriggerKind = exports.SymbolKind = exports.fromWorkspaceEdit = exports.SignatureHelp = exports.SignatureInformation = exports.ParameterInformation = exports.fromDocumentHighlight = exports.fromDocumentHighlightKind = exports.DocumentLink = exports.fromDefinitionLink = exports.fromTextDocumentShowOptions = exports.fromLocationToLanguageServerLocation = exports.fromLocation = exports.toInlineValueContext = exports.fromInlineValue = exports.fromEvaluatableExpression = exports.fromHover = exports.convertCode = exports.convertDiagnosticToMarkerData = exports.fromTextEdit = exports.toCompletionItemKind = exports.fromCompletionItemKind = exports.fromGlobPattern = exports.fromDocumentSelector = exports.toMarkdown = exports.fromMarkdownOrString = exports.fromMarkdown = exports.fromManyMarkdown = exports.fromRangeOrRangeWithMessage = exports.isDecorationOptionsArr = exports.toPosition = exports.fromPosition = exports.fromRange = exports.toRange = exports.fromSelection = exports.toSelection = exports.toWebviewPanelShowOptions = exports.fromViewColumn = exports.toViewColumn = void 0;
|
|
19
|
-
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.pluginToPluginInfo = exports.pathOrURIToURI = exports.ViewColumn = exports.ThemableDecorationAttachmentRenderOptions = exports.ThemableDecorationRenderOptions = exports.DecorationRangeBehavior = exports.DecorationRenderOptions = exports.convertToTransferQuickPickItems = exports.convertQuickInputButton = exports.convertIconPath = exports.fromColorPresentation = exports.toColor = exports.fromColor = exports.fromFoldingRangeKind = exports.fromFoldingRange = exports.fromSelectionRange = exports.toSymbolInformation = exports.fromSymbolInformation = exports.getShellExecutionOptions = exports.getShellArgs = exports.getCustomExecution = exports.getShellExecution = exports.getProcessExecution = exports.fromCustomExecution = exports.fromShellExecution = exports.fromProcessExecution = exports.toTask = exports.fromTask = exports.toWorkspaceFolder = exports.toTypeHierarchyItem = exports.fromTypeHierarchyItem = exports.isModelTypeHierarchyItem = exports.toCallHierarchyOutgoingCall = exports.toCallHierarchyIncomingCall = exports.toCallHierarchyItem = exports.fromCallHierarchyItem = exports.fromHierarchyItem = exports.toLocation = void 0;
|
|
20
|
-
exports.TestItem = exports.TestMessageStackFrame = exports.TestMessage = exports.NotebookKernelSourceAction = exports.NotebookRange = void 0;
|
|
21
|
-
const lstypes = require("@theia/core/shared/vscode-languageserver-protocol");
|
|
22
|
-
const types_impl_1 = require("./types-impl");
|
|
23
|
-
const rpc = require("../common/plugin-api-rpc");
|
|
24
|
-
const plugin_api_rpc_1 = require("../common/plugin-api-rpc");
|
|
25
|
-
const model = require("../common/plugin-api-rpc-model");
|
|
26
|
-
const markdown_string_1 = require("./markdown-string");
|
|
27
|
-
const types = require("./types-impl");
|
|
28
|
-
const arrays_1 = require("../common/arrays");
|
|
29
|
-
const common_1 = require("@theia/core/lib/common");
|
|
30
|
-
const notebooks = require("@theia/notebook/lib/common");
|
|
31
|
-
const buffer_1 = require("@theia/core/lib/common/buffer");
|
|
32
|
-
const common_2 = require("@theia/notebook/lib/common");
|
|
33
|
-
const markdown_rendering_1 = require("@theia/core/lib/common/markdown-rendering");
|
|
34
|
-
const plugin_icon_path_1 = require("./plugin-icon-path");
|
|
35
|
-
const SIDE_GROUP = -2;
|
|
36
|
-
const ACTIVE_GROUP = -1;
|
|
37
|
-
function toViewColumn(ep) {
|
|
38
|
-
if (typeof ep !== 'number') {
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
if (ep === plugin_api_rpc_1.EditorPosition.ONE) {
|
|
42
|
-
return types.ViewColumn.One;
|
|
43
|
-
}
|
|
44
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.TWO) {
|
|
45
|
-
return types.ViewColumn.Two;
|
|
46
|
-
}
|
|
47
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.THREE) {
|
|
48
|
-
return types.ViewColumn.Three;
|
|
49
|
-
}
|
|
50
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.FOUR) {
|
|
51
|
-
return types.ViewColumn.Four;
|
|
52
|
-
}
|
|
53
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.FIVE) {
|
|
54
|
-
return types.ViewColumn.Five;
|
|
55
|
-
}
|
|
56
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.SIX) {
|
|
57
|
-
return types.ViewColumn.Six;
|
|
58
|
-
}
|
|
59
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.SEVEN) {
|
|
60
|
-
return types.ViewColumn.Seven;
|
|
61
|
-
}
|
|
62
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.EIGHT) {
|
|
63
|
-
return types.ViewColumn.Eight;
|
|
64
|
-
}
|
|
65
|
-
else if (ep === plugin_api_rpc_1.EditorPosition.NINE) {
|
|
66
|
-
return types.ViewColumn.Nine;
|
|
67
|
-
}
|
|
68
|
-
return undefined;
|
|
69
|
-
}
|
|
70
|
-
exports.toViewColumn = toViewColumn;
|
|
71
|
-
function fromViewColumn(column) {
|
|
72
|
-
if (typeof column === 'number' && column >= types.ViewColumn.One) {
|
|
73
|
-
return column - 1;
|
|
74
|
-
}
|
|
75
|
-
if (column === types.ViewColumn.Beside) {
|
|
76
|
-
return SIDE_GROUP;
|
|
77
|
-
}
|
|
78
|
-
return ACTIVE_GROUP;
|
|
79
|
-
}
|
|
80
|
-
exports.fromViewColumn = fromViewColumn;
|
|
81
|
-
function toWebviewPanelShowOptions(options) {
|
|
82
|
-
if (typeof options === 'object') {
|
|
83
|
-
const showOptions = options;
|
|
84
|
-
return {
|
|
85
|
-
area: showOptions.area ? showOptions.area : types.WebviewPanelTargetArea.Main,
|
|
86
|
-
viewColumn: showOptions.viewColumn ? fromViewColumn(showOptions.viewColumn) : undefined,
|
|
87
|
-
preserveFocus: showOptions.preserveFocus ? showOptions.preserveFocus : false
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
area: types.WebviewPanelTargetArea.Main,
|
|
92
|
-
viewColumn: fromViewColumn(options),
|
|
93
|
-
preserveFocus: false
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
exports.toWebviewPanelShowOptions = toWebviewPanelShowOptions;
|
|
97
|
-
function toSelection(selection) {
|
|
98
|
-
const { selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn } = selection;
|
|
99
|
-
const start = new types.Position(selectionStartLineNumber - 1, selectionStartColumn - 1);
|
|
100
|
-
const end = new types.Position(positionLineNumber - 1, positionColumn - 1);
|
|
101
|
-
return new types.Selection(start, end);
|
|
102
|
-
}
|
|
103
|
-
exports.toSelection = toSelection;
|
|
104
|
-
function fromSelection(selection) {
|
|
105
|
-
const { active, anchor } = selection;
|
|
106
|
-
return {
|
|
107
|
-
selectionStartLineNumber: anchor.line + 1,
|
|
108
|
-
selectionStartColumn: anchor.character + 1,
|
|
109
|
-
positionLineNumber: active.line + 1,
|
|
110
|
-
positionColumn: active.character + 1
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
exports.fromSelection = fromSelection;
|
|
114
|
-
function toRange(range) {
|
|
115
|
-
const { startLineNumber, startColumn, endLineNumber, endColumn } = range;
|
|
116
|
-
return new types.Range(startLineNumber - 1, startColumn - 1, endLineNumber - 1, endColumn - 1);
|
|
117
|
-
}
|
|
118
|
-
exports.toRange = toRange;
|
|
119
|
-
function fromRange(range) {
|
|
120
|
-
if (!range) {
|
|
121
|
-
return undefined;
|
|
122
|
-
}
|
|
123
|
-
const { start, end } = range;
|
|
124
|
-
return {
|
|
125
|
-
startLineNumber: start.line + 1,
|
|
126
|
-
startColumn: start.character + 1,
|
|
127
|
-
endLineNumber: end.line + 1,
|
|
128
|
-
endColumn: end.character + 1
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
exports.fromRange = fromRange;
|
|
132
|
-
function fromPosition(position) {
|
|
133
|
-
if (!position) {
|
|
134
|
-
return undefined;
|
|
135
|
-
}
|
|
136
|
-
return { lineNumber: position.line + 1, column: position.character + 1 };
|
|
137
|
-
}
|
|
138
|
-
exports.fromPosition = fromPosition;
|
|
139
|
-
function toPosition(position) {
|
|
140
|
-
if (!position) {
|
|
141
|
-
return undefined;
|
|
142
|
-
}
|
|
143
|
-
return new types.Position(position.lineNumber - 1, position.column - 1);
|
|
144
|
-
}
|
|
145
|
-
exports.toPosition = toPosition;
|
|
146
|
-
function isDecorationOptions(arg) {
|
|
147
|
-
return (0, common_1.isObject)(arg) && typeof arg.range !== 'undefined';
|
|
148
|
-
}
|
|
149
|
-
function isDecorationOptionsArr(something) {
|
|
150
|
-
if (something.length === 0) {
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
153
|
-
return isDecorationOptions(something[0]) ? true : false;
|
|
154
|
-
}
|
|
155
|
-
exports.isDecorationOptionsArr = isDecorationOptionsArr;
|
|
156
|
-
function fromRangeOrRangeWithMessage(ranges) {
|
|
157
|
-
if (isDecorationOptionsArr(ranges)) {
|
|
158
|
-
return ranges.map(r => {
|
|
159
|
-
let hoverMessage;
|
|
160
|
-
if (Array.isArray(r.hoverMessage)) {
|
|
161
|
-
hoverMessage = fromManyMarkdown(r.hoverMessage);
|
|
162
|
-
}
|
|
163
|
-
else if (r.hoverMessage) {
|
|
164
|
-
hoverMessage = fromMarkdown(r.hoverMessage);
|
|
165
|
-
}
|
|
166
|
-
else {
|
|
167
|
-
hoverMessage = undefined;
|
|
168
|
-
}
|
|
169
|
-
return {
|
|
170
|
-
range: fromRange(r.range),
|
|
171
|
-
hoverMessage: hoverMessage,
|
|
172
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
173
|
-
renderOptions: /* URI vs Uri */ r.renderOptions
|
|
174
|
-
};
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
return ranges.map(r => ({ range: fromRange(r) }));
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
exports.fromRangeOrRangeWithMessage = fromRangeOrRangeWithMessage;
|
|
182
|
-
function fromManyMarkdown(markup) {
|
|
183
|
-
return markup.map(fromMarkdown);
|
|
184
|
-
}
|
|
185
|
-
exports.fromManyMarkdown = fromManyMarkdown;
|
|
186
|
-
function isCodeblock(arg) {
|
|
187
|
-
return (0, common_1.isObject)(arg)
|
|
188
|
-
&& typeof arg.language === 'string'
|
|
189
|
-
&& typeof arg.value === 'string';
|
|
190
|
-
}
|
|
191
|
-
function fromMarkdown(markup) {
|
|
192
|
-
if (isCodeblock(markup)) {
|
|
193
|
-
const { language, value } = markup;
|
|
194
|
-
return { value: '```' + language + '\n' + value + '\n```\n' };
|
|
195
|
-
}
|
|
196
|
-
else if (markup instanceof markdown_string_1.MarkdownString) {
|
|
197
|
-
return markup.toJSON();
|
|
198
|
-
}
|
|
199
|
-
else if (markdown_rendering_1.MarkdownString.is(markup)) {
|
|
200
|
-
return markup;
|
|
201
|
-
}
|
|
202
|
-
else if (typeof markup === 'string') {
|
|
203
|
-
return { value: markup };
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
return { value: '' };
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
exports.fromMarkdown = fromMarkdown;
|
|
210
|
-
function fromMarkdownOrString(value) {
|
|
211
|
-
if (value === undefined) {
|
|
212
|
-
return undefined;
|
|
213
|
-
}
|
|
214
|
-
else if (typeof value === 'string') {
|
|
215
|
-
return value;
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
return fromMarkdown(value);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
exports.fromMarkdownOrString = fromMarkdownOrString;
|
|
222
|
-
function toMarkdown(value) {
|
|
223
|
-
const implemented = new markdown_string_1.MarkdownString(value.value, value.supportThemeIcons);
|
|
224
|
-
implemented.isTrusted = value.isTrusted;
|
|
225
|
-
implemented.supportHtml = value.supportHtml;
|
|
226
|
-
implemented.baseUri = value.baseUri && types_impl_1.URI.revive(implemented.baseUri);
|
|
227
|
-
return implemented;
|
|
228
|
-
}
|
|
229
|
-
exports.toMarkdown = toMarkdown;
|
|
230
|
-
function fromDocumentSelector(selector) {
|
|
231
|
-
if (!selector) {
|
|
232
|
-
return undefined;
|
|
233
|
-
}
|
|
234
|
-
else if ((0, arrays_1.isReadonlyArray)(selector)) {
|
|
235
|
-
return selector.map(fromDocumentSelector);
|
|
236
|
-
}
|
|
237
|
-
else if (typeof selector === 'string') {
|
|
238
|
-
return selector;
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
return {
|
|
242
|
-
language: selector.language,
|
|
243
|
-
scheme: selector.scheme,
|
|
244
|
-
pattern: fromGlobPattern(selector.pattern)
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
exports.fromDocumentSelector = fromDocumentSelector;
|
|
249
|
-
function fromGlobPattern(pattern) {
|
|
250
|
-
if (typeof pattern === 'string') {
|
|
251
|
-
return pattern;
|
|
252
|
-
}
|
|
253
|
-
if (isRelativePattern(pattern)) {
|
|
254
|
-
return new types.RelativePattern(pattern.baseUri, pattern.pattern);
|
|
255
|
-
}
|
|
256
|
-
return pattern;
|
|
257
|
-
}
|
|
258
|
-
exports.fromGlobPattern = fromGlobPattern;
|
|
259
|
-
function isRelativePattern(obj) {
|
|
260
|
-
const rp = obj;
|
|
261
|
-
return rp && typeof rp.baseUri === 'string' && typeof rp.pattern === 'string';
|
|
262
|
-
}
|
|
263
|
-
function fromCompletionItemKind(kind) {
|
|
264
|
-
switch (kind) {
|
|
265
|
-
case types.CompletionItemKind.Method: return model.CompletionItemKind.Method;
|
|
266
|
-
case types.CompletionItemKind.Function: return model.CompletionItemKind.Function;
|
|
267
|
-
case types.CompletionItemKind.Constructor: return model.CompletionItemKind.Constructor;
|
|
268
|
-
case types.CompletionItemKind.Field: return model.CompletionItemKind.Field;
|
|
269
|
-
case types.CompletionItemKind.Variable: return model.CompletionItemKind.Variable;
|
|
270
|
-
case types.CompletionItemKind.Class: return model.CompletionItemKind.Class;
|
|
271
|
-
case types.CompletionItemKind.Interface: return model.CompletionItemKind.Interface;
|
|
272
|
-
case types.CompletionItemKind.Struct: return model.CompletionItemKind.Struct;
|
|
273
|
-
case types.CompletionItemKind.Module: return model.CompletionItemKind.Module;
|
|
274
|
-
case types.CompletionItemKind.Property: return model.CompletionItemKind.Property;
|
|
275
|
-
case types.CompletionItemKind.Unit: return model.CompletionItemKind.Unit;
|
|
276
|
-
case types.CompletionItemKind.Value: return model.CompletionItemKind.Value;
|
|
277
|
-
case types.CompletionItemKind.Constant: return model.CompletionItemKind.Constant;
|
|
278
|
-
case types.CompletionItemKind.Enum: return model.CompletionItemKind.Enum;
|
|
279
|
-
case types.CompletionItemKind.EnumMember: return model.CompletionItemKind.EnumMember;
|
|
280
|
-
case types.CompletionItemKind.Keyword: return model.CompletionItemKind.Keyword;
|
|
281
|
-
case types.CompletionItemKind.Snippet: return model.CompletionItemKind.Snippet;
|
|
282
|
-
case types.CompletionItemKind.Text: return model.CompletionItemKind.Text;
|
|
283
|
-
case types.CompletionItemKind.Color: return model.CompletionItemKind.Color;
|
|
284
|
-
case types.CompletionItemKind.File: return model.CompletionItemKind.File;
|
|
285
|
-
case types.CompletionItemKind.Reference: return model.CompletionItemKind.Reference;
|
|
286
|
-
case types.CompletionItemKind.Folder: return model.CompletionItemKind.Folder;
|
|
287
|
-
case types.CompletionItemKind.Event: return model.CompletionItemKind.Event;
|
|
288
|
-
case types.CompletionItemKind.Operator: return model.CompletionItemKind.Operator;
|
|
289
|
-
case types.CompletionItemKind.TypeParameter: return model.CompletionItemKind.TypeParameter;
|
|
290
|
-
case types.CompletionItemKind.User: return model.CompletionItemKind.User;
|
|
291
|
-
case types.CompletionItemKind.Issue: return model.CompletionItemKind.Issue;
|
|
292
|
-
}
|
|
293
|
-
return model.CompletionItemKind.Property;
|
|
294
|
-
}
|
|
295
|
-
exports.fromCompletionItemKind = fromCompletionItemKind;
|
|
296
|
-
function toCompletionItemKind(kind) {
|
|
297
|
-
switch (kind) {
|
|
298
|
-
case model.CompletionItemKind.Method: return types.CompletionItemKind.Method;
|
|
299
|
-
case model.CompletionItemKind.Function: return types.CompletionItemKind.Function;
|
|
300
|
-
case model.CompletionItemKind.Constructor: return types.CompletionItemKind.Constructor;
|
|
301
|
-
case model.CompletionItemKind.Field: return types.CompletionItemKind.Field;
|
|
302
|
-
case model.CompletionItemKind.Variable: return types.CompletionItemKind.Variable;
|
|
303
|
-
case model.CompletionItemKind.Class: return types.CompletionItemKind.Class;
|
|
304
|
-
case model.CompletionItemKind.Interface: return types.CompletionItemKind.Interface;
|
|
305
|
-
case model.CompletionItemKind.Struct: return types.CompletionItemKind.Struct;
|
|
306
|
-
case model.CompletionItemKind.Module: return types.CompletionItemKind.Module;
|
|
307
|
-
case model.CompletionItemKind.Property: return types.CompletionItemKind.Property;
|
|
308
|
-
case model.CompletionItemKind.Unit: return types.CompletionItemKind.Unit;
|
|
309
|
-
case model.CompletionItemKind.Value: return types.CompletionItemKind.Value;
|
|
310
|
-
case model.CompletionItemKind.Constant: return types.CompletionItemKind.Constant;
|
|
311
|
-
case model.CompletionItemKind.Enum: return types.CompletionItemKind.Enum;
|
|
312
|
-
case model.CompletionItemKind.EnumMember: return types.CompletionItemKind.EnumMember;
|
|
313
|
-
case model.CompletionItemKind.Keyword: return types.CompletionItemKind.Keyword;
|
|
314
|
-
case model.CompletionItemKind.Snippet: return types.CompletionItemKind.Snippet;
|
|
315
|
-
case model.CompletionItemKind.Text: return types.CompletionItemKind.Text;
|
|
316
|
-
case model.CompletionItemKind.Color: return types.CompletionItemKind.Color;
|
|
317
|
-
case model.CompletionItemKind.File: return types.CompletionItemKind.File;
|
|
318
|
-
case model.CompletionItemKind.Reference: return types.CompletionItemKind.Reference;
|
|
319
|
-
case model.CompletionItemKind.Folder: return types.CompletionItemKind.Folder;
|
|
320
|
-
case model.CompletionItemKind.Event: return types.CompletionItemKind.Event;
|
|
321
|
-
case model.CompletionItemKind.Operator: return types.CompletionItemKind.Operator;
|
|
322
|
-
case model.CompletionItemKind.TypeParameter: return types.CompletionItemKind.TypeParameter;
|
|
323
|
-
case model.CompletionItemKind.User: return types.CompletionItemKind.User;
|
|
324
|
-
case model.CompletionItemKind.Issue: return types.CompletionItemKind.Issue;
|
|
325
|
-
}
|
|
326
|
-
return types.CompletionItemKind.Property;
|
|
327
|
-
}
|
|
328
|
-
exports.toCompletionItemKind = toCompletionItemKind;
|
|
329
|
-
function fromTextEdit(edit) {
|
|
330
|
-
return {
|
|
331
|
-
text: edit.newText,
|
|
332
|
-
range: fromRange(edit.range)
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
exports.fromTextEdit = fromTextEdit;
|
|
336
|
-
function fromSnippetTextEdit(edit) {
|
|
337
|
-
return {
|
|
338
|
-
text: edit.snippet.value,
|
|
339
|
-
range: fromRange(edit.range),
|
|
340
|
-
insertAsSnippet: true,
|
|
341
|
-
keepWhitespace: edit.keepWhitespace
|
|
342
|
-
};
|
|
343
|
-
}
|
|
344
|
-
function convertDiagnosticToMarkerData(diagnostic) {
|
|
345
|
-
return {
|
|
346
|
-
code: convertCode(diagnostic.code),
|
|
347
|
-
severity: convertSeverity(diagnostic.severity),
|
|
348
|
-
message: diagnostic.message,
|
|
349
|
-
source: diagnostic.source,
|
|
350
|
-
startLineNumber: diagnostic.range.start.line + 1,
|
|
351
|
-
startColumn: diagnostic.range.start.character + 1,
|
|
352
|
-
endLineNumber: diagnostic.range.end.line + 1,
|
|
353
|
-
endColumn: diagnostic.range.end.character + 1,
|
|
354
|
-
relatedInformation: convertRelatedInformation(diagnostic.relatedInformation),
|
|
355
|
-
tags: convertTags(diagnostic.tags)
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
exports.convertDiagnosticToMarkerData = convertDiagnosticToMarkerData;
|
|
359
|
-
function convertCode(code) {
|
|
360
|
-
if (typeof code === 'number') {
|
|
361
|
-
return String(code);
|
|
362
|
-
}
|
|
363
|
-
if (typeof code === 'string' || typeof code === 'undefined') {
|
|
364
|
-
return code;
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return String(code.value);
|
|
368
|
-
}
|
|
369
|
-
;
|
|
370
|
-
}
|
|
371
|
-
exports.convertCode = convertCode;
|
|
372
|
-
function convertSeverity(severity) {
|
|
373
|
-
switch (severity) {
|
|
374
|
-
case types.DiagnosticSeverity.Error: return types.MarkerSeverity.Error;
|
|
375
|
-
case types.DiagnosticSeverity.Warning: return types.MarkerSeverity.Warning;
|
|
376
|
-
case types.DiagnosticSeverity.Information: return types.MarkerSeverity.Info;
|
|
377
|
-
case types.DiagnosticSeverity.Hint: return types.MarkerSeverity.Hint;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
function convertRelatedInformation(diagnosticsRelatedInformation) {
|
|
381
|
-
if (!diagnosticsRelatedInformation) {
|
|
382
|
-
return undefined;
|
|
383
|
-
}
|
|
384
|
-
const relatedInformation = [];
|
|
385
|
-
for (const item of diagnosticsRelatedInformation) {
|
|
386
|
-
relatedInformation.push({
|
|
387
|
-
resource: item.location.uri.toString(),
|
|
388
|
-
message: item.message,
|
|
389
|
-
startLineNumber: item.location.range.start.line + 1,
|
|
390
|
-
startColumn: item.location.range.start.character + 1,
|
|
391
|
-
endLineNumber: item.location.range.end.line + 1,
|
|
392
|
-
endColumn: item.location.range.end.character + 1
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
return relatedInformation;
|
|
396
|
-
}
|
|
397
|
-
function convertTags(tags) {
|
|
398
|
-
if (!tags) {
|
|
399
|
-
return undefined;
|
|
400
|
-
}
|
|
401
|
-
const markerTags = [];
|
|
402
|
-
for (const tag of tags) {
|
|
403
|
-
switch (tag) {
|
|
404
|
-
case types.DiagnosticTag.Unnecessary:
|
|
405
|
-
markerTags.push(types.MarkerTag.Unnecessary);
|
|
406
|
-
break;
|
|
407
|
-
case types.DiagnosticTag.Deprecated:
|
|
408
|
-
markerTags.push(types.MarkerTag.Deprecated);
|
|
409
|
-
break;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
return markerTags;
|
|
413
|
-
}
|
|
414
|
-
function fromHover(hover) {
|
|
415
|
-
return {
|
|
416
|
-
range: fromRange(hover.range),
|
|
417
|
-
contents: fromManyMarkdown(hover.contents)
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
exports.fromHover = fromHover;
|
|
421
|
-
function fromEvaluatableExpression(evaluatableExpression) {
|
|
422
|
-
return {
|
|
423
|
-
range: fromRange(evaluatableExpression.range),
|
|
424
|
-
expression: evaluatableExpression.expression
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
exports.fromEvaluatableExpression = fromEvaluatableExpression;
|
|
428
|
-
function fromInlineValue(inlineValue) {
|
|
429
|
-
if (inlineValue instanceof types_impl_1.InlineValueText) {
|
|
430
|
-
return {
|
|
431
|
-
type: 'text',
|
|
432
|
-
range: fromRange(inlineValue.range),
|
|
433
|
-
text: inlineValue.text
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
else if (inlineValue instanceof types_impl_1.InlineValueVariableLookup) {
|
|
437
|
-
return {
|
|
438
|
-
type: 'variable',
|
|
439
|
-
range: fromRange(inlineValue.range),
|
|
440
|
-
variableName: inlineValue.variableName,
|
|
441
|
-
caseSensitiveLookup: inlineValue.caseSensitiveLookup
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
else if (inlineValue instanceof types_impl_1.InlineValueEvaluatableExpression) {
|
|
445
|
-
return {
|
|
446
|
-
type: 'expression',
|
|
447
|
-
range: fromRange(inlineValue.range),
|
|
448
|
-
expression: inlineValue.expression
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
throw new Error('Unknown InlineValue type');
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
exports.fromInlineValue = fromInlineValue;
|
|
456
|
-
function toInlineValueContext(inlineValueContext) {
|
|
457
|
-
const ivLocation = inlineValueContext.stoppedLocation;
|
|
458
|
-
return {
|
|
459
|
-
frameId: inlineValueContext.frameId,
|
|
460
|
-
stoppedLocation: new types.Range(ivLocation.startLineNumber, ivLocation.startColumn, ivLocation.endLineNumber, ivLocation.endColumn)
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
exports.toInlineValueContext = toInlineValueContext;
|
|
464
|
-
function fromLocation(location) {
|
|
465
|
-
if (!location) {
|
|
466
|
-
return undefined;
|
|
467
|
-
}
|
|
468
|
-
return {
|
|
469
|
-
uri: location.uri,
|
|
470
|
-
range: fromRange(location.range)
|
|
471
|
-
};
|
|
472
|
-
}
|
|
473
|
-
exports.fromLocation = fromLocation;
|
|
474
|
-
function fromLocationToLanguageServerLocation(location) {
|
|
475
|
-
if (!location) {
|
|
476
|
-
return undefined;
|
|
477
|
-
}
|
|
478
|
-
return {
|
|
479
|
-
uri: location.uri.toString(),
|
|
480
|
-
range: location.range
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
exports.fromLocationToLanguageServerLocation = fromLocationToLanguageServerLocation;
|
|
484
|
-
function fromTextDocumentShowOptions(options) {
|
|
485
|
-
if (options.selection) {
|
|
486
|
-
return {
|
|
487
|
-
...options,
|
|
488
|
-
selection: fromRange(options.selection),
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
return options;
|
|
492
|
-
}
|
|
493
|
-
exports.fromTextDocumentShowOptions = fromTextDocumentShowOptions;
|
|
494
|
-
function fromDefinitionLink(definitionLink) {
|
|
495
|
-
return {
|
|
496
|
-
uri: definitionLink.targetUri,
|
|
497
|
-
range: fromRange(definitionLink.targetRange),
|
|
498
|
-
originSelectionRange: definitionLink.originSelectionRange ? fromRange(definitionLink.originSelectionRange) : undefined,
|
|
499
|
-
targetSelectionRange: definitionLink.targetSelectionRange ? fromRange(definitionLink.targetSelectionRange) : undefined
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
exports.fromDefinitionLink = fromDefinitionLink;
|
|
503
|
-
var DocumentLink;
|
|
504
|
-
(function (DocumentLink) {
|
|
505
|
-
function from(link) {
|
|
506
|
-
return {
|
|
507
|
-
range: fromRange(link.range),
|
|
508
|
-
url: link.target,
|
|
509
|
-
tooltip: link.tooltip
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
DocumentLink.from = from;
|
|
513
|
-
function to(link) {
|
|
514
|
-
let target = undefined;
|
|
515
|
-
if (link.url) {
|
|
516
|
-
try {
|
|
517
|
-
target = typeof link.url === 'string' ? types_impl_1.URI.parse(link.url, true) : types_impl_1.URI.revive(link.url);
|
|
518
|
-
}
|
|
519
|
-
catch (err) {
|
|
520
|
-
// ignore
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return new types.DocumentLink(toRange(link.range), target);
|
|
524
|
-
}
|
|
525
|
-
DocumentLink.to = to;
|
|
526
|
-
})(DocumentLink || (exports.DocumentLink = DocumentLink = {}));
|
|
527
|
-
function fromDocumentHighlightKind(kind) {
|
|
528
|
-
switch (kind) {
|
|
529
|
-
case types.DocumentHighlightKind.Text: return model.DocumentHighlightKind.Text;
|
|
530
|
-
case types.DocumentHighlightKind.Read: return model.DocumentHighlightKind.Read;
|
|
531
|
-
case types.DocumentHighlightKind.Write: return model.DocumentHighlightKind.Write;
|
|
532
|
-
}
|
|
533
|
-
return model.DocumentHighlightKind.Text;
|
|
534
|
-
}
|
|
535
|
-
exports.fromDocumentHighlightKind = fromDocumentHighlightKind;
|
|
536
|
-
function fromDocumentHighlight(documentHighlight) {
|
|
537
|
-
return {
|
|
538
|
-
range: fromRange(documentHighlight.range),
|
|
539
|
-
kind: fromDocumentHighlightKind(documentHighlight.kind)
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
exports.fromDocumentHighlight = fromDocumentHighlight;
|
|
543
|
-
var ParameterInformation;
|
|
544
|
-
(function (ParameterInformation) {
|
|
545
|
-
function from(info) {
|
|
546
|
-
return {
|
|
547
|
-
label: info.label,
|
|
548
|
-
documentation: info.documentation ? fromMarkdown(info.documentation) : undefined
|
|
549
|
-
};
|
|
550
|
-
}
|
|
551
|
-
ParameterInformation.from = from;
|
|
552
|
-
function to(info) {
|
|
553
|
-
return {
|
|
554
|
-
label: info.label,
|
|
555
|
-
documentation: markdown_rendering_1.MarkdownString.is(info.documentation) ? toMarkdown(info.documentation) : info.documentation
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
ParameterInformation.to = to;
|
|
559
|
-
})(ParameterInformation || (exports.ParameterInformation = ParameterInformation = {}));
|
|
560
|
-
var SignatureInformation;
|
|
561
|
-
(function (SignatureInformation) {
|
|
562
|
-
function from(info) {
|
|
563
|
-
return {
|
|
564
|
-
label: info.label,
|
|
565
|
-
documentation: info.documentation ? fromMarkdown(info.documentation) : undefined,
|
|
566
|
-
parameters: info.parameters && info.parameters.map(ParameterInformation.from),
|
|
567
|
-
activeParameter: info.activeParameter
|
|
568
|
-
};
|
|
569
|
-
}
|
|
570
|
-
SignatureInformation.from = from;
|
|
571
|
-
function to(info) {
|
|
572
|
-
return {
|
|
573
|
-
label: info.label,
|
|
574
|
-
documentation: markdown_rendering_1.MarkdownString.is(info.documentation) ? toMarkdown(info.documentation) : info.documentation,
|
|
575
|
-
parameters: info.parameters && info.parameters.map(ParameterInformation.to),
|
|
576
|
-
activeParameter: info.activeParameter
|
|
577
|
-
};
|
|
578
|
-
}
|
|
579
|
-
SignatureInformation.to = to;
|
|
580
|
-
})(SignatureInformation || (exports.SignatureInformation = SignatureInformation = {}));
|
|
581
|
-
var SignatureHelp;
|
|
582
|
-
(function (SignatureHelp) {
|
|
583
|
-
function from(id, help) {
|
|
584
|
-
return {
|
|
585
|
-
id,
|
|
586
|
-
activeSignature: help.activeSignature,
|
|
587
|
-
activeParameter: help.activeParameter,
|
|
588
|
-
signatures: help.signatures && help.signatures.map(SignatureInformation.from)
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
SignatureHelp.from = from;
|
|
592
|
-
function to(help) {
|
|
593
|
-
return {
|
|
594
|
-
activeSignature: help.activeSignature,
|
|
595
|
-
activeParameter: help.activeParameter,
|
|
596
|
-
signatures: help.signatures && help.signatures.map(SignatureInformation.to)
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
SignatureHelp.to = to;
|
|
600
|
-
})(SignatureHelp || (exports.SignatureHelp = SignatureHelp = {}));
|
|
601
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
602
|
-
function fromWorkspaceEdit(value, documents) {
|
|
603
|
-
const result = {
|
|
604
|
-
edits: []
|
|
605
|
-
};
|
|
606
|
-
for (const entry of value._allEntries()) {
|
|
607
|
-
if ((entry === null || entry === void 0 ? void 0 : entry._type) === 2 /* types.FileEditType.Text */) {
|
|
608
|
-
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
609
|
-
const workspaceTextEditDto = {
|
|
610
|
-
resource: entry.uri,
|
|
611
|
-
modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
|
|
612
|
-
textEdit: fromTextEdit(entry.edit),
|
|
613
|
-
metadata: entry.metadata
|
|
614
|
-
};
|
|
615
|
-
result.edits.push(workspaceTextEditDto);
|
|
616
|
-
}
|
|
617
|
-
else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 6 /* types.FileEditType.Snippet */) {
|
|
618
|
-
const doc = documents ? documents.getDocument(entry.uri.toString()) : undefined;
|
|
619
|
-
const workspaceTextEditDto = {
|
|
620
|
-
resource: entry.uri,
|
|
621
|
-
modelVersionId: doc === null || doc === void 0 ? void 0 : doc.version,
|
|
622
|
-
textEdit: fromSnippetTextEdit(entry.edit),
|
|
623
|
-
metadata: entry.metadata
|
|
624
|
-
};
|
|
625
|
-
result.edits.push(workspaceTextEditDto);
|
|
626
|
-
}
|
|
627
|
-
else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 1 /* types.FileEditType.File */) {
|
|
628
|
-
const workspaceFileEditDto = {
|
|
629
|
-
oldResource: entry.from,
|
|
630
|
-
newResource: entry.to,
|
|
631
|
-
options: entry.options,
|
|
632
|
-
metadata: entry.metadata
|
|
633
|
-
};
|
|
634
|
-
result.edits.push(workspaceFileEditDto);
|
|
635
|
-
}
|
|
636
|
-
else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 3 /* types.FileEditType.Cell */) {
|
|
637
|
-
if (entry.edit) {
|
|
638
|
-
result.edits.push({
|
|
639
|
-
metadata: entry.metadata,
|
|
640
|
-
resource: entry.uri,
|
|
641
|
-
cellEdit: entry.edit,
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
else if ((entry === null || entry === void 0 ? void 0 : entry._type) === 5 /* types.FileEditType.CellReplace */) {
|
|
646
|
-
result.edits.push({
|
|
647
|
-
metadata: entry.metadata,
|
|
648
|
-
resource: entry.uri,
|
|
649
|
-
cellEdit: {
|
|
650
|
-
editType: 1 /* notebooks.CellEditType.Replace */,
|
|
651
|
-
index: entry.index,
|
|
652
|
-
count: entry.count,
|
|
653
|
-
cells: entry.cells.map(NotebookCellData.from)
|
|
654
|
-
}
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
return result;
|
|
659
|
-
}
|
|
660
|
-
exports.fromWorkspaceEdit = fromWorkspaceEdit;
|
|
661
|
-
var SymbolKind;
|
|
662
|
-
(function (SymbolKind) {
|
|
663
|
-
const fromMapping = Object.create(null);
|
|
664
|
-
fromMapping[model.SymbolKind.File] = model.SymbolKind.File;
|
|
665
|
-
fromMapping[model.SymbolKind.Module] = model.SymbolKind.Module;
|
|
666
|
-
fromMapping[model.SymbolKind.Namespace] = model.SymbolKind.Namespace;
|
|
667
|
-
fromMapping[model.SymbolKind.Package] = model.SymbolKind.Package;
|
|
668
|
-
fromMapping[model.SymbolKind.Class] = model.SymbolKind.Class;
|
|
669
|
-
fromMapping[model.SymbolKind.Method] = model.SymbolKind.Method;
|
|
670
|
-
fromMapping[model.SymbolKind.Property] = model.SymbolKind.Property;
|
|
671
|
-
fromMapping[model.SymbolKind.Field] = model.SymbolKind.Field;
|
|
672
|
-
fromMapping[model.SymbolKind.Constructor] = model.SymbolKind.Constructor;
|
|
673
|
-
fromMapping[model.SymbolKind.Enum] = model.SymbolKind.Enum;
|
|
674
|
-
fromMapping[model.SymbolKind.Interface] = model.SymbolKind.Interface;
|
|
675
|
-
fromMapping[model.SymbolKind.Function] = model.SymbolKind.Function;
|
|
676
|
-
fromMapping[model.SymbolKind.Variable] = model.SymbolKind.Variable;
|
|
677
|
-
fromMapping[model.SymbolKind.Constant] = model.SymbolKind.Constant;
|
|
678
|
-
fromMapping[model.SymbolKind.String] = model.SymbolKind.String;
|
|
679
|
-
fromMapping[model.SymbolKind.Number] = model.SymbolKind.Number;
|
|
680
|
-
fromMapping[model.SymbolKind.Boolean] = model.SymbolKind.Boolean;
|
|
681
|
-
fromMapping[model.SymbolKind.Array] = model.SymbolKind.Array;
|
|
682
|
-
fromMapping[model.SymbolKind.Object] = model.SymbolKind.Object;
|
|
683
|
-
fromMapping[model.SymbolKind.Key] = model.SymbolKind.Key;
|
|
684
|
-
fromMapping[model.SymbolKind.Null] = model.SymbolKind.Null;
|
|
685
|
-
fromMapping[model.SymbolKind.EnumMember] = model.SymbolKind.EnumMember;
|
|
686
|
-
fromMapping[model.SymbolKind.Struct] = model.SymbolKind.Struct;
|
|
687
|
-
fromMapping[model.SymbolKind.Event] = model.SymbolKind.Event;
|
|
688
|
-
fromMapping[model.SymbolKind.Operator] = model.SymbolKind.Operator;
|
|
689
|
-
fromMapping[model.SymbolKind.TypeParameter] = model.SymbolKind.TypeParameter;
|
|
690
|
-
function fromSymbolKind(kind) {
|
|
691
|
-
return fromMapping[kind] || model.SymbolKind.Property;
|
|
692
|
-
}
|
|
693
|
-
SymbolKind.fromSymbolKind = fromSymbolKind;
|
|
694
|
-
function toSymbolKind(kind) {
|
|
695
|
-
for (const k in fromMapping) {
|
|
696
|
-
if (fromMapping[k] === kind) {
|
|
697
|
-
return Number(k);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
return model.SymbolKind.Property;
|
|
701
|
-
}
|
|
702
|
-
SymbolKind.toSymbolKind = toSymbolKind;
|
|
703
|
-
})(SymbolKind || (exports.SymbolKind = SymbolKind = {}));
|
|
704
|
-
function toCodeActionTriggerKind(triggerKind) {
|
|
705
|
-
switch (triggerKind) {
|
|
706
|
-
case model.CodeActionTriggerKind.Invoke:
|
|
707
|
-
return types.CodeActionTriggerKind.Invoke;
|
|
708
|
-
case model.CodeActionTriggerKind.Automatic:
|
|
709
|
-
return types.CodeActionTriggerKind.Automatic;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
exports.toCodeActionTriggerKind = toCodeActionTriggerKind;
|
|
713
|
-
function fromDocumentSymbol(info) {
|
|
714
|
-
const result = {
|
|
715
|
-
name: info.name,
|
|
716
|
-
detail: info.detail,
|
|
717
|
-
range: fromRange(info.range),
|
|
718
|
-
tags: info.tags ? info.tags.map(fromSymbolTag) : [],
|
|
719
|
-
selectionRange: fromRange(info.selectionRange),
|
|
720
|
-
kind: SymbolKind.fromSymbolKind(info.kind)
|
|
721
|
-
};
|
|
722
|
-
if (info.children) {
|
|
723
|
-
result.children = info.children.map(fromDocumentSymbol);
|
|
724
|
-
}
|
|
725
|
-
return result;
|
|
726
|
-
}
|
|
727
|
-
exports.fromDocumentSymbol = fromDocumentSymbol;
|
|
728
|
-
function toDocumentSymbol(symbol) {
|
|
729
|
-
return {
|
|
730
|
-
name: symbol.name,
|
|
731
|
-
detail: symbol.detail,
|
|
732
|
-
range: toRange(symbol.range),
|
|
733
|
-
tags: symbol.tags && symbol.tags.length > 0 ? symbol.tags.map(toSymbolTag) : [],
|
|
734
|
-
selectionRange: toRange(symbol.selectionRange),
|
|
735
|
-
children: symbol.children ? symbol.children.map(toDocumentSymbol) : [],
|
|
736
|
-
kind: SymbolKind.toSymbolKind(symbol.kind)
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
exports.toDocumentSymbol = toDocumentSymbol;
|
|
740
|
-
function fromSymbolTag(kind) {
|
|
741
|
-
switch (kind) {
|
|
742
|
-
case types.SymbolTag.Deprecated: return model.SymbolTag.Deprecated;
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
exports.fromSymbolTag = fromSymbolTag;
|
|
746
|
-
function toSymbolTag(kind) {
|
|
747
|
-
switch (kind) {
|
|
748
|
-
case model.SymbolTag.Deprecated: return types.SymbolTag.Deprecated;
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
exports.toSymbolTag = toSymbolTag;
|
|
752
|
-
/**
|
|
753
|
-
* Creates a merged symbol of type theia.SymbolInformation & theia.DocumentSymbol.
|
|
754
|
-
* Is only used as the result type of the `vscode.executeDocumentSymbolProvider` command.
|
|
755
|
-
*/
|
|
756
|
-
function toMergedSymbol(uri, symbol) {
|
|
757
|
-
var _a, _b, _c;
|
|
758
|
-
const uriValue = types_impl_1.URI.revive(uri);
|
|
759
|
-
const location = new types.Location(uriValue, toRange(symbol.range));
|
|
760
|
-
return {
|
|
761
|
-
name: symbol.name,
|
|
762
|
-
containerName: (_a = symbol.containerName) !== null && _a !== void 0 ? _a : '',
|
|
763
|
-
kind: SymbolKind.toSymbolKind(symbol.kind),
|
|
764
|
-
tags: [],
|
|
765
|
-
location,
|
|
766
|
-
detail: symbol.detail,
|
|
767
|
-
range: location.range,
|
|
768
|
-
selectionRange: toRange(symbol.selectionRange),
|
|
769
|
-
children: (_c = (_b = symbol.children) === null || _b === void 0 ? void 0 : _b.map(child => toMergedSymbol(uri, child))) !== null && _c !== void 0 ? _c : []
|
|
770
|
-
};
|
|
771
|
-
}
|
|
772
|
-
exports.toMergedSymbol = toMergedSymbol;
|
|
773
|
-
function isModelLocation(arg) {
|
|
774
|
-
return (0, common_1.isObject)(arg) &&
|
|
775
|
-
isModelRange(arg.range) &&
|
|
776
|
-
isUriComponents(arg.uri);
|
|
777
|
-
}
|
|
778
|
-
exports.isModelLocation = isModelLocation;
|
|
779
|
-
function isModelRange(arg) {
|
|
780
|
-
return (0, common_1.isObject)(arg) &&
|
|
781
|
-
typeof arg.startLineNumber === 'number' &&
|
|
782
|
-
typeof arg.startColumn === 'number' &&
|
|
783
|
-
typeof arg.endLineNumber === 'number' &&
|
|
784
|
-
typeof arg.endColumn === 'number';
|
|
785
|
-
}
|
|
786
|
-
exports.isModelRange = isModelRange;
|
|
787
|
-
function isUriComponents(arg) {
|
|
788
|
-
return (0, common_1.isObject)(arg) &&
|
|
789
|
-
typeof arg.scheme === 'string' &&
|
|
790
|
-
(arg['$mid'] === 1 || (typeof arg.path === 'string' &&
|
|
791
|
-
typeof arg.query === 'string' &&
|
|
792
|
-
typeof arg.fragment === 'string'));
|
|
793
|
-
}
|
|
794
|
-
exports.isUriComponents = isUriComponents;
|
|
795
|
-
function isModelCallHierarchyItem(arg) {
|
|
796
|
-
return (0, common_1.isObject)(arg)
|
|
797
|
-
&& isModelRange(arg.range)
|
|
798
|
-
&& isModelRange(arg.selectionRange)
|
|
799
|
-
&& isUriComponents(arg.uri)
|
|
800
|
-
&& !!arg.name;
|
|
801
|
-
}
|
|
802
|
-
exports.isModelCallHierarchyItem = isModelCallHierarchyItem;
|
|
803
|
-
function isModelCallHierarchyIncomingCall(arg) {
|
|
804
|
-
return (0, common_1.isObject)(arg) &&
|
|
805
|
-
'from' in arg &&
|
|
806
|
-
'fromRanges' in arg &&
|
|
807
|
-
isModelCallHierarchyItem(arg.from);
|
|
808
|
-
}
|
|
809
|
-
exports.isModelCallHierarchyIncomingCall = isModelCallHierarchyIncomingCall;
|
|
810
|
-
function isModelCallHierarchyOutgoingCall(arg) {
|
|
811
|
-
return (0, common_1.isObject)(arg) &&
|
|
812
|
-
'to' in arg &&
|
|
813
|
-
'fromRanges' in arg &&
|
|
814
|
-
isModelCallHierarchyItem(arg.to);
|
|
815
|
-
}
|
|
816
|
-
exports.isModelCallHierarchyOutgoingCall = isModelCallHierarchyOutgoingCall;
|
|
817
|
-
function toLocation(value) {
|
|
818
|
-
return new types.Location(types_impl_1.URI.revive(value.uri), toRange(value.range));
|
|
819
|
-
}
|
|
820
|
-
exports.toLocation = toLocation;
|
|
821
|
-
function fromHierarchyItem(item) {
|
|
822
|
-
return {
|
|
823
|
-
kind: SymbolKind.fromSymbolKind(item.kind),
|
|
824
|
-
name: item.name,
|
|
825
|
-
detail: item.detail,
|
|
826
|
-
uri: item.uri,
|
|
827
|
-
range: fromRange(item.range),
|
|
828
|
-
selectionRange: fromRange(item.selectionRange),
|
|
829
|
-
tags: item.tags,
|
|
830
|
-
_itemId: item._itemId,
|
|
831
|
-
_sessionId: item._sessionId,
|
|
832
|
-
};
|
|
833
|
-
}
|
|
834
|
-
exports.fromHierarchyItem = fromHierarchyItem;
|
|
835
|
-
function fromCallHierarchyItem(item) {
|
|
836
|
-
return fromHierarchyItem(item);
|
|
837
|
-
}
|
|
838
|
-
exports.fromCallHierarchyItem = fromCallHierarchyItem;
|
|
839
|
-
function toCallHierarchyItem(value) {
|
|
840
|
-
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));
|
|
841
|
-
item.tags = value.tags;
|
|
842
|
-
item._itemId = value._itemId;
|
|
843
|
-
item._sessionId = value._sessionId;
|
|
844
|
-
return item;
|
|
845
|
-
}
|
|
846
|
-
exports.toCallHierarchyItem = toCallHierarchyItem;
|
|
847
|
-
function toCallHierarchyIncomingCall(value) {
|
|
848
|
-
return new types.CallHierarchyIncomingCall(toCallHierarchyItem(value.from), value.fromRanges && value.fromRanges.map(toRange));
|
|
849
|
-
}
|
|
850
|
-
exports.toCallHierarchyIncomingCall = toCallHierarchyIncomingCall;
|
|
851
|
-
function toCallHierarchyOutgoingCall(value) {
|
|
852
|
-
return new types.CallHierarchyOutgoingCall(toCallHierarchyItem(value.to), value.fromRanges && value.fromRanges.map(toRange));
|
|
853
|
-
}
|
|
854
|
-
exports.toCallHierarchyOutgoingCall = toCallHierarchyOutgoingCall;
|
|
855
|
-
function isModelTypeHierarchyItem(arg) {
|
|
856
|
-
return (0, common_1.isObject)(arg)
|
|
857
|
-
&& isModelRange(arg.range)
|
|
858
|
-
&& isModelRange(arg.selectionRange)
|
|
859
|
-
&& isUriComponents(arg.uri)
|
|
860
|
-
&& !!arg.name;
|
|
861
|
-
}
|
|
862
|
-
exports.isModelTypeHierarchyItem = isModelTypeHierarchyItem;
|
|
863
|
-
function fromTypeHierarchyItem(item) {
|
|
864
|
-
return fromHierarchyItem(item);
|
|
865
|
-
}
|
|
866
|
-
exports.fromTypeHierarchyItem = fromTypeHierarchyItem;
|
|
867
|
-
function toTypeHierarchyItem(value) {
|
|
868
|
-
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));
|
|
869
|
-
item.tags = value.tags;
|
|
870
|
-
item._itemId = value._itemId;
|
|
871
|
-
item._sessionId = value._sessionId;
|
|
872
|
-
return item;
|
|
873
|
-
}
|
|
874
|
-
exports.toTypeHierarchyItem = toTypeHierarchyItem;
|
|
875
|
-
function toWorkspaceFolder(folder) {
|
|
876
|
-
return {
|
|
877
|
-
uri: types_impl_1.URI.revive(folder.uri),
|
|
878
|
-
name: folder.name,
|
|
879
|
-
index: folder.index
|
|
880
|
-
};
|
|
881
|
-
}
|
|
882
|
-
exports.toWorkspaceFolder = toWorkspaceFolder;
|
|
883
|
-
function fromTask(task) {
|
|
884
|
-
if (!task) {
|
|
885
|
-
return undefined;
|
|
886
|
-
}
|
|
887
|
-
const taskDto = {};
|
|
888
|
-
taskDto.label = task.name;
|
|
889
|
-
taskDto.source = task.source;
|
|
890
|
-
taskDto.runOptions = { reevaluateOnRerun: task.runOptions.reevaluateOnRerun };
|
|
891
|
-
if (task.hasProblemMatchers) {
|
|
892
|
-
taskDto.problemMatcher = task.problemMatchers;
|
|
893
|
-
}
|
|
894
|
-
if ('detail' in task) {
|
|
895
|
-
taskDto.detail = task.detail;
|
|
896
|
-
}
|
|
897
|
-
if (typeof task.scope === 'number') {
|
|
898
|
-
taskDto.scope = task.scope;
|
|
899
|
-
}
|
|
900
|
-
else if (task.scope !== undefined) {
|
|
901
|
-
taskDto.scope = task.scope.uri.toString();
|
|
902
|
-
}
|
|
903
|
-
else {
|
|
904
|
-
taskDto.scope = types.TaskScope.Workspace;
|
|
905
|
-
}
|
|
906
|
-
if (task.presentationOptions) {
|
|
907
|
-
taskDto.presentation = task.presentationOptions;
|
|
908
|
-
}
|
|
909
|
-
if (task.group) {
|
|
910
|
-
taskDto.group = {
|
|
911
|
-
kind: task.group.id,
|
|
912
|
-
isDefault: !!task.group.isDefault
|
|
913
|
-
};
|
|
914
|
-
}
|
|
915
|
-
const taskDefinition = task.definition;
|
|
916
|
-
if (!taskDefinition) {
|
|
917
|
-
return taskDto;
|
|
918
|
-
}
|
|
919
|
-
taskDto.type = taskDefinition.type;
|
|
920
|
-
const { type, ...properties } = taskDefinition;
|
|
921
|
-
for (const key in properties) {
|
|
922
|
-
if (properties.hasOwnProperty(key)) {
|
|
923
|
-
taskDto[key] = properties[key];
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
const execution = task.execution;
|
|
927
|
-
if (!execution) {
|
|
928
|
-
return taskDto;
|
|
929
|
-
}
|
|
930
|
-
if (types.ShellExecution.is(execution)) {
|
|
931
|
-
return fromShellExecution(execution, taskDto);
|
|
932
|
-
}
|
|
933
|
-
if (types.ProcessExecution.is(execution)) {
|
|
934
|
-
return fromProcessExecution(execution, taskDto);
|
|
935
|
-
}
|
|
936
|
-
if (types.CustomExecution.is(execution)) {
|
|
937
|
-
return fromCustomExecution(execution, taskDto);
|
|
938
|
-
}
|
|
939
|
-
return taskDto;
|
|
940
|
-
}
|
|
941
|
-
exports.fromTask = fromTask;
|
|
942
|
-
function toTask(taskDto) {
|
|
943
|
-
if (!taskDto) {
|
|
944
|
-
throw new Error('Task should be provided for converting');
|
|
945
|
-
}
|
|
946
|
-
const { type, executionType, label, source, scope, problemMatcher, detail, command, args, options, group, presentation, runOptions, ...properties } = taskDto;
|
|
947
|
-
const result = {};
|
|
948
|
-
result.name = label;
|
|
949
|
-
result.source = source;
|
|
950
|
-
result.runOptions = runOptions !== null && runOptions !== void 0 ? runOptions : {};
|
|
951
|
-
if (detail) {
|
|
952
|
-
result.detail = detail;
|
|
953
|
-
}
|
|
954
|
-
if (typeof scope === 'string') {
|
|
955
|
-
const uri = types_impl_1.URI.parse(scope);
|
|
956
|
-
result.scope = {
|
|
957
|
-
uri,
|
|
958
|
-
name: uri.toString(),
|
|
959
|
-
index: 0
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
else {
|
|
963
|
-
result.scope = scope;
|
|
964
|
-
}
|
|
965
|
-
const taskDefinition = {
|
|
966
|
-
type: type
|
|
967
|
-
};
|
|
968
|
-
result.definition = taskDefinition;
|
|
969
|
-
if (executionType === 'process') {
|
|
970
|
-
result.execution = getProcessExecution(taskDto);
|
|
971
|
-
}
|
|
972
|
-
const execution = { command, args, options };
|
|
973
|
-
if (executionType === 'shell' || types.ShellExecution.is(execution)) {
|
|
974
|
-
result.execution = getShellExecution(taskDto);
|
|
975
|
-
}
|
|
976
|
-
if (executionType === 'customExecution' || types.CustomExecution.is(execution)) {
|
|
977
|
-
result.execution = getCustomExecution(taskDto);
|
|
978
|
-
// if taskType is customExecution, we need to put all the information into taskDefinition,
|
|
979
|
-
// because some parameters may be in taskDefinition.
|
|
980
|
-
taskDefinition.label = label;
|
|
981
|
-
taskDefinition.command = command;
|
|
982
|
-
taskDefinition.args = args;
|
|
983
|
-
taskDefinition.options = options;
|
|
984
|
-
}
|
|
985
|
-
if (group) {
|
|
986
|
-
result.group = new types.TaskGroup(group.kind, group.kind, group.isDefault);
|
|
987
|
-
}
|
|
988
|
-
if (presentation) {
|
|
989
|
-
result.presentationOptions = presentation;
|
|
990
|
-
}
|
|
991
|
-
if (!properties) {
|
|
992
|
-
return result;
|
|
993
|
-
}
|
|
994
|
-
for (const key in properties) {
|
|
995
|
-
if (properties.hasOwnProperty(key)) {
|
|
996
|
-
taskDefinition[key] = properties[key];
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
return result;
|
|
1000
|
-
}
|
|
1001
|
-
exports.toTask = toTask;
|
|
1002
|
-
function fromProcessExecution(execution, taskDto) {
|
|
1003
|
-
taskDto.executionType = 'process';
|
|
1004
|
-
taskDto.command = execution.process;
|
|
1005
|
-
taskDto.args = execution.args;
|
|
1006
|
-
const options = execution.options;
|
|
1007
|
-
if (options) {
|
|
1008
|
-
taskDto.options = options;
|
|
1009
|
-
}
|
|
1010
|
-
return taskDto;
|
|
1011
|
-
}
|
|
1012
|
-
exports.fromProcessExecution = fromProcessExecution;
|
|
1013
|
-
function fromShellExecution(execution, taskDto) {
|
|
1014
|
-
taskDto.executionType = 'shell';
|
|
1015
|
-
const options = execution.options;
|
|
1016
|
-
if (options) {
|
|
1017
|
-
taskDto.options = getShellExecutionOptions(options);
|
|
1018
|
-
}
|
|
1019
|
-
const commandLine = execution.commandLine;
|
|
1020
|
-
if (commandLine) {
|
|
1021
|
-
taskDto.command = commandLine;
|
|
1022
|
-
return taskDto;
|
|
1023
|
-
}
|
|
1024
|
-
if (execution.command) {
|
|
1025
|
-
taskDto.command = getCommand(execution.command);
|
|
1026
|
-
taskDto.args = getShellArgs(execution.args);
|
|
1027
|
-
return taskDto;
|
|
1028
|
-
}
|
|
1029
|
-
else {
|
|
1030
|
-
throw new Error('Command is undefined');
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
exports.fromShellExecution = fromShellExecution;
|
|
1034
|
-
function fromCustomExecution(execution, taskDto) {
|
|
1035
|
-
taskDto.executionType = 'customExecution';
|
|
1036
|
-
const callback = execution.callback;
|
|
1037
|
-
if (callback) {
|
|
1038
|
-
taskDto.callback = callback;
|
|
1039
|
-
return taskDto;
|
|
1040
|
-
}
|
|
1041
|
-
else {
|
|
1042
|
-
throw new Error('Converting CustomExecution callback is not implemented');
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
exports.fromCustomExecution = fromCustomExecution;
|
|
1046
|
-
function getProcessExecution(taskDto) {
|
|
1047
|
-
return new types.ProcessExecution(taskDto.command, taskDto.args || [], taskDto.options || {});
|
|
1048
|
-
}
|
|
1049
|
-
exports.getProcessExecution = getProcessExecution;
|
|
1050
|
-
function getShellExecution(taskDto) {
|
|
1051
|
-
if (taskDto.command && Array.isArray(taskDto.args) && taskDto.args.length !== 0) {
|
|
1052
|
-
return new types.ShellExecution(taskDto.command, taskDto.args, taskDto.options || {});
|
|
1053
|
-
}
|
|
1054
|
-
return new types.ShellExecution(taskDto.command || taskDto.commandLine, taskDto.options || {});
|
|
1055
|
-
}
|
|
1056
|
-
exports.getShellExecution = getShellExecution;
|
|
1057
|
-
function getCustomExecution(taskDto) {
|
|
1058
|
-
return new types.CustomExecution(taskDto.callback);
|
|
1059
|
-
}
|
|
1060
|
-
exports.getCustomExecution = getCustomExecution;
|
|
1061
|
-
function getShellArgs(args) {
|
|
1062
|
-
if (!args || args.length === 0) {
|
|
1063
|
-
return [];
|
|
1064
|
-
}
|
|
1065
|
-
const element = args[0];
|
|
1066
|
-
if (typeof element === 'string') {
|
|
1067
|
-
return args;
|
|
1068
|
-
}
|
|
1069
|
-
const result = [];
|
|
1070
|
-
const shellQuotedArgs = args;
|
|
1071
|
-
shellQuotedArgs.forEach(arg => {
|
|
1072
|
-
result.push(arg.value);
|
|
1073
|
-
});
|
|
1074
|
-
return result;
|
|
1075
|
-
}
|
|
1076
|
-
exports.getShellArgs = getShellArgs;
|
|
1077
|
-
function getCommand(command) {
|
|
1078
|
-
return typeof command === 'string' ? command : command.value;
|
|
1079
|
-
}
|
|
1080
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1081
|
-
function getShellExecutionOptions(options) {
|
|
1082
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1083
|
-
const result = {};
|
|
1084
|
-
const env = options.env;
|
|
1085
|
-
if (env) {
|
|
1086
|
-
result['env'] = env;
|
|
1087
|
-
}
|
|
1088
|
-
const executable = options.executable;
|
|
1089
|
-
if (executable) {
|
|
1090
|
-
result['executable'] = executable;
|
|
1091
|
-
}
|
|
1092
|
-
const shellQuoting = options.shellQuoting;
|
|
1093
|
-
if (shellQuoting) {
|
|
1094
|
-
result['shellQuoting'] = shellQuoting;
|
|
1095
|
-
}
|
|
1096
|
-
const shellArgs = options.shellArgs;
|
|
1097
|
-
if (shellArgs) {
|
|
1098
|
-
result['shellArgs'] = shellArgs;
|
|
1099
|
-
}
|
|
1100
|
-
const cwd = options.cwd;
|
|
1101
|
-
if (cwd) {
|
|
1102
|
-
Object.assign(result, { cwd });
|
|
1103
|
-
}
|
|
1104
|
-
return result;
|
|
1105
|
-
}
|
|
1106
|
-
exports.getShellExecutionOptions = getShellExecutionOptions;
|
|
1107
|
-
function fromSymbolInformation(symbolInformation) {
|
|
1108
|
-
if (!symbolInformation) {
|
|
1109
|
-
return undefined;
|
|
1110
|
-
}
|
|
1111
|
-
if (symbolInformation.location && symbolInformation.location.range) {
|
|
1112
|
-
const p1 = lstypes.Position.create(symbolInformation.location.range.start.line, symbolInformation.location.range.start.character);
|
|
1113
|
-
const p2 = lstypes.Position.create(symbolInformation.location.range.end.line, symbolInformation.location.range.end.character);
|
|
1114
|
-
return lstypes.SymbolInformation.create(symbolInformation.name, symbolInformation.kind++, lstypes.Range.create(p1, p2), symbolInformation.location.uri.toString(), symbolInformation.containerName);
|
|
1115
|
-
}
|
|
1116
|
-
return {
|
|
1117
|
-
name: symbolInformation.name,
|
|
1118
|
-
containerName: symbolInformation.containerName,
|
|
1119
|
-
kind: symbolInformation.kind++,
|
|
1120
|
-
location: {
|
|
1121
|
-
uri: symbolInformation.location.uri.toString(),
|
|
1122
|
-
range: symbolInformation.location.range,
|
|
1123
|
-
}
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
exports.fromSymbolInformation = fromSymbolInformation;
|
|
1127
|
-
function toSymbolInformation(symbolInformation) {
|
|
1128
|
-
if (!symbolInformation) {
|
|
1129
|
-
return undefined;
|
|
1130
|
-
}
|
|
1131
|
-
return {
|
|
1132
|
-
name: symbolInformation.name,
|
|
1133
|
-
containerName: symbolInformation.containerName,
|
|
1134
|
-
kind: symbolInformation.kind,
|
|
1135
|
-
location: {
|
|
1136
|
-
uri: types_impl_1.URI.parse(symbolInformation.location.uri),
|
|
1137
|
-
range: symbolInformation.location.range
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
exports.toSymbolInformation = toSymbolInformation;
|
|
1142
|
-
function fromSelectionRange(selectionRange) {
|
|
1143
|
-
return { range: fromRange(selectionRange.range) };
|
|
1144
|
-
}
|
|
1145
|
-
exports.fromSelectionRange = fromSelectionRange;
|
|
1146
|
-
function fromFoldingRange(foldingRange) {
|
|
1147
|
-
const range = {
|
|
1148
|
-
start: foldingRange.start + 1,
|
|
1149
|
-
end: foldingRange.end + 1
|
|
1150
|
-
};
|
|
1151
|
-
if (foldingRange.kind) {
|
|
1152
|
-
range.kind = fromFoldingRangeKind(foldingRange.kind);
|
|
1153
|
-
}
|
|
1154
|
-
return range;
|
|
1155
|
-
}
|
|
1156
|
-
exports.fromFoldingRange = fromFoldingRange;
|
|
1157
|
-
function fromFoldingRangeKind(kind) {
|
|
1158
|
-
if (kind) {
|
|
1159
|
-
switch (kind) {
|
|
1160
|
-
case types.FoldingRangeKind.Comment:
|
|
1161
|
-
return model.FoldingRangeKind.Comment;
|
|
1162
|
-
case types.FoldingRangeKind.Imports:
|
|
1163
|
-
return model.FoldingRangeKind.Imports;
|
|
1164
|
-
case types.FoldingRangeKind.Region:
|
|
1165
|
-
return model.FoldingRangeKind.Region;
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
return undefined;
|
|
1169
|
-
}
|
|
1170
|
-
exports.fromFoldingRangeKind = fromFoldingRangeKind;
|
|
1171
|
-
function fromColor(color) {
|
|
1172
|
-
return [color.red, color.green, color.blue, color.alpha];
|
|
1173
|
-
}
|
|
1174
|
-
exports.fromColor = fromColor;
|
|
1175
|
-
function toColor(color) {
|
|
1176
|
-
return new types.Color(color[0], color[1], color[2], color[3]);
|
|
1177
|
-
}
|
|
1178
|
-
exports.toColor = toColor;
|
|
1179
|
-
function fromColorPresentation(colorPresentation) {
|
|
1180
|
-
return {
|
|
1181
|
-
label: colorPresentation.label,
|
|
1182
|
-
textEdit: colorPresentation.textEdit ? fromTextEdit(colorPresentation.textEdit) : undefined,
|
|
1183
|
-
additionalTextEdits: colorPresentation.additionalTextEdits ? colorPresentation.additionalTextEdits.map(value => fromTextEdit(value)) : undefined
|
|
1184
|
-
};
|
|
1185
|
-
}
|
|
1186
|
-
exports.fromColorPresentation = fromColorPresentation;
|
|
1187
|
-
function convertIconPath(iconPath) {
|
|
1188
|
-
var _a;
|
|
1189
|
-
if (!iconPath) {
|
|
1190
|
-
return undefined;
|
|
1191
|
-
}
|
|
1192
|
-
if (iconPath instanceof types.URI) {
|
|
1193
|
-
return iconPath.toJSON();
|
|
1194
|
-
}
|
|
1195
|
-
else if ('dark' in iconPath) {
|
|
1196
|
-
return {
|
|
1197
|
-
dark: iconPath.dark.toJSON(),
|
|
1198
|
-
light: (_a = iconPath.light) === null || _a === void 0 ? void 0 : _a.toJSON()
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
else if (types_impl_1.ThemeIcon.is(iconPath)) {
|
|
1202
|
-
return {
|
|
1203
|
-
id: iconPath.id,
|
|
1204
|
-
color: iconPath.color ? { id: iconPath.color.id } : undefined
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
else {
|
|
1208
|
-
return undefined;
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
exports.convertIconPath = convertIconPath;
|
|
1212
|
-
function convertQuickInputButton(plugin, button, index) {
|
|
1213
|
-
var _a;
|
|
1214
|
-
const iconPath = convertIconPath(button.iconPath);
|
|
1215
|
-
if (!iconPath) {
|
|
1216
|
-
throw new Error(`Could not convert icon path: '${button.iconPath}'`);
|
|
1217
|
-
}
|
|
1218
|
-
return {
|
|
1219
|
-
handle: index,
|
|
1220
|
-
iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
|
|
1221
|
-
tooltip: button.tooltip
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
exports.convertQuickInputButton = convertQuickInputButton;
|
|
1225
|
-
function convertToTransferQuickPickItems(plugin, items) {
|
|
1226
|
-
return items.map((item, index) => {
|
|
1227
|
-
var _a;
|
|
1228
|
-
if (typeof item === 'string') {
|
|
1229
|
-
return { kind: 'item', label: item, handle: index };
|
|
1230
|
-
}
|
|
1231
|
-
else if (item.kind === types_impl_1.QuickPickItemKind.Separator) {
|
|
1232
|
-
return { kind: 'separator', label: item.label, handle: index };
|
|
1233
|
-
}
|
|
1234
|
-
else {
|
|
1235
|
-
const { label, description, iconPath, detail, picked, alwaysShow, buttons } = item;
|
|
1236
|
-
return {
|
|
1237
|
-
kind: 'item',
|
|
1238
|
-
label,
|
|
1239
|
-
description,
|
|
1240
|
-
iconUrl: (_a = plugin_icon_path_1.PluginIconPath.toUrl(iconPath, plugin)) !== null && _a !== void 0 ? _a : types_impl_1.ThemeIcon.get(iconPath),
|
|
1241
|
-
detail,
|
|
1242
|
-
picked,
|
|
1243
|
-
alwaysShow,
|
|
1244
|
-
buttons: buttons ? buttons.map((button, i) => convertQuickInputButton(plugin, button, i)) : undefined,
|
|
1245
|
-
handle: index,
|
|
1246
|
-
};
|
|
1247
|
-
}
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
exports.convertToTransferQuickPickItems = convertToTransferQuickPickItems;
|
|
1251
|
-
var DecorationRenderOptions;
|
|
1252
|
-
(function (DecorationRenderOptions) {
|
|
1253
|
-
function from(options) {
|
|
1254
|
-
return {
|
|
1255
|
-
isWholeLine: options.isWholeLine,
|
|
1256
|
-
rangeBehavior: options.rangeBehavior ? DecorationRangeBehavior.from(options.rangeBehavior) : undefined,
|
|
1257
|
-
overviewRulerLane: options.overviewRulerLane,
|
|
1258
|
-
light: options.light ? ThemableDecorationRenderOptions.from(options.light) : undefined,
|
|
1259
|
-
dark: options.dark ? ThemableDecorationRenderOptions.from(options.dark) : undefined,
|
|
1260
|
-
backgroundColor: options.backgroundColor,
|
|
1261
|
-
outline: options.outline,
|
|
1262
|
-
outlineColor: options.outlineColor,
|
|
1263
|
-
outlineStyle: options.outlineStyle,
|
|
1264
|
-
outlineWidth: options.outlineWidth,
|
|
1265
|
-
border: options.border,
|
|
1266
|
-
borderColor: options.borderColor,
|
|
1267
|
-
borderRadius: options.borderRadius,
|
|
1268
|
-
borderSpacing: options.borderSpacing,
|
|
1269
|
-
borderStyle: options.borderStyle,
|
|
1270
|
-
borderWidth: options.borderWidth,
|
|
1271
|
-
fontStyle: options.fontStyle,
|
|
1272
|
-
fontWeight: options.fontWeight,
|
|
1273
|
-
textDecoration: options.textDecoration,
|
|
1274
|
-
cursor: options.cursor,
|
|
1275
|
-
color: options.color,
|
|
1276
|
-
opacity: options.opacity,
|
|
1277
|
-
letterSpacing: options.letterSpacing,
|
|
1278
|
-
gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
|
|
1279
|
-
gutterIconSize: options.gutterIconSize,
|
|
1280
|
-
overviewRulerColor: options.overviewRulerColor,
|
|
1281
|
-
before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
|
|
1282
|
-
after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
|
|
1283
|
-
};
|
|
1284
|
-
}
|
|
1285
|
-
DecorationRenderOptions.from = from;
|
|
1286
|
-
})(DecorationRenderOptions || (exports.DecorationRenderOptions = DecorationRenderOptions = {}));
|
|
1287
|
-
var DecorationRangeBehavior;
|
|
1288
|
-
(function (DecorationRangeBehavior) {
|
|
1289
|
-
function from(value) {
|
|
1290
|
-
if (typeof value === 'undefined') {
|
|
1291
|
-
return value;
|
|
1292
|
-
}
|
|
1293
|
-
switch (value) {
|
|
1294
|
-
case types.DecorationRangeBehavior.OpenOpen:
|
|
1295
|
-
return rpc.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges;
|
|
1296
|
-
case types.DecorationRangeBehavior.ClosedClosed:
|
|
1297
|
-
return rpc.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges;
|
|
1298
|
-
case types.DecorationRangeBehavior.OpenClosed:
|
|
1299
|
-
return rpc.TrackedRangeStickiness.GrowsOnlyWhenTypingBefore;
|
|
1300
|
-
case types.DecorationRangeBehavior.ClosedOpen:
|
|
1301
|
-
return rpc.TrackedRangeStickiness.GrowsOnlyWhenTypingAfter;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
DecorationRangeBehavior.from = from;
|
|
1305
|
-
})(DecorationRangeBehavior || (exports.DecorationRangeBehavior = DecorationRangeBehavior = {}));
|
|
1306
|
-
var ThemableDecorationRenderOptions;
|
|
1307
|
-
(function (ThemableDecorationRenderOptions) {
|
|
1308
|
-
function from(options) {
|
|
1309
|
-
if (typeof options === 'undefined') {
|
|
1310
|
-
return options;
|
|
1311
|
-
}
|
|
1312
|
-
return {
|
|
1313
|
-
backgroundColor: options.backgroundColor,
|
|
1314
|
-
outline: options.outline,
|
|
1315
|
-
outlineColor: options.outlineColor,
|
|
1316
|
-
outlineStyle: options.outlineStyle,
|
|
1317
|
-
outlineWidth: options.outlineWidth,
|
|
1318
|
-
border: options.border,
|
|
1319
|
-
borderColor: options.borderColor,
|
|
1320
|
-
borderRadius: options.borderRadius,
|
|
1321
|
-
borderSpacing: options.borderSpacing,
|
|
1322
|
-
borderStyle: options.borderStyle,
|
|
1323
|
-
borderWidth: options.borderWidth,
|
|
1324
|
-
fontStyle: options.fontStyle,
|
|
1325
|
-
fontWeight: options.fontWeight,
|
|
1326
|
-
textDecoration: options.textDecoration,
|
|
1327
|
-
cursor: options.cursor,
|
|
1328
|
-
color: options.color,
|
|
1329
|
-
opacity: options.opacity,
|
|
1330
|
-
letterSpacing: options.letterSpacing,
|
|
1331
|
-
gutterIconPath: options.gutterIconPath ? pathOrURIToURI(options.gutterIconPath) : undefined,
|
|
1332
|
-
gutterIconSize: options.gutterIconSize,
|
|
1333
|
-
overviewRulerColor: options.overviewRulerColor,
|
|
1334
|
-
before: options.before ? ThemableDecorationAttachmentRenderOptions.from(options.before) : undefined,
|
|
1335
|
-
after: options.after ? ThemableDecorationAttachmentRenderOptions.from(options.after) : undefined,
|
|
1336
|
-
};
|
|
1337
|
-
}
|
|
1338
|
-
ThemableDecorationRenderOptions.from = from;
|
|
1339
|
-
})(ThemableDecorationRenderOptions || (exports.ThemableDecorationRenderOptions = ThemableDecorationRenderOptions = {}));
|
|
1340
|
-
var ThemableDecorationAttachmentRenderOptions;
|
|
1341
|
-
(function (ThemableDecorationAttachmentRenderOptions) {
|
|
1342
|
-
function from(options) {
|
|
1343
|
-
if (typeof options === 'undefined') {
|
|
1344
|
-
return options;
|
|
1345
|
-
}
|
|
1346
|
-
return {
|
|
1347
|
-
contentText: options.contentText,
|
|
1348
|
-
contentIconPath: options.contentIconPath ? pathOrURIToURI(options.contentIconPath) : undefined,
|
|
1349
|
-
border: options.border,
|
|
1350
|
-
borderColor: options.borderColor,
|
|
1351
|
-
fontStyle: options.fontStyle,
|
|
1352
|
-
fontWeight: options.fontWeight,
|
|
1353
|
-
textDecoration: options.textDecoration,
|
|
1354
|
-
color: options.color,
|
|
1355
|
-
backgroundColor: options.backgroundColor,
|
|
1356
|
-
margin: options.margin,
|
|
1357
|
-
width: options.width,
|
|
1358
|
-
height: options.height,
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
|
-
ThemableDecorationAttachmentRenderOptions.from = from;
|
|
1362
|
-
})(ThemableDecorationAttachmentRenderOptions || (exports.ThemableDecorationAttachmentRenderOptions = ThemableDecorationAttachmentRenderOptions = {}));
|
|
1363
|
-
var ViewColumn;
|
|
1364
|
-
(function (ViewColumn) {
|
|
1365
|
-
function from(column) {
|
|
1366
|
-
if (typeof column === 'number' && column >= types.ViewColumn.One) {
|
|
1367
|
-
return column - 1; // adjust zero index (ViewColumn.ONE => 0)
|
|
1368
|
-
}
|
|
1369
|
-
if (column === types.ViewColumn.Beside) {
|
|
1370
|
-
return SIDE_GROUP;
|
|
1371
|
-
}
|
|
1372
|
-
return ACTIVE_GROUP; // default is always the active group
|
|
1373
|
-
}
|
|
1374
|
-
ViewColumn.from = from;
|
|
1375
|
-
function to(position) {
|
|
1376
|
-
if (typeof position === 'number' && position >= 0) {
|
|
1377
|
-
return position + 1; // adjust to index (ViewColumn.ONE => 1)
|
|
1378
|
-
}
|
|
1379
|
-
throw new Error('invalid \'EditorGroupColumn\'');
|
|
1380
|
-
}
|
|
1381
|
-
ViewColumn.to = to;
|
|
1382
|
-
})(ViewColumn || (exports.ViewColumn = ViewColumn = {}));
|
|
1383
|
-
function pathOrURIToURI(value) {
|
|
1384
|
-
if (typeof value === 'undefined') {
|
|
1385
|
-
return value;
|
|
1386
|
-
}
|
|
1387
|
-
if (typeof value === 'string') {
|
|
1388
|
-
return types_impl_1.URI.file(value);
|
|
1389
|
-
}
|
|
1390
|
-
else {
|
|
1391
|
-
return value;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
exports.pathOrURIToURI = pathOrURIToURI;
|
|
1395
|
-
function pluginToPluginInfo(plugin) {
|
|
1396
|
-
return {
|
|
1397
|
-
id: plugin.model.id,
|
|
1398
|
-
name: plugin.model.name,
|
|
1399
|
-
displayName: plugin.model.displayName
|
|
1400
|
-
};
|
|
1401
|
-
}
|
|
1402
|
-
exports.pluginToPluginInfo = pluginToPluginInfo;
|
|
1403
|
-
var InlayHintKind;
|
|
1404
|
-
(function (InlayHintKind) {
|
|
1405
|
-
function from(kind) {
|
|
1406
|
-
return kind;
|
|
1407
|
-
}
|
|
1408
|
-
InlayHintKind.from = from;
|
|
1409
|
-
function to(kind) {
|
|
1410
|
-
return kind;
|
|
1411
|
-
}
|
|
1412
|
-
InlayHintKind.to = to;
|
|
1413
|
-
})(InlayHintKind || (exports.InlayHintKind = InlayHintKind = {}));
|
|
1414
|
-
var DataTransferItem;
|
|
1415
|
-
(function (DataTransferItem) {
|
|
1416
|
-
function to(mime, item, resolveFileData) {
|
|
1417
|
-
const file = item.fileData;
|
|
1418
|
-
if (file) {
|
|
1419
|
-
return new class extends types.DataTransferItem {
|
|
1420
|
-
asFile() {
|
|
1421
|
-
return {
|
|
1422
|
-
name: file.name,
|
|
1423
|
-
uri: types_impl_1.URI.revive(file.uri),
|
|
1424
|
-
data: () => resolveFileData(file.id),
|
|
1425
|
-
};
|
|
1426
|
-
}
|
|
1427
|
-
}('');
|
|
1428
|
-
}
|
|
1429
|
-
if (mime === 'text/uri-list' && item.uriListData) {
|
|
1430
|
-
return new types.DataTransferItem(reviveUriList(item.uriListData));
|
|
1431
|
-
}
|
|
1432
|
-
return new types.DataTransferItem(item.asString);
|
|
1433
|
-
}
|
|
1434
|
-
DataTransferItem.to = to;
|
|
1435
|
-
function reviveUriList(parts) {
|
|
1436
|
-
return parts.map(part => typeof part === 'string' ? part : types_impl_1.URI.revive(part).toString()).join('\r\n');
|
|
1437
|
-
}
|
|
1438
|
-
})(DataTransferItem || (exports.DataTransferItem = DataTransferItem = {}));
|
|
1439
|
-
var DataTransfer;
|
|
1440
|
-
(function (DataTransfer) {
|
|
1441
|
-
function toDataTransfer(value, resolveFileData) {
|
|
1442
|
-
const dataTransfer = new types.DataTransfer();
|
|
1443
|
-
for (const [mimeType, item] of value.items) {
|
|
1444
|
-
dataTransfer.set(mimeType, DataTransferItem.to(mimeType, item, resolveFileData));
|
|
1445
|
-
}
|
|
1446
|
-
return dataTransfer;
|
|
1447
|
-
}
|
|
1448
|
-
DataTransfer.toDataTransfer = toDataTransfer;
|
|
1449
|
-
})(DataTransfer || (exports.DataTransfer = DataTransfer = {}));
|
|
1450
|
-
var NotebookDocumentContentOptions;
|
|
1451
|
-
(function (NotebookDocumentContentOptions) {
|
|
1452
|
-
function from(options) {
|
|
1453
|
-
var _a, _b, _c;
|
|
1454
|
-
return {
|
|
1455
|
-
transientOutputs: (_a = options === null || options === void 0 ? void 0 : options.transientOutputs) !== null && _a !== void 0 ? _a : false,
|
|
1456
|
-
transientCellMetadata: (_b = options === null || options === void 0 ? void 0 : options.transientCellMetadata) !== null && _b !== void 0 ? _b : {},
|
|
1457
|
-
transientDocumentMetadata: (_c = options === null || options === void 0 ? void 0 : options.transientDocumentMetadata) !== null && _c !== void 0 ? _c : {},
|
|
1458
|
-
};
|
|
1459
|
-
}
|
|
1460
|
-
NotebookDocumentContentOptions.from = from;
|
|
1461
|
-
})(NotebookDocumentContentOptions || (exports.NotebookDocumentContentOptions = NotebookDocumentContentOptions = {}));
|
|
1462
|
-
var NotebookStatusBarItem;
|
|
1463
|
-
(function (NotebookStatusBarItem) {
|
|
1464
|
-
function from(item, commandsConverter, disposables) {
|
|
1465
|
-
const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
|
|
1466
|
-
return {
|
|
1467
|
-
alignment: item.alignment === types.NotebookCellStatusBarAlignment.Left ? 1 /* notebooks.CellStatusbarAlignment.Left */ : 2 /* notebooks.CellStatusbarAlignment.Right */,
|
|
1468
|
-
command: commandsConverter.toSafeCommand(command, disposables),
|
|
1469
|
-
text: item.text,
|
|
1470
|
-
tooltip: item.tooltip,
|
|
1471
|
-
priority: item.priority
|
|
1472
|
-
};
|
|
1473
|
-
}
|
|
1474
|
-
NotebookStatusBarItem.from = from;
|
|
1475
|
-
})(NotebookStatusBarItem || (exports.NotebookStatusBarItem = NotebookStatusBarItem = {}));
|
|
1476
|
-
var NotebookData;
|
|
1477
|
-
(function (NotebookData) {
|
|
1478
|
-
function from(data) {
|
|
1479
|
-
var _a;
|
|
1480
|
-
const res = {
|
|
1481
|
-
metadata: (_a = data.metadata) !== null && _a !== void 0 ? _a : Object.create(null),
|
|
1482
|
-
cells: [],
|
|
1483
|
-
};
|
|
1484
|
-
for (const cell of data.cells) {
|
|
1485
|
-
// types.NotebookCellData.validate(cell);
|
|
1486
|
-
res.cells.push(NotebookCellData.from(cell));
|
|
1487
|
-
}
|
|
1488
|
-
return res;
|
|
1489
|
-
}
|
|
1490
|
-
NotebookData.from = from;
|
|
1491
|
-
function to(data) {
|
|
1492
|
-
const res = new types.NotebookData(data.cells.map(NotebookCellData.to));
|
|
1493
|
-
if (!(0, common_1.isEmptyObject)(data.metadata)) {
|
|
1494
|
-
res.metadata = data.metadata;
|
|
1495
|
-
}
|
|
1496
|
-
return res;
|
|
1497
|
-
}
|
|
1498
|
-
NotebookData.to = to;
|
|
1499
|
-
})(NotebookData || (exports.NotebookData = NotebookData = {}));
|
|
1500
|
-
var NotebookCellData;
|
|
1501
|
-
(function (NotebookCellData) {
|
|
1502
|
-
function from(data) {
|
|
1503
|
-
var _a;
|
|
1504
|
-
return {
|
|
1505
|
-
cellKind: NotebookCellKind.from(data.kind),
|
|
1506
|
-
language: data.languageId,
|
|
1507
|
-
source: data.value,
|
|
1508
|
-
metadata: data.metadata,
|
|
1509
|
-
internalMetadata: NotebookCellExecutionSummary.from((_a = data.executionSummary) !== null && _a !== void 0 ? _a : {}),
|
|
1510
|
-
outputs: data.outputs ? data.outputs.map(NotebookCellOutputConverter.from) : []
|
|
1511
|
-
};
|
|
1512
|
-
}
|
|
1513
|
-
NotebookCellData.from = from;
|
|
1514
|
-
function to(data) {
|
|
1515
|
-
return new types.NotebookCellData(NotebookCellKind.to(data.cellKind), data.source, data.language, data.outputs ? data.outputs.map(NotebookCellOutput.to) : undefined, data.metadata, data.internalMetadata ? NotebookCellExecutionSummary.to(data.internalMetadata) : undefined);
|
|
1516
|
-
}
|
|
1517
|
-
NotebookCellData.to = to;
|
|
1518
|
-
})(NotebookCellData || (exports.NotebookCellData = NotebookCellData = {}));
|
|
1519
|
-
var NotebookCellKind;
|
|
1520
|
-
(function (NotebookCellKind) {
|
|
1521
|
-
function from(data) {
|
|
1522
|
-
switch (data) {
|
|
1523
|
-
case types.NotebookCellKind.Markup:
|
|
1524
|
-
return notebooks.CellKind.Markup;
|
|
1525
|
-
case types.NotebookCellKind.Code:
|
|
1526
|
-
default:
|
|
1527
|
-
return notebooks.CellKind.Code;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
NotebookCellKind.from = from;
|
|
1531
|
-
function to(data) {
|
|
1532
|
-
switch (data) {
|
|
1533
|
-
case notebooks.CellKind.Markup:
|
|
1534
|
-
return types.NotebookCellKind.Markup;
|
|
1535
|
-
case notebooks.CellKind.Code:
|
|
1536
|
-
default:
|
|
1537
|
-
return types.NotebookCellKind.Code;
|
|
1538
|
-
}
|
|
1539
|
-
}
|
|
1540
|
-
NotebookCellKind.to = to;
|
|
1541
|
-
})(NotebookCellKind || (exports.NotebookCellKind = NotebookCellKind = {}));
|
|
1542
|
-
var NotebookCellOutput;
|
|
1543
|
-
(function (NotebookCellOutput) {
|
|
1544
|
-
function from(output) {
|
|
1545
|
-
return {
|
|
1546
|
-
outputId: output.outputId,
|
|
1547
|
-
items: output.items.map(NotebookCellOutputItem.from),
|
|
1548
|
-
metadata: output.metadata
|
|
1549
|
-
};
|
|
1550
|
-
}
|
|
1551
|
-
NotebookCellOutput.from = from;
|
|
1552
|
-
function to(output) {
|
|
1553
|
-
const items = output.items.map(NotebookCellOutputItem.to);
|
|
1554
|
-
return new types.NotebookCellOutput(items, output.outputId, output.metadata);
|
|
1555
|
-
}
|
|
1556
|
-
NotebookCellOutput.to = to;
|
|
1557
|
-
})(NotebookCellOutput || (exports.NotebookCellOutput = NotebookCellOutput = {}));
|
|
1558
|
-
var NotebookCellOutputItem;
|
|
1559
|
-
(function (NotebookCellOutputItem) {
|
|
1560
|
-
function from(item) {
|
|
1561
|
-
return {
|
|
1562
|
-
mime: item.mime,
|
|
1563
|
-
valueBytes: buffer_1.BinaryBuffer.wrap(item.data),
|
|
1564
|
-
};
|
|
1565
|
-
}
|
|
1566
|
-
NotebookCellOutputItem.from = from;
|
|
1567
|
-
function to(item) {
|
|
1568
|
-
return new types.NotebookCellOutputItem(item.valueBytes.buffer, item.mime);
|
|
1569
|
-
}
|
|
1570
|
-
NotebookCellOutputItem.to = to;
|
|
1571
|
-
})(NotebookCellOutputItem || (exports.NotebookCellOutputItem = NotebookCellOutputItem = {}));
|
|
1572
|
-
var NotebookCellOutputConverter;
|
|
1573
|
-
(function (NotebookCellOutputConverter) {
|
|
1574
|
-
function from(output) {
|
|
1575
|
-
return {
|
|
1576
|
-
outputId: output.outputId,
|
|
1577
|
-
items: output.items.map(NotebookCellOutputItem.from),
|
|
1578
|
-
metadata: output.metadata
|
|
1579
|
-
};
|
|
1580
|
-
}
|
|
1581
|
-
NotebookCellOutputConverter.from = from;
|
|
1582
|
-
function to(output) {
|
|
1583
|
-
const items = output.items.map(NotebookCellOutputItem.to);
|
|
1584
|
-
return new types.NotebookCellOutput(items, output.outputId, output.metadata);
|
|
1585
|
-
}
|
|
1586
|
-
NotebookCellOutputConverter.to = to;
|
|
1587
|
-
function ensureUniqueMimeTypes(items, warn = false) {
|
|
1588
|
-
const seen = new Set();
|
|
1589
|
-
const removeIdx = new Set();
|
|
1590
|
-
for (let i = 0; i < items.length; i++) {
|
|
1591
|
-
const item = items[i];
|
|
1592
|
-
// We can have multiple text stream mime types in the same output.
|
|
1593
|
-
if (!seen.has(item.mime) || (0, common_2.isTextStreamMime)(item.mime)) {
|
|
1594
|
-
seen.add(item.mime);
|
|
1595
|
-
continue;
|
|
1596
|
-
}
|
|
1597
|
-
// duplicated mime types... first has won
|
|
1598
|
-
removeIdx.add(i);
|
|
1599
|
-
if (warn) {
|
|
1600
|
-
console.warn(`DUPLICATED mime type '${item.mime}' will be dropped`);
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
if (removeIdx.size === 0) {
|
|
1604
|
-
return items;
|
|
1605
|
-
}
|
|
1606
|
-
return items.filter((_, index) => !removeIdx.has(index));
|
|
1607
|
-
}
|
|
1608
|
-
NotebookCellOutputConverter.ensureUniqueMimeTypes = ensureUniqueMimeTypes;
|
|
1609
|
-
})(NotebookCellOutputConverter || (exports.NotebookCellOutputConverter = NotebookCellOutputConverter = {}));
|
|
1610
|
-
var NotebookCellExecutionSummary;
|
|
1611
|
-
(function (NotebookCellExecutionSummary) {
|
|
1612
|
-
function to(data) {
|
|
1613
|
-
return {
|
|
1614
|
-
timing: typeof data.runStartTime === 'number' && typeof data.runEndTime === 'number' ? { startTime: data.runStartTime, endTime: data.runEndTime } : undefined,
|
|
1615
|
-
executionOrder: data.executionOrder,
|
|
1616
|
-
success: data.lastRunSuccess
|
|
1617
|
-
};
|
|
1618
|
-
}
|
|
1619
|
-
NotebookCellExecutionSummary.to = to;
|
|
1620
|
-
function from(data) {
|
|
1621
|
-
var _a, _b;
|
|
1622
|
-
return {
|
|
1623
|
-
lastRunSuccess: data.success,
|
|
1624
|
-
runStartTime: (_a = data.timing) === null || _a === void 0 ? void 0 : _a.startTime,
|
|
1625
|
-
runEndTime: (_b = data.timing) === null || _b === void 0 ? void 0 : _b.endTime,
|
|
1626
|
-
executionOrder: data.executionOrder
|
|
1627
|
-
};
|
|
1628
|
-
}
|
|
1629
|
-
NotebookCellExecutionSummary.from = from;
|
|
1630
|
-
})(NotebookCellExecutionSummary || (exports.NotebookCellExecutionSummary = NotebookCellExecutionSummary = {}));
|
|
1631
|
-
var NotebookRange;
|
|
1632
|
-
(function (NotebookRange) {
|
|
1633
|
-
function from(range) {
|
|
1634
|
-
return { start: range.start, end: range.end };
|
|
1635
|
-
}
|
|
1636
|
-
NotebookRange.from = from;
|
|
1637
|
-
function to(range) {
|
|
1638
|
-
return new types.NotebookRange(range.start, range.end);
|
|
1639
|
-
}
|
|
1640
|
-
NotebookRange.to = to;
|
|
1641
|
-
})(NotebookRange || (exports.NotebookRange = NotebookRange = {}));
|
|
1642
|
-
var NotebookKernelSourceAction;
|
|
1643
|
-
(function (NotebookKernelSourceAction) {
|
|
1644
|
-
function from(item, commandsConverter, disposables) {
|
|
1645
|
-
const command = typeof item.command === 'string' ? { title: '', command: item.command } : item.command;
|
|
1646
|
-
return {
|
|
1647
|
-
command: commandsConverter.toSafeCommand(command, disposables),
|
|
1648
|
-
label: item.label,
|
|
1649
|
-
description: item.description,
|
|
1650
|
-
detail: item.detail,
|
|
1651
|
-
documentation: item.documentation
|
|
1652
|
-
};
|
|
1653
|
-
}
|
|
1654
|
-
NotebookKernelSourceAction.from = from;
|
|
1655
|
-
})(NotebookKernelSourceAction || (exports.NotebookKernelSourceAction = NotebookKernelSourceAction = {}));
|
|
1656
|
-
var TestMessage;
|
|
1657
|
-
(function (TestMessage) {
|
|
1658
|
-
function from(message) {
|
|
1659
|
-
if ((0, arrays_1.isReadonlyArray)(message)) {
|
|
1660
|
-
return message.map(msg => TestMessage.from(msg)[0]);
|
|
1661
|
-
}
|
|
1662
|
-
return [{
|
|
1663
|
-
location: fromLocationToLanguageServerLocation(message.location),
|
|
1664
|
-
message: fromMarkdown(message.message),
|
|
1665
|
-
expected: message.expectedOutput,
|
|
1666
|
-
actual: message.actualOutput,
|
|
1667
|
-
contextValue: message.contextValue,
|
|
1668
|
-
stackTrace: message.stackTrace && message.stackTrace.map(frame => TestMessageStackFrame.from(frame))
|
|
1669
|
-
}];
|
|
1670
|
-
}
|
|
1671
|
-
TestMessage.from = from;
|
|
1672
|
-
})(TestMessage || (exports.TestMessage = TestMessage = {}));
|
|
1673
|
-
var TestMessageStackFrame;
|
|
1674
|
-
(function (TestMessageStackFrame) {
|
|
1675
|
-
function from(stackTrace) {
|
|
1676
|
-
var _a;
|
|
1677
|
-
return {
|
|
1678
|
-
label: stackTrace.label,
|
|
1679
|
-
position: stackTrace.position,
|
|
1680
|
-
uri: (_a = stackTrace === null || stackTrace === void 0 ? void 0 : stackTrace.uri) === null || _a === void 0 ? void 0 : _a.toString()
|
|
1681
|
-
};
|
|
1682
|
-
}
|
|
1683
|
-
TestMessageStackFrame.from = from;
|
|
1684
|
-
})(TestMessageStackFrame || (exports.TestMessageStackFrame = TestMessageStackFrame = {}));
|
|
1685
|
-
var TestItem;
|
|
1686
|
-
(function (TestItem) {
|
|
1687
|
-
function from(test) {
|
|
1688
|
-
return TestItem.fromPartial(test);
|
|
1689
|
-
}
|
|
1690
|
-
TestItem.from = from;
|
|
1691
|
-
function fromPartial(test) {
|
|
1692
|
-
const result = {};
|
|
1693
|
-
if ('id' in test) {
|
|
1694
|
-
result.id = test.id;
|
|
1695
|
-
}
|
|
1696
|
-
if ('uri' in test) {
|
|
1697
|
-
result.uri = test.uri;
|
|
1698
|
-
}
|
|
1699
|
-
if ('label' in test) {
|
|
1700
|
-
result.label = test.label;
|
|
1701
|
-
}
|
|
1702
|
-
if ('range' in test) {
|
|
1703
|
-
result.range = fromRange(test.range);
|
|
1704
|
-
}
|
|
1705
|
-
if ('sortKey' in test) {
|
|
1706
|
-
result.sortKey = test.sortText;
|
|
1707
|
-
}
|
|
1708
|
-
if ('tags' in test) {
|
|
1709
|
-
result.tags = test.tags ? test.tags.map(tag => tag.id) : [];
|
|
1710
|
-
}
|
|
1711
|
-
if ('busy' in test) {
|
|
1712
|
-
result.busy = test.busy;
|
|
1713
|
-
}
|
|
1714
|
-
if ('sortKey' in test) {
|
|
1715
|
-
result.sortKey = test.sortText;
|
|
1716
|
-
}
|
|
1717
|
-
if ('canResolveChildren' in test) {
|
|
1718
|
-
result.canResolveChildren = test.canResolveChildren;
|
|
1719
|
-
}
|
|
1720
|
-
if ('description' in test) {
|
|
1721
|
-
result.description = test.description;
|
|
1722
|
-
}
|
|
1723
|
-
if ('description' in test) {
|
|
1724
|
-
result.error = test.error;
|
|
1725
|
-
}
|
|
1726
|
-
if (test.children) {
|
|
1727
|
-
const children = [];
|
|
1728
|
-
test.children.forEach(item => {
|
|
1729
|
-
children.push(TestItem.from(item));
|
|
1730
|
-
});
|
|
1731
|
-
result.children = children;
|
|
1732
|
-
}
|
|
1733
|
-
return result;
|
|
1734
|
-
}
|
|
1735
|
-
TestItem.fromPartial = fromPartial;
|
|
1736
|
-
})(TestItem || (exports.TestItem = TestItem = {}));
|
|
1737
|
-
//# sourceMappingURL=type-converters.js.map
|