@theia/plugin-ext 1.18.0-next.ed824933 → 1.21.0-next.11
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/LICENSE +642 -0
- package/README.md +5 -0
- package/lib/common/arrays.d.ts +4 -0
- package/lib/common/arrays.d.ts.map +1 -1
- package/lib/common/arrays.js +9 -1
- package/lib/common/arrays.js.map +1 -1
- package/lib/common/connection.d.ts +47 -34
- package/lib/common/connection.d.ts.map +1 -1
- package/lib/common/connection.js +90 -28
- package/lib/common/connection.js.map +1 -1
- package/lib/common/plugin-api-rpc-model.d.ts +4 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc-model.js.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +30 -13
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js +21 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/plugin-protocol.d.ts +3 -1
- package/lib/common/plugin-protocol.d.ts.map +1 -1
- package/lib/common/plugin-protocol.js.map +1 -1
- package/lib/hosted/browser/hosted-plugin.d.ts +5 -6
- package/lib/hosted/browser/hosted-plugin.d.ts.map +1 -1
- package/lib/hosted/browser/hosted-plugin.js +20 -14
- package/lib/hosted/browser/hosted-plugin.js.map +1 -1
- package/lib/hosted/browser/worker/debug-stub.d.ts.map +1 -1
- package/lib/hosted/browser/worker/debug-stub.js +1 -0
- package/lib/hosted/browser/worker/debug-stub.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-deployer-handler.js +14 -38
- package/lib/hosted/node/hosted-plugin-deployer-handler.js.map +1 -1
- package/lib/hosted/node/hosted-plugin-localization-service.d.ts +37 -0
- package/lib/hosted/node/hosted-plugin-localization-service.d.ts.map +1 -0
- package/lib/hosted/node/hosted-plugin-localization-service.js +197 -0
- package/lib/hosted/node/hosted-plugin-localization-service.js.map +1 -0
- package/lib/hosted/node/hosted-plugin-process.d.ts +2 -2
- package/lib/hosted/node/hosted-plugin-process.d.ts.map +1 -1
- package/lib/hosted/node/hosted-plugin-process.js +5 -7
- package/lib/hosted/node/hosted-plugin-process.js.map +1 -1
- package/lib/hosted/node/plugin-ext-hosted-backend-module.d.ts.map +1 -1
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js +2 -0
- package/lib/hosted/node/plugin-ext-hosted-backend-module.js.map +1 -1
- package/lib/hosted/node/plugin-manifest-loader.d.ts +1 -1
- package/lib/hosted/node/plugin-manifest-loader.d.ts.map +1 -1
- package/lib/hosted/node/plugin-manifest-loader.js +4 -52
- package/lib/hosted/node/plugin-manifest-loader.js.map +1 -1
- package/lib/hosted/node/plugin-service.d.ts +3 -6
- package/lib/hosted/node/plugin-service.d.ts.map +1 -1
- package/lib/hosted/node/plugin-service.js +7 -40
- package/lib/hosted/node/plugin-service.js.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts +1 -1
- package/lib/hosted/node/scanners/scanner-theia.d.ts.map +1 -1
- package/lib/hosted/node/scanners/scanner-theia.js +6 -2
- package/lib/hosted/node/scanners/scanner-theia.js.map +1 -1
- package/lib/main/browser/callhierarchy/callhierarchy-type-converters.d.ts.map +1 -1
- package/lib/main/browser/callhierarchy/callhierarchy-type-converters.js +6 -2
- package/lib/main/browser/callhierarchy/callhierarchy-type-converters.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-opener.d.ts +2 -2
- package/lib/main/browser/custom-editors/custom-editor-opener.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editor-opener.js +6 -2
- package/lib/main/browser/custom-editors/custom-editor-opener.js.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.js +1 -2
- package/lib/main/browser/custom-editors/custom-editors-main.js.map +1 -1
- package/lib/main/browser/debug/debug-main.d.ts +3 -3
- package/lib/main/browser/debug/debug-main.d.ts.map +1 -1
- package/lib/main/browser/debug/debug-main.js +2 -3
- package/lib/main/browser/debug/debug-main.js.map +1 -1
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts +1 -1
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.js +2 -2
- package/lib/main/browser/debug/plugin-debug-adapter-contribution.js.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +8 -0
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.js +15 -0
- package/lib/main/browser/debug/plugin-debug-service.js.map +1 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.d.ts +6 -6
- package/lib/main/browser/debug/plugin-debug-session-factory.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.js +1 -1
- package/lib/main/browser/debug/plugin-debug-session-factory.js.map +1 -1
- package/lib/main/browser/dialogs/modal-notification.d.ts +3 -3
- package/lib/main/browser/dialogs/modal-notification.d.ts.map +1 -1
- package/lib/main/browser/dialogs/modal-notification.js +17 -6
- package/lib/main/browser/dialogs/modal-notification.js.map +1 -1
- package/lib/main/browser/editors-and-documents-main.d.ts.map +1 -1
- package/lib/main/browser/editors-and-documents-main.js +3 -4
- package/lib/main/browser/editors-and-documents-main.js.map +1 -1
- package/lib/main/browser/file-system-main-impl.js +1 -1
- package/lib/main/browser/file-system-main-impl.js.map +1 -1
- package/lib/main/browser/languages-main.js +1 -1
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/main-context.js +2 -2
- package/lib/main/browser/main-context.js.map +1 -1
- package/lib/main/browser/message-registry-main.js +1 -1
- package/lib/main/browser/message-registry-main.js.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.d.ts.map +1 -1
- package/lib/main/browser/plugin-ext-frontend-module.js +5 -3
- package/lib/main/browser/plugin-ext-frontend-module.js.map +1 -1
- package/lib/main/browser/quick-open-main.d.ts +3 -6
- package/lib/main/browser/quick-open-main.d.ts.map +1 -1
- package/lib/main/browser/quick-open-main.js +48 -100
- package/lib/main/browser/quick-open-main.js.map +1 -1
- package/lib/main/browser/tasks-main.d.ts.map +1 -1
- package/lib/main/browser/tasks-main.js +6 -0
- package/lib/main/browser/tasks-main.js.map +1 -1
- package/lib/main/browser/timeline-main.d.ts.map +1 -1
- package/lib/main/browser/timeline-main.js +1 -1
- package/lib/main/browser/timeline-main.js.map +1 -1
- package/lib/main/browser/view/plugin-view-registry.d.ts +3 -2
- package/lib/main/browser/view/plugin-view-registry.d.ts.map +1 -1
- package/lib/main/browser/view/plugin-view-registry.js +77 -26
- package/lib/main/browser/view/plugin-view-registry.js.map +1 -1
- package/lib/main/browser/view/plugin-view-widget.d.ts +2 -0
- package/lib/main/browser/view/plugin-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/plugin-view-widget.js +3 -1
- package/lib/main/browser/view/plugin-view-widget.js.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +3 -7
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +26 -39
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/main/browser/webview/webview-frontend-security-warnings.d.ts.map +1 -1
- package/lib/main/browser/webview/webview-frontend-security-warnings.js +8 -5
- package/lib/main/browser/webview/webview-frontend-security-warnings.js.map +1 -1
- package/lib/main/browser/webview/webview-preferences.d.ts.map +1 -1
- package/lib/main/browser/webview/webview-preferences.js +3 -2
- package/lib/main/browser/webview/webview-preferences.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +1 -1
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview/webview.js +2 -2
- package/lib/main/browser/webview/webview.js.map +1 -1
- package/lib/plugin/comments.d.ts.map +1 -1
- package/lib/plugin/comments.js +2 -3
- package/lib/plugin/comments.js.map +1 -1
- package/lib/plugin/custom-editors.d.ts +1 -2
- package/lib/plugin/custom-editors.d.ts.map +1 -1
- package/lib/plugin/custom-editors.js +2 -3
- package/lib/plugin/custom-editors.js.map +1 -1
- package/lib/plugin/decorations.d.ts.map +1 -1
- package/lib/plugin/decorations.js +2 -3
- package/lib/plugin/decorations.js.map +1 -1
- package/lib/plugin/document-data.d.ts.map +1 -1
- package/lib/plugin/document-data.js +1 -1
- package/lib/plugin/document-data.js.map +1 -1
- package/lib/plugin/documents.d.ts.map +1 -1
- package/lib/plugin/documents.js +1 -2
- package/lib/plugin/documents.js.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.js +2 -3
- package/lib/plugin/file-system-event-service-ext-impl.js.map +1 -1
- package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-ext-impl.js +12 -13
- package/lib/plugin/file-system-ext-impl.js.map +1 -1
- package/lib/plugin/known-commands.spec.js +1 -2
- package/lib/plugin/known-commands.spec.js.map +1 -1
- package/lib/plugin/languages/call-hierarchy.d.ts +1 -1
- package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/call-hierarchy.js +8 -3
- package/lib/plugin/languages/call-hierarchy.js.map +1 -1
- package/lib/plugin/languages/rename.d.ts +1 -2
- package/lib/plugin/languages/rename.d.ts.map +1 -1
- package/lib/plugin/languages/rename.js.map +1 -1
- package/lib/plugin/languages.d.ts +1 -1
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/languages.js +2 -1
- package/lib/plugin/languages.js.map +1 -1
- package/lib/plugin/message-registry.d.ts.map +1 -1
- package/lib/plugin/message-registry.js +3 -0
- package/lib/plugin/message-registry.js.map +1 -1
- package/lib/plugin/node/debug/debug.d.ts +7 -6
- package/lib/plugin/node/debug/debug.d.ts.map +1 -1
- package/lib/plugin/node/debug/debug.js +37 -19
- package/lib/plugin/node/debug/debug.js.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-session.d.ts +7 -7
- package/lib/plugin/node/debug/plugin-debug-adapter-session.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-session.js +6 -6
- package/lib/plugin/node/debug/plugin-debug-adapter-session.js.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-starter.d.ts +8 -4
- package/lib/plugin/node/debug/plugin-debug-adapter-starter.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-debug-adapter-starter.js +16 -13
- package/lib/plugin/node/debug/plugin-debug-adapter-starter.js.map +1 -1
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +10 -5
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts +2 -0
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-manager.js +24 -3
- package/lib/plugin/plugin-manager.js.map +1 -1
- package/lib/plugin/plugin-storage.d.ts +4 -0
- package/lib/plugin/plugin-storage.d.ts.map +1 -1
- package/lib/plugin/plugin-storage.js +6 -1
- package/lib/plugin/plugin-storage.js.map +1 -1
- package/lib/plugin/preference-registry.spec.js.map +1 -1
- package/lib/plugin/quick-open.d.ts +2 -4
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/quick-open.js +12 -29
- package/lib/plugin/quick-open.js.map +1 -1
- package/lib/plugin/tasks/tasks.d.ts +1 -3
- package/lib/plugin/tasks/tasks.d.ts.map +1 -1
- package/lib/plugin/tasks/tasks.js +3 -17
- package/lib/plugin/tasks/tasks.js.map +1 -1
- package/lib/plugin/timeline.d.ts.map +1 -1
- package/lib/plugin/timeline.js +1 -2
- package/lib/plugin/timeline.js.map +1 -1
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.js +18 -11
- package/lib/plugin/type-converters.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +55 -1
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +81 -1
- package/lib/plugin/types-impl.js.map +1 -1
- package/lib/plugin/webviews.d.ts +1 -2
- package/lib/plugin/webviews.d.ts.map +1 -1
- package/lib/plugin/webviews.js.map +1 -1
- package/package.json +31 -27
- package/src/common/arrays.ts +8 -0
- package/src/common/connection.ts +98 -42
- package/src/common/plugin-api-rpc-model.ts +4 -0
- package/src/common/plugin-api-rpc.ts +31 -12
- package/src/common/plugin-protocol.ts +3 -1
- package/src/hosted/browser/hosted-plugin.ts +20 -13
- package/src/hosted/browser/worker/debug-stub.ts +1 -0
- package/src/hosted/node/hosted-plugin-deployer-handler.ts +13 -40
- package/src/hosted/node/hosted-plugin-localization-service.ts +201 -0
- package/src/hosted/node/hosted-plugin-process.ts +4 -6
- package/src/hosted/node/plugin-ext-hosted-backend-module.ts +2 -0
- package/src/hosted/node/plugin-manifest-loader.ts +4 -56
- package/src/hosted/node/plugin-service.ts +7 -40
- package/src/hosted/node/scanners/scanner-theia.ts +7 -3
- package/src/main/browser/callhierarchy/callhierarchy-type-converters.ts +6 -2
- package/src/main/browser/custom-editors/custom-editor-opener.tsx +8 -4
- package/src/main/browser/custom-editors/custom-editors-main.ts +1 -2
- package/src/main/browser/debug/debug-main.ts +4 -5
- package/src/main/browser/debug/plugin-debug-adapter-contribution.ts +3 -3
- package/src/main/browser/debug/plugin-debug-service.ts +23 -0
- package/src/main/browser/debug/plugin-debug-session-factory.ts +6 -6
- package/src/main/browser/dialogs/modal-notification.ts +18 -7
- package/src/main/browser/dialogs/style/modal-notification.css +17 -2
- package/src/main/browser/editors-and-documents-main.ts +1 -2
- package/src/main/browser/file-system-main-impl.ts +1 -1
- package/src/main/browser/languages-main.ts +1 -1
- package/src/main/browser/main-context.ts +3 -3
- package/src/main/browser/message-registry-main.ts +1 -1
- package/src/main/browser/plugin-ext-frontend-module.ts +6 -4
- package/src/main/browser/quick-open-main.ts +54 -109
- package/src/main/browser/style/tree.css +4 -0
- package/src/main/browser/tasks-main.ts +7 -0
- package/src/main/browser/timeline-main.ts +1 -2
- package/src/main/browser/view/plugin-view-registry.ts +83 -28
- package/src/main/browser/view/plugin-view-widget.ts +7 -2
- package/src/main/browser/view/tree-view-widget.tsx +43 -65
- package/src/main/browser/webview/pre/host.js +20 -12
- package/src/main/browser/webview/pre/main.js +1 -2
- package/src/main/browser/webview/pre/service-worker.js +1 -1
- package/src/main/browser/webview/webview-frontend-security-warnings.ts +8 -7
- package/src/main/browser/webview/webview-preferences.ts +3 -2
- package/src/main/browser/webview/webview.ts +2 -2
- package/src/plugin/comments.ts +1 -2
- package/src/plugin/custom-editors.ts +2 -4
- package/src/plugin/decorations.ts +1 -2
- package/src/plugin/document-data.ts +1 -2
- package/src/plugin/documents.ts +1 -2
- package/src/plugin/file-system-event-service-ext-impl.ts +1 -2
- package/src/plugin/file-system-ext-impl.ts +1 -2
- package/src/plugin/known-commands.spec.ts +1 -2
- package/src/plugin/languages/call-hierarchy.ts +14 -5
- package/src/plugin/languages/rename.ts +1 -2
- package/src/plugin/languages.ts +5 -2
- package/src/plugin/message-registry.ts +3 -1
- package/src/plugin/node/debug/debug.ts +46 -26
- package/src/plugin/node/debug/plugin-debug-adapter-session.ts +9 -9
- package/src/plugin/node/debug/plugin-debug-adapter-starter.ts +17 -14
- package/src/plugin/plugin-context.ts +24 -12
- package/src/plugin/plugin-manager.ts +26 -4
- package/src/plugin/plugin-storage.ts +7 -2
- package/src/plugin/preference-registry.spec.ts +1 -2
- package/src/plugin/quick-open.ts +16 -36
- package/src/plugin/tasks/tasks.ts +4 -18
- package/src/plugin/timeline.ts +1 -2
- package/src/plugin/type-converters.ts +20 -13
- package/src/plugin/types-impl.ts +77 -1
- package/src/plugin/webviews.ts +1 -2
- package/lib/common/plugin-message-reader.d.ts +0 -46
- package/lib/common/plugin-message-reader.d.ts.map +0 -1
- package/lib/common/plugin-message-reader.js +0 -116
- package/lib/common/plugin-message-reader.js.map +0 -1
- package/lib/common/plugin-message-writer.d.ts +0 -38
- package/lib/common/plugin-message-writer.d.ts.map +0 -1
- package/lib/common/plugin-message-writer.js +0 -67
- package/lib/common/plugin-message-writer.js.map +0 -1
- package/lib/main/browser/connection-main.d.ts +0 -59
- package/lib/main/browser/connection-main.d.ts.map +0 -1
- package/lib/main/browser/connection-main.js +0 -98
- package/lib/main/browser/connection-main.js.map +0 -1
- package/lib/plugin/connection-ext.d.ts +0 -56
- package/lib/plugin/connection-ext.d.ts.map +0 -1
- package/lib/plugin/connection-ext.js +0 -88
- package/lib/plugin/connection-ext.js.map +0 -1
- package/src/common/plugin-message-reader.ts +0 -111
- package/src/common/plugin-message-writer.ts +0 -65
- package/src/main/browser/connection-main.ts +0 -107
- package/src/plugin/connection-ext.ts +0 -95
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webviews.d.ts","sourceRoot":"","sources":["../../src/plugin/webviews.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,YAAY,EAAsB,eAAe,EAA2C,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"webviews.d.ts","sourceRoot":"","sources":["../../src/plugin/webviews.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,YAAY,EAAsB,eAAe,EAA2C,MAAM,0BAA0B,CAAC;AAClL,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAE9D,OAAO,EAAc,sBAAsB,EAAO,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,qBAAa,eAAgB,YAAW,WAAW;IAW3C,OAAO,CAAC,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CAAA;KAAE,GAAG,SAAS,CAE5E;IAED,IAAI,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,GAAG;QAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;QAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAA;KAAE,GAAG,SAAS,EAMnF;IAED,IAAI,OAAO,IAAI,WAAW,CAGzB;IAED,IAAI,OAAO,IAAI,KAAK,CAAC,mBAAmB,CAGvC;IAED,IAAI,UAAU,IAAI,KAAK,CAAC,UAAU,GAAG,SAAS,CAG7C;IAED,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,IAAI;IAKxD,IAAI,WAAW,IAAI,KAAK,CAAC,uBAAuB,CAG/C;IAED,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI;IAK1D,IAAI,MAAM,IAAI,OAAO,CAGpB;IAED,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAK/B,IAAI,OAAO,IAAI,OAAO,CAGrB;IAED,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI;IAKhC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,sBAAsB,EAAE,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI;IA0BjH,WAAW,CAAC,OAAO,EAAE,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC;IAK/C,OAAO,CAAC,eAAe;CAK1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webviews.js","sourceRoot":"","sources":["../../src/plugin/webviews.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,+BAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"webviews.js","sourceRoot":"","sources":["../../src/plugin/webviews.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;k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a;SAChB,CAAC,CAAC;IACP,CAAC;IAED,8DAA8D;IAC9D,WAAW,CAAC,OAAY;QACpB,IAAI,CAAC,eAAe,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAEO,eAAe;QACnB,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;SACrD;IACL,CAAC;CACJ;AA5JD,4CA4JC"}
|
package/package.json
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/plugin-ext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0-next.11+a3c2e91fa9a",
|
|
4
4
|
"description": "Theia - Plugin Extension",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@theia/bulk-edit": "1.
|
|
9
|
-
"@theia/callhierarchy": "1.
|
|
10
|
-
"@theia/console": "1.
|
|
11
|
-
"@theia/core": "1.
|
|
12
|
-
"@theia/debug": "1.
|
|
13
|
-
"@theia/editor": "1.
|
|
14
|
-
"@theia/file-search": "1.
|
|
15
|
-
"@theia/filesystem": "1.
|
|
16
|
-
"@theia/markers": "1.
|
|
17
|
-
"@theia/messages": "1.
|
|
18
|
-
"@theia/monaco": "1.
|
|
19
|
-
"@theia/navigator": "1.
|
|
20
|
-
"@theia/output": "1.
|
|
21
|
-
"@theia/plugin": "1.
|
|
22
|
-
"@theia/preferences": "1.
|
|
23
|
-
"@theia/scm": "1.
|
|
24
|
-
"@theia/search-in-workspace": "1.
|
|
25
|
-
"@theia/task": "1.
|
|
26
|
-
"@theia/terminal": "1.
|
|
27
|
-
"@theia/timeline": "1.
|
|
28
|
-
"@theia/workspace": "1.
|
|
8
|
+
"@theia/bulk-edit": "1.21.0-next.11+a3c2e91fa9a",
|
|
9
|
+
"@theia/callhierarchy": "1.21.0-next.11+a3c2e91fa9a",
|
|
10
|
+
"@theia/console": "1.21.0-next.11+a3c2e91fa9a",
|
|
11
|
+
"@theia/core": "1.21.0-next.11+a3c2e91fa9a",
|
|
12
|
+
"@theia/debug": "1.21.0-next.11+a3c2e91fa9a",
|
|
13
|
+
"@theia/editor": "1.21.0-next.11+a3c2e91fa9a",
|
|
14
|
+
"@theia/file-search": "1.21.0-next.11+a3c2e91fa9a",
|
|
15
|
+
"@theia/filesystem": "1.21.0-next.11+a3c2e91fa9a",
|
|
16
|
+
"@theia/markers": "1.21.0-next.11+a3c2e91fa9a",
|
|
17
|
+
"@theia/messages": "1.21.0-next.11+a3c2e91fa9a",
|
|
18
|
+
"@theia/monaco": "1.21.0-next.11+a3c2e91fa9a",
|
|
19
|
+
"@theia/navigator": "1.21.0-next.11+a3c2e91fa9a",
|
|
20
|
+
"@theia/output": "1.21.0-next.11+a3c2e91fa9a",
|
|
21
|
+
"@theia/plugin": "1.21.0-next.11+a3c2e91fa9a",
|
|
22
|
+
"@theia/preferences": "1.21.0-next.11+a3c2e91fa9a",
|
|
23
|
+
"@theia/scm": "1.21.0-next.11+a3c2e91fa9a",
|
|
24
|
+
"@theia/search-in-workspace": "1.21.0-next.11+a3c2e91fa9a",
|
|
25
|
+
"@theia/task": "1.21.0-next.11+a3c2e91fa9a",
|
|
26
|
+
"@theia/terminal": "1.21.0-next.11+a3c2e91fa9a",
|
|
27
|
+
"@theia/timeline": "1.21.0-next.11+a3c2e91fa9a",
|
|
28
|
+
"@theia/workspace": "1.21.0-next.11+a3c2e91fa9a",
|
|
29
|
+
"@types/markdown-it": "*",
|
|
29
30
|
"@types/mime": "^2.0.1",
|
|
30
31
|
"decompress": "^4.2.1",
|
|
31
32
|
"escape-html": "^1.0.3",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"jsonc-parser": "^2.2.0",
|
|
35
36
|
"lodash.clonedeep": "^4.5.0",
|
|
36
37
|
"macaddress": "^0.2.9",
|
|
38
|
+
"markdown-it": "^8.4.0",
|
|
37
39
|
"mime": "^2.4.4",
|
|
38
40
|
"ps-tree": "^1.2.0",
|
|
39
41
|
"request": "^2.82.0",
|
|
@@ -72,14 +74,15 @@
|
|
|
72
74
|
"src"
|
|
73
75
|
],
|
|
74
76
|
"scripts": {
|
|
75
|
-
"lint": "theiaext lint",
|
|
76
77
|
"build": "theiaext build",
|
|
77
|
-
"watch": "theiaext watch",
|
|
78
78
|
"clean": "theiaext clean",
|
|
79
|
-
"
|
|
79
|
+
"compile": "theiaext compile",
|
|
80
|
+
"lint": "theiaext lint",
|
|
81
|
+
"test": "theiaext test",
|
|
82
|
+
"watch": "theiaext watch"
|
|
80
83
|
},
|
|
81
84
|
"devDependencies": {
|
|
82
|
-
"@theia/ext-scripts": "1.
|
|
85
|
+
"@theia/ext-scripts": "1.20.0",
|
|
83
86
|
"@types/decompress": "^4.2.2",
|
|
84
87
|
"@types/escape-html": "^0.0.20",
|
|
85
88
|
"@types/lodash.clonedeep": "^4.5.3",
|
|
@@ -88,5 +91,6 @@
|
|
|
88
91
|
},
|
|
89
92
|
"nyc": {
|
|
90
93
|
"extends": "../../configs/nyc.json"
|
|
91
|
-
}
|
|
94
|
+
},
|
|
95
|
+
"gitHead": "a3c2e91fa9a030f5ee02696065c204afa2798072"
|
|
92
96
|
}
|
package/src/common/arrays.ts
CHANGED
|
@@ -44,3 +44,11 @@ export interface Splice<T> {
|
|
|
44
44
|
readonly deleteCount: number;
|
|
45
45
|
readonly toInsert: T[];
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @returns 'true' if the 'arg' is a 'ReadonlyArray'.
|
|
50
|
+
*/
|
|
51
|
+
export function isReadonlyArray(arg: unknown): arg is readonly unknown[] {
|
|
52
|
+
// Since Typescript does not properly narrow down typings for 'ReadonlyArray' we need to help it.
|
|
53
|
+
return Array.isArray(arg);
|
|
54
|
+
}
|
package/src/common/connection.ts
CHANGED
|
@@ -13,70 +13,126 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { MessageReader, MessageWriter, Message } from '@theia/core/shared/vscode-ws-jsonrpc';
|
|
20
|
-
import { IWebSocket } from '@theia/core/shared/vscode-ws-jsonrpc';
|
|
16
|
+
import { Channel } from '@theia/debug/lib/common/debug-service';
|
|
17
|
+
import { ConnectionExt, ConnectionMain } from './plugin-api-rpc';
|
|
18
|
+
import { Emitter } from '@theia/core/lib/common/event';
|
|
21
19
|
|
|
22
20
|
/**
|
|
23
|
-
*
|
|
21
|
+
* A channel communicating with a counterpart in a plugin host.
|
|
24
22
|
*/
|
|
25
|
-
export
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
* Allows to forward messages to another connection.
|
|
30
|
-
*
|
|
31
|
-
* @param to the connection to forward messages
|
|
32
|
-
* @param map the function in which the message can be changed before forwarding
|
|
33
|
-
*/
|
|
34
|
-
forward(to: Connection, map?: (message: Message) => Message): void;
|
|
35
|
-
}
|
|
23
|
+
export class PluginChannel implements Channel {
|
|
24
|
+
private messageEmitter: Emitter<string> = new Emitter();
|
|
25
|
+
private errorEmitter: Emitter<unknown> = new Emitter();
|
|
26
|
+
private closedEmitter: Emitter<void> = new Emitter();
|
|
36
27
|
|
|
37
|
-
/**
|
|
38
|
-
* The container for message reader and writer which can be used to create connection between plugins and main side.
|
|
39
|
-
*/
|
|
40
|
-
export class PluginConnection implements Connection {
|
|
41
28
|
constructor(
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
|
|
29
|
+
protected readonly id: string,
|
|
30
|
+
protected readonly connection: ConnectionExt | ConnectionMain) { }
|
|
31
|
+
|
|
32
|
+
send(content: string): void {
|
|
33
|
+
this.connection.$sendMessage(this.id, content);
|
|
45
34
|
}
|
|
46
35
|
|
|
47
|
-
|
|
48
|
-
this.
|
|
49
|
-
const output = map(input);
|
|
50
|
-
to.writer.write(output);
|
|
51
|
-
});
|
|
36
|
+
fireMessageReceived(msg: string): void {
|
|
37
|
+
this.messageEmitter.fire(msg);
|
|
52
38
|
}
|
|
53
|
-
}
|
|
54
39
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export class PluginWebSocketChannel implements IWebSocket {
|
|
59
|
-
constructor(protected readonly connection: PluginConnection) { }
|
|
40
|
+
fireError(error: unknown): void {
|
|
41
|
+
this.errorEmitter.fire(error);
|
|
42
|
+
}
|
|
60
43
|
|
|
61
|
-
|
|
62
|
-
this.
|
|
44
|
+
fireClosed(): void {
|
|
45
|
+
this.closedEmitter.fire();
|
|
63
46
|
}
|
|
64
47
|
|
|
65
48
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
66
49
|
onMessage(cb: (data: any) => void): void {
|
|
67
|
-
this.
|
|
50
|
+
this.messageEmitter.event(cb);
|
|
68
51
|
}
|
|
69
52
|
|
|
70
53
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
71
54
|
onError(cb: (reason: any) => void): void {
|
|
72
|
-
this.
|
|
55
|
+
this.errorEmitter.event(cb);
|
|
73
56
|
}
|
|
74
57
|
|
|
75
58
|
onClose(cb: (code: number, reason: string) => void): void {
|
|
76
|
-
this.
|
|
59
|
+
this.closedEmitter.event(() => cb(-1, 'closed'));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
close(): void {
|
|
63
|
+
this.connection.$deleteConnection(this.id);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export class ConnectionImpl implements ConnectionMain, ConnectionExt {
|
|
68
|
+
private readonly proxy: ConnectionExt | ConnectionExt;
|
|
69
|
+
private readonly connections = new Map<string, PluginChannel>();
|
|
70
|
+
|
|
71
|
+
constructor(proxy: ConnectionMain | ConnectionExt) {
|
|
72
|
+
this.proxy = proxy;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Gets the connection between plugin by id and sends string message to it.
|
|
77
|
+
*
|
|
78
|
+
* @param id connection's id
|
|
79
|
+
* @param message incoming message
|
|
80
|
+
*/
|
|
81
|
+
async $sendMessage(id: string, message: string): Promise<void> {
|
|
82
|
+
if (this.connections.has(id)) {
|
|
83
|
+
this.connections.get(id)!.fireMessageReceived(message);
|
|
84
|
+
} else {
|
|
85
|
+
console.warn(`Received message for unknown connection: ${id}`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Instantiates a new connection by the given id.
|
|
91
|
+
* @param id the connection id
|
|
92
|
+
*/
|
|
93
|
+
async $createConnection(id: string): Promise<void> {
|
|
94
|
+
console.debug(`Creating plugin connection: ${id}`);
|
|
95
|
+
|
|
96
|
+
await this.doEnsureConnection(id);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Deletes a connection.
|
|
101
|
+
* @param id the connection id
|
|
102
|
+
*/
|
|
103
|
+
async $deleteConnection(id: string): Promise<void> {
|
|
104
|
+
console.debug(`Deleting plugin connection: ${id}`);
|
|
105
|
+
const connection = this.connections.get(id);
|
|
106
|
+
if (connection) {
|
|
107
|
+
this.connections.delete(id);
|
|
108
|
+
connection.fireClosed();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns existed connection or creates a new one.
|
|
114
|
+
* @param id the connection id
|
|
115
|
+
*/
|
|
116
|
+
async ensureConnection(id: string): Promise<PluginChannel> {
|
|
117
|
+
console.debug(`Creating local connection: ${id}`);
|
|
118
|
+
const connection = await this.doEnsureConnection(id);
|
|
119
|
+
await this.proxy.$createConnection(id);
|
|
120
|
+
return connection;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Returns existed connection or creates a new one.
|
|
125
|
+
* @param id the connection id
|
|
126
|
+
*/
|
|
127
|
+
async doEnsureConnection(id: string): Promise<PluginChannel> {
|
|
128
|
+
const connection = this.connections.get(id) || await this.doCreateConnection(id);
|
|
129
|
+
this.connections.set(id, connection);
|
|
130
|
+
return connection;
|
|
77
131
|
}
|
|
78
132
|
|
|
79
|
-
|
|
80
|
-
this.
|
|
133
|
+
protected async doCreateConnection(id: string): Promise<PluginChannel> {
|
|
134
|
+
const channel = new PluginChannel(id, this.proxy);
|
|
135
|
+
channel.onClose(() => this.connections.delete(id));
|
|
136
|
+
return channel;
|
|
81
137
|
}
|
|
82
138
|
}
|
|
@@ -523,6 +523,8 @@ export interface CallHierarchyDefinition {
|
|
|
523
523
|
uri: UriComponents;
|
|
524
524
|
range: Range;
|
|
525
525
|
selectionRange: Range;
|
|
526
|
+
tags?: readonly SymbolTag[];
|
|
527
|
+
data: unknown;
|
|
526
528
|
}
|
|
527
529
|
|
|
528
530
|
export interface CallHierarchyReference {
|
|
@@ -540,6 +542,8 @@ export interface CallHierarchyItem {
|
|
|
540
542
|
uri: UriComponents;
|
|
541
543
|
range: Range;
|
|
542
544
|
selectionRange: Range;
|
|
545
|
+
tags?: readonly SymbolTag[];
|
|
546
|
+
data: unknown;
|
|
543
547
|
}
|
|
544
548
|
|
|
545
549
|
export interface CallHierarchyIncomingCall {
|
|
@@ -22,6 +22,7 @@ import { PluginLifecycle, PluginModel, PluginMetadata, PluginPackage, IconUrl, P
|
|
|
22
22
|
import { QueryParameters } from './env';
|
|
23
23
|
import { TextEditorCursorStyle } from './editor-options';
|
|
24
24
|
import {
|
|
25
|
+
ConfigurationTarget,
|
|
25
26
|
TextEditorLineNumbersStyle,
|
|
26
27
|
EndOfLine,
|
|
27
28
|
OverviewRulerLane,
|
|
@@ -29,7 +30,6 @@ import {
|
|
|
29
30
|
FileOperationOptions
|
|
30
31
|
} from '../plugin/types-impl';
|
|
31
32
|
import { UriComponents } from './uri-components';
|
|
32
|
-
import { ConfigurationTarget } from '../plugin/types-impl';
|
|
33
33
|
import {
|
|
34
34
|
SerializedDocumentFilter,
|
|
35
35
|
CompletionContext,
|
|
@@ -91,7 +91,7 @@ import type {
|
|
|
91
91
|
TimelineProviderDescriptor
|
|
92
92
|
} from '@theia/timeline/lib/common/timeline-model';
|
|
93
93
|
import { SerializableEnvironmentVariableCollection } from '@theia/terminal/lib/common/base-terminal-protocol';
|
|
94
|
-
import { ThemeType } from '@theia/core/lib/
|
|
94
|
+
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
95
95
|
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
96
96
|
import { PickOptions, QuickInputButtonHandle, QuickPickItem } from '@theia/core/lib/browser';
|
|
97
97
|
|
|
@@ -265,8 +265,6 @@ export interface ConnectionMain {
|
|
|
265
265
|
$createConnection(id: string): Promise<void>;
|
|
266
266
|
$deleteConnection(id: string): Promise<void>;
|
|
267
267
|
$sendMessage(id: string, message: string): void;
|
|
268
|
-
$createConnection(id: string): Promise<void>;
|
|
269
|
-
$deleteConnection(id: string): Promise<void>;
|
|
270
268
|
}
|
|
271
269
|
|
|
272
270
|
export interface ConnectionExt {
|
|
@@ -382,6 +380,7 @@ export enum MainMessageType {
|
|
|
382
380
|
}
|
|
383
381
|
|
|
384
382
|
export interface MainMessageOptions {
|
|
383
|
+
detail?: string;
|
|
385
384
|
modal?: boolean
|
|
386
385
|
onCloseActionHandle?: number
|
|
387
386
|
}
|
|
@@ -554,7 +553,7 @@ export interface TransferQuickInputButton extends theia.QuickInputButton {
|
|
|
554
553
|
handle?: number;
|
|
555
554
|
}
|
|
556
555
|
|
|
557
|
-
export type TransferQuickInput
|
|
556
|
+
export type TransferQuickInput = TransferQuickPick | TransferInputBox;
|
|
558
557
|
|
|
559
558
|
export interface BaseTransferQuickInput {
|
|
560
559
|
[key: string]: any;
|
|
@@ -565,14 +564,14 @@ export interface BaseTransferQuickInput {
|
|
|
565
564
|
visible?: boolean;
|
|
566
565
|
}
|
|
567
566
|
|
|
568
|
-
export interface TransferQuickPick
|
|
567
|
+
export interface TransferQuickPick extends BaseTransferQuickInput {
|
|
569
568
|
type?: 'quickPick';
|
|
570
569
|
value?: string;
|
|
571
570
|
placeholder?: string;
|
|
572
571
|
buttons?: TransferQuickInputButton[];
|
|
573
572
|
items?: TransferQuickPickItems[];
|
|
574
|
-
activeItems?: ReadonlyArray<
|
|
575
|
-
selectedItems?: ReadonlyArray<
|
|
573
|
+
activeItems?: ReadonlyArray<theia.QuickPickItem>;
|
|
574
|
+
selectedItems?: ReadonlyArray<theia.QuickPickItem>;
|
|
576
575
|
canSelectMany?: boolean;
|
|
577
576
|
ignoreFocusOut?: boolean;
|
|
578
577
|
matchOnDescription?: boolean;
|
|
@@ -604,12 +603,11 @@ export interface QuickOpenMain {
|
|
|
604
603
|
$setItems(instance: number, items: TransferQuickPickItems[]): Promise<any>;
|
|
605
604
|
$setError(instance: number, error: Error): Promise<void>;
|
|
606
605
|
$input(options: theia.InputBoxOptions, validateInput: boolean, token: CancellationToken): Promise<string | undefined>;
|
|
607
|
-
$createOrUpdate<T extends theia.QuickPickItem>(params: TransferQuickInput
|
|
606
|
+
$createOrUpdate<T extends theia.QuickPickItem>(params: TransferQuickInput): Promise<void>;
|
|
608
607
|
$dispose(id: number): Promise<void>;
|
|
609
608
|
|
|
610
609
|
$hide(): void;
|
|
611
610
|
$showInputBox(options: TransferInputBox, validateInput: boolean): Promise<string | undefined>;
|
|
612
|
-
$showCustomQuickPick<T extends theia.QuickPickItem>(options: TransferQuickPick<T>): void;
|
|
613
611
|
}
|
|
614
612
|
|
|
615
613
|
export interface WorkspaceMain {
|
|
@@ -1458,7 +1456,7 @@ export interface LanguagesExt {
|
|
|
1458
1456
|
$provideDocumentSemanticTokens(handle: number, resource: UriComponents, previousResultId: number, token: CancellationToken): Promise<BinaryBuffer | null>;
|
|
1459
1457
|
$releaseDocumentSemanticTokens(handle: number, semanticColoringResultId: number): void;
|
|
1460
1458
|
$provideDocumentRangeSemanticTokens(handle: number, resource: UriComponents, range: Range, token: CancellationToken): Promise<BinaryBuffer | null>;
|
|
1461
|
-
$provideRootDefinition(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<CallHierarchyDefinition | undefined>;
|
|
1459
|
+
$provideRootDefinition(handle: number, resource: UriComponents, location: Position, token: CancellationToken): Promise<CallHierarchyDefinition | CallHierarchyDefinition[] | undefined>;
|
|
1462
1460
|
$provideCallers(handle: number, definition: CallHierarchyDefinition, token: CancellationToken): Promise<CallHierarchyReference[] | undefined>;
|
|
1463
1461
|
$provideCallees(handle: number, definition: CallHierarchyDefinition, token: CancellationToken): Promise<CallHierarchyReference[] | undefined>;
|
|
1464
1462
|
}
|
|
@@ -1595,13 +1593,33 @@ export interface StorageExt {
|
|
|
1595
1593
|
$updatePluginsWorkspaceData(data: KeysToKeysToAnyValue): void;
|
|
1596
1594
|
}
|
|
1597
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
* A DebugConfigurationProviderTriggerKind specifies when the `provideDebugConfigurations` method of a `DebugConfigurationProvider` should be called.
|
|
1598
|
+
* Currently there are two situations:
|
|
1599
|
+
* (1) providing debug configurations to populate a newly created `launch.json`
|
|
1600
|
+
* (2) providing dynamically generated configurations when the user asks for them through the UI (e.g. via the "Select and Start Debugging" command).
|
|
1601
|
+
* A trigger kind is used when registering a `DebugConfigurationProvider` with {@link debug.registerDebugConfigurationProvider}.
|
|
1602
|
+
*/
|
|
1603
|
+
export enum DebugConfigurationProviderTriggerKind {
|
|
1604
|
+
/**
|
|
1605
|
+
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide the initial debug
|
|
1606
|
+
* configurations for a newly created launch.json.
|
|
1607
|
+
*/
|
|
1608
|
+
Initial = 1,
|
|
1609
|
+
/**
|
|
1610
|
+
* `DebugConfigurationProvider.provideDebugConfigurations` is called to provide dynamically generated debug configurations when the user asks for them through the UI
|
|
1611
|
+
* (e.g. via the "Select and Start Debugging" command).
|
|
1612
|
+
*/
|
|
1613
|
+
Dynamic = 2
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1598
1616
|
export interface DebugExt {
|
|
1599
1617
|
$onSessionCustomEvent(sessionId: string, event: string, body?: any): void;
|
|
1600
1618
|
$breakpointsDidChange(added: Breakpoint[], removed: string[], changed: Breakpoint[]): void;
|
|
1601
1619
|
$sessionDidCreate(sessionId: string): void;
|
|
1602
1620
|
$sessionDidDestroy(sessionId: string): void;
|
|
1603
1621
|
$sessionDidChange(sessionId: string | undefined): void;
|
|
1604
|
-
$provideDebugConfigurations(debugType: string, workspaceFolder: string | undefined): Promise<theia.DebugConfiguration[]>;
|
|
1622
|
+
$provideDebugConfigurations(debugType: string, workspaceFolder: string | undefined, dynamic?: boolean): Promise<theia.DebugConfiguration[]>;
|
|
1605
1623
|
$resolveDebugConfigurations(debugConfiguration: theia.DebugConfiguration, workspaceFolder: string | undefined): Promise<theia.DebugConfiguration | undefined>;
|
|
1606
1624
|
$resolveDebugConfigurationWithSubstitutedVariables(debugConfiguration: theia.DebugConfiguration, workspaceFolder: string | undefined):
|
|
1607
1625
|
Promise<theia.DebugConfiguration | undefined>;
|
|
@@ -1773,6 +1791,7 @@ export const MAIN_RPC_CONTEXT = {
|
|
|
1773
1791
|
};
|
|
1774
1792
|
|
|
1775
1793
|
export interface TasksExt {
|
|
1794
|
+
$initLoadedTasks(executions: TaskExecutionDto[]): Promise<void>;
|
|
1776
1795
|
$provideTasks(handle: number): Promise<TaskDto[] | undefined>;
|
|
1777
1796
|
$resolveTask(handle: number, task: TaskDto, token?: CancellationToken): Promise<TaskDto | undefined>;
|
|
1778
1797
|
$onDidStartTask(execution: TaskExecutionDto, terminalId: number): void;
|
|
@@ -23,7 +23,7 @@ import { IJSONSchema, IJSONSchemaSnippet } from '@theia/core/lib/common/json-sch
|
|
|
23
23
|
import { RecursivePartial } from '@theia/core/lib/common/types';
|
|
24
24
|
import { PreferenceSchema, PreferenceSchemaProperties } from '@theia/core/lib/common/preferences/preference-schema';
|
|
25
25
|
import { ProblemMatcherContribution, ProblemPatternContribution, TaskDefinition } from '@theia/task/lib/common';
|
|
26
|
-
import { ColorDefinition } from '@theia/core/lib/
|
|
26
|
+
import { ColorDefinition } from '@theia/core/lib/common/color';
|
|
27
27
|
import { ResourceLabelFormatter } from '@theia/core/lib/common/label-protocol';
|
|
28
28
|
|
|
29
29
|
export const hostedServicePath = '/services/hostedPlugin';
|
|
@@ -554,6 +554,7 @@ export interface Localization {
|
|
|
554
554
|
|
|
555
555
|
export interface Translation {
|
|
556
556
|
id: string;
|
|
557
|
+
path: string;
|
|
557
558
|
version: string;
|
|
558
559
|
contents: { [scope: string]: { [key: string]: string } }
|
|
559
560
|
}
|
|
@@ -680,6 +681,7 @@ export interface ViewContainer {
|
|
|
680
681
|
id: string;
|
|
681
682
|
title: string;
|
|
682
683
|
iconUrl: string;
|
|
684
|
+
themeIcon?: string;
|
|
683
685
|
}
|
|
684
686
|
|
|
685
687
|
/**
|
|
@@ -25,13 +25,13 @@ import debounce = require('@theia/core/shared/lodash.debounce');
|
|
|
25
25
|
import { UUID } from '@theia/core/shared/@phosphor/coreutils';
|
|
26
26
|
import { injectable, inject, interfaces, named, postConstruct } from '@theia/core/shared/inversify';
|
|
27
27
|
import { PluginWorker } from './plugin-worker';
|
|
28
|
-
import { PluginMetadata, getPluginId, HostedPluginServer, DeployedPlugin } from '../../common/plugin-protocol';
|
|
28
|
+
import { PluginMetadata, getPluginId, HostedPluginServer, DeployedPlugin, PluginServer } from '../../common/plugin-protocol';
|
|
29
29
|
import { HostedPluginWatcher } from './hosted-plugin-watcher';
|
|
30
30
|
import { MAIN_RPC_CONTEXT, PluginManagerExt, ConfigStorage, UIKind } from '../../common/plugin-api-rpc';
|
|
31
31
|
import { setUpPluginApi } from '../../main/browser/main-context';
|
|
32
32
|
import { RPCProtocol, RPCProtocolImpl } from '../../common/rpc-protocol';
|
|
33
33
|
import {
|
|
34
|
-
Disposable, DisposableCollection,
|
|
34
|
+
Disposable, DisposableCollection, Emitter, isCancelled,
|
|
35
35
|
ILogger, ContributionProvider, CommandRegistry, WillExecuteCommandEvent,
|
|
36
36
|
CancellationTokenSource, JsonRpcProxy, ProgressService
|
|
37
37
|
} from '@theia/core';
|
|
@@ -42,13 +42,11 @@ import { getQueryParameters } from '../../main/browser/env-main';
|
|
|
42
42
|
import { MainPluginApiProvider } from '../../common/plugin-ext-api-contribution';
|
|
43
43
|
import { PluginPathsService } from '../../main/common/plugin-paths-protocol';
|
|
44
44
|
import { getPreferences } from '../../main/browser/preference-registry-main';
|
|
45
|
-
import { PluginServer } from '../../common/plugin-protocol';
|
|
46
45
|
import { Deferred } from '@theia/core/lib/common/promise-util';
|
|
47
46
|
import { DebugSessionManager } from '@theia/debug/lib/browser/debug-session-manager';
|
|
48
47
|
import { DebugConfigurationManager } from '@theia/debug/lib/browser/debug-configuration-manager';
|
|
49
48
|
import { WaitUntilEvent } from '@theia/core/lib/common/event';
|
|
50
49
|
import { FileSearchService } from '@theia/file-search/lib/common/file-search-service';
|
|
51
|
-
import { Emitter, isCancelled } from '@theia/core';
|
|
52
50
|
import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state';
|
|
53
51
|
import { PluginViewRegistry } from '../../main/browser/view/plugin-view-registry';
|
|
54
52
|
import { TaskProviderRegistry, TaskResolverRegistry } from '@theia/task/lib/browser/task-contribution';
|
|
@@ -66,7 +64,7 @@ import { PluginCustomEditorRegistry } from '../../main/browser/custom-editors/pl
|
|
|
66
64
|
import { CustomEditorWidget } from '../../main/browser/custom-editors/custom-editor-widget';
|
|
67
65
|
|
|
68
66
|
export type PluginHost = 'frontend' | string;
|
|
69
|
-
export type DebugActivationEvent = 'onDebugResolve' | 'onDebugInitialConfigurations' | 'onDebugAdapterProtocolTracker';
|
|
67
|
+
export type DebugActivationEvent = 'onDebugResolve' | 'onDebugInitialConfigurations' | 'onDebugAdapterProtocolTracker' | 'onDebugDynamicConfigurations';
|
|
70
68
|
|
|
71
69
|
export const PluginProgressLocation = 'plugin';
|
|
72
70
|
|
|
@@ -198,6 +196,8 @@ export class HostedPluginSupport {
|
|
|
198
196
|
this.debugSessionManager.onWillStartDebugSession(event => this.ensureDebugActivation(event));
|
|
199
197
|
this.debugSessionManager.onWillResolveDebugConfiguration(event => this.ensureDebugActivation(event, 'onDebugResolve', event.debugType));
|
|
200
198
|
this.debugConfigurationManager.onWillProvideDebugConfiguration(event => this.ensureDebugActivation(event, 'onDebugInitialConfigurations'));
|
|
199
|
+
// Activate all providers of dynamic configurations, i.e. Let the user pick a configuration from all the available ones.
|
|
200
|
+
this.debugConfigurationManager.onWillProvideDynamicDebugConfiguration(event => this.ensureDebugActivation(event, 'onDebugDynamicConfigurations', '*'));
|
|
201
201
|
this.viewRegistry.onDidExpandView(id => this.activateByView(id));
|
|
202
202
|
this.taskProviderRegistry.onWillProvideTaskProvider(event => this.ensureTaskActivation(event));
|
|
203
203
|
this.taskResolverRegistry.onWillProvideTaskResolver(event => this.ensureTaskActivation(event));
|
|
@@ -302,12 +302,15 @@ export class HostedPluginSupport {
|
|
|
302
302
|
*/
|
|
303
303
|
protected async syncPlugins(): Promise<void> {
|
|
304
304
|
let initialized = 0;
|
|
305
|
-
const
|
|
305
|
+
const waitPluginsMeasurement = this.createMeasurement('waitForDeployment');
|
|
306
|
+
let syncPluginsMeasurement: () => number;
|
|
306
307
|
|
|
307
308
|
const toUnload = new Set(this.contributions.keys());
|
|
308
309
|
try {
|
|
309
310
|
const pluginIds: string[] = [];
|
|
310
311
|
const deployedPluginIds = await this.server.getDeployedPluginIds();
|
|
312
|
+
this.logMeasurement('Waiting for backend deployment', waitPluginsMeasurement);
|
|
313
|
+
syncPluginsMeasurement = this.createMeasurement('syncPlugins');
|
|
311
314
|
for (const pluginId of deployedPluginIds) {
|
|
312
315
|
toUnload.delete(pluginId);
|
|
313
316
|
if (!this.contributions.has(pluginId)) {
|
|
@@ -336,7 +339,7 @@ export class HostedPluginSupport {
|
|
|
336
339
|
}
|
|
337
340
|
}
|
|
338
341
|
|
|
339
|
-
this.logMeasurement(
|
|
342
|
+
this.logMeasurement(`Sync of ${this.getPluginCount(initialized)}`, syncPluginsMeasurement);
|
|
340
343
|
}
|
|
341
344
|
|
|
342
345
|
/**
|
|
@@ -374,7 +377,7 @@ export class HostedPluginSupport {
|
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
379
|
|
|
377
|
-
this.logMeasurement(
|
|
380
|
+
this.logMeasurement(`Load contributions of ${this.getPluginCount(loaded)}`, loadPluginsMeasurement);
|
|
378
381
|
|
|
379
382
|
return hostContributions;
|
|
380
383
|
}
|
|
@@ -444,7 +447,7 @@ export class HostedPluginSupport {
|
|
|
444
447
|
return;
|
|
445
448
|
}
|
|
446
449
|
|
|
447
|
-
this.logMeasurement(
|
|
450
|
+
this.logMeasurement(`Start of ${this.getPluginCount(started)}`, startPluginsMeasurement);
|
|
448
451
|
}
|
|
449
452
|
|
|
450
453
|
protected async obtainManager(host: string, hostContributions: PluginContributions[], toDisconnect: DisposableCollection): Promise<PluginManagerExt | undefined> {
|
|
@@ -539,7 +542,7 @@ export class HostedPluginSupport {
|
|
|
539
542
|
|
|
540
543
|
// Make sure that folder by the path exists
|
|
541
544
|
if (!await this.fileService.exists(globalStorageFolderUri)) {
|
|
542
|
-
await this.fileService.createFolder(globalStorageFolderUri);
|
|
545
|
+
await this.fileService.createFolder(globalStorageFolderUri, { fromUserGesture: false });
|
|
543
546
|
}
|
|
544
547
|
const globalStorageFolderFsPath = await this.fileService.fsPath(globalStorageFolderUri);
|
|
545
548
|
if (!globalStorageFolderFsPath) {
|
|
@@ -712,15 +715,19 @@ export class HostedPluginSupport {
|
|
|
712
715
|
};
|
|
713
716
|
}
|
|
714
717
|
|
|
715
|
-
protected logMeasurement(
|
|
718
|
+
protected logMeasurement(measurementName: string, measurement: () => number): void {
|
|
716
719
|
const duration = measurement();
|
|
717
720
|
if (duration === Number.NaN) {
|
|
718
721
|
// Measurement was prevented by native API, do not log NaN duration
|
|
719
722
|
return;
|
|
720
723
|
}
|
|
721
724
|
|
|
722
|
-
const
|
|
723
|
-
console.log(`[${this.clientId}] ${
|
|
725
|
+
const timeFromFrontendStart = `Finished ${(performance.now() / 1000).toFixed(3)} s after frontend start`;
|
|
726
|
+
console.log(`[${this.clientId}] ${measurementName} took: ${duration.toFixed(1)} ms [${timeFromFrontendStart}]`);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
protected getPluginCount(plugins: number): string {
|
|
730
|
+
return `${plugins} plugin${plugins === 1 ? '' : 's'}`;
|
|
724
731
|
}
|
|
725
732
|
|
|
726
733
|
protected readonly webviewsToRestore = new Set<WebviewWidget>();
|