@theia/plugin-ext 1.57.0 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/plugin-api-rpc-model.d.ts +1 -0
- package/lib/common/plugin-api-rpc-model.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.d.ts +11 -2
- package/lib/common/plugin-api-rpc.d.ts.map +1 -1
- package/lib/common/plugin-api-rpc.js.map +1 -1
- package/lib/common/plugin-identifiers.d.ts +2 -2
- package/lib/common/plugin-identifiers.js +2 -2
- package/lib/hosted/node/plugin-host-rpc.d.ts.map +1 -1
- package/lib/hosted/node/plugin-host-rpc.js +2 -0
- package/lib/hosted/node/plugin-host-rpc.js.map +1 -1
- package/lib/hosted/node/plugin-reader.d.ts +0 -1
- package/lib/hosted/node/plugin-reader.d.ts.map +1 -1
- package/lib/hosted/node/plugin-require-override.d.ts +25 -0
- package/lib/hosted/node/plugin-require-override.d.ts.map +1 -0
- package/lib/hosted/node/plugin-require-override.js +56 -0
- package/lib/hosted/node/plugin-require-override.js.map +1 -0
- package/lib/main/browser/authentication-main.d.ts +1 -0
- package/lib/main/browser/authentication-main.d.ts.map +1 -1
- package/lib/main/browser/command-registry-main.d.ts +1 -0
- package/lib/main/browser/command-registry-main.d.ts.map +1 -1
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts +1 -0
- package/lib/main/browser/custom-editors/custom-editors-main.d.ts.map +1 -1
- package/lib/main/browser/debug/plugin-debug-service.d.ts +1 -0
- package/lib/main/browser/debug/plugin-debug-service.d.ts.map +1 -1
- package/lib/main/browser/languages-main.d.ts +4 -3
- package/lib/main/browser/languages-main.d.ts.map +1 -1
- package/lib/main/browser/languages-main.js +15 -22
- package/lib/main/browser/languages-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js +1 -1
- package/lib/main/browser/notebooks/notebook-documents-main.js.map +1 -1
- package/lib/main/browser/notebooks/notebooks-main.d.ts +1 -0
- package/lib/main/browser/notebooks/notebooks-main.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts +12 -2
- package/lib/main/browser/notebooks/renderers/cell-output-webview.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js +38 -16
- package/lib/main/browser/notebooks/renderers/cell-output-webview.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.d.ts.map +1 -1
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js +9 -2
- package/lib/main/browser/notebooks/renderers/output-webview-internal.js.map +1 -1
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts +5 -1
- package/lib/main/browser/notebooks/renderers/webview-communication.d.ts.map +1 -1
- package/lib/main/browser/quick-open-main.d.ts +1 -0
- package/lib/main/browser/quick-open-main.d.ts.map +1 -1
- package/lib/main/browser/terminal-main.d.ts +1 -0
- package/lib/main/browser/terminal-main.d.ts.map +1 -1
- package/lib/main/browser/text-editor-main.js +1 -1
- package/lib/main/browser/view/tree-view-decorator-service.d.ts +1 -0
- package/lib/main/browser/view/tree-view-decorator-service.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.d.ts +2 -0
- package/lib/main/browser/view/tree-view-widget.d.ts.map +1 -1
- package/lib/main/browser/view/tree-view-widget.js +14 -0
- package/lib/main/browser/view/tree-view-widget.js.map +1 -1
- package/lib/main/browser/view/tree-views-main.d.ts +2 -1
- package/lib/main/browser/view/tree-views-main.d.ts.map +1 -1
- package/lib/main/browser/view/tree-views-main.js +2 -2
- package/lib/main/browser/view/tree-views-main.js.map +1 -1
- package/lib/main/browser/webview/webview.d.ts +1 -0
- package/lib/main/browser/webview/webview.d.ts.map +1 -1
- package/lib/main/browser/webview-views/webview-views-main.d.ts +1 -0
- package/lib/main/browser/webview-views/webview-views-main.d.ts.map +1 -1
- package/lib/main/browser/webviews-main.d.ts +1 -0
- package/lib/main/browser/webviews-main.d.ts.map +1 -1
- package/lib/main/browser/workspace-main.d.ts +3 -2
- package/lib/main/browser/workspace-main.d.ts.map +1 -1
- package/lib/main/browser/workspace-main.js +8 -7
- package/lib/main/browser/workspace-main.js.map +1 -1
- package/lib/main/node/plugin-service.d.ts +0 -1
- package/lib/main/node/plugin-service.d.ts.map +1 -1
- package/lib/plugin/authentication-ext.d.ts +1 -0
- package/lib/plugin/authentication-ext.d.ts.map +1 -1
- package/lib/plugin/clipboard-ext.d.ts +1 -0
- package/lib/plugin/clipboard-ext.d.ts.map +1 -1
- package/lib/plugin/command-registry.d.ts +1 -0
- package/lib/plugin/command-registry.d.ts.map +1 -1
- package/lib/plugin/comments.d.ts +1 -0
- package/lib/plugin/comments.d.ts.map +1 -1
- package/lib/plugin/custom-editors.d.ts +1 -0
- package/lib/plugin/custom-editors.d.ts.map +1 -1
- package/lib/plugin/debug/debug-ext.d.ts +1 -0
- package/lib/plugin/debug/debug-ext.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-session.d.ts.map +1 -1
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts +1 -0
- package/lib/plugin/debug/plugin-debug-adapter-tracker.d.ts.map +1 -1
- package/lib/plugin/decorations.d.ts +1 -0
- package/lib/plugin/decorations.d.ts.map +1 -1
- package/lib/plugin/dialogs.d.ts +1 -0
- package/lib/plugin/dialogs.d.ts.map +1 -1
- package/lib/plugin/document-data.d.ts +1 -0
- package/lib/plugin/document-data.d.ts.map +1 -1
- package/lib/plugin/documents.d.ts +1 -0
- package/lib/plugin/documents.d.ts.map +1 -1
- package/lib/plugin/env.d.ts +1 -0
- package/lib/plugin/env.d.ts.map +1 -1
- package/lib/plugin/file-system-event-service-ext-impl.d.ts +1 -0
- package/lib/plugin/file-system-event-service-ext-impl.d.ts.map +1 -1
- package/lib/plugin/file-system-ext-impl.d.ts +1 -0
- package/lib/plugin/file-system-ext-impl.d.ts.map +1 -1
- package/lib/plugin/label-service.d.ts +1 -0
- package/lib/plugin/label-service.d.ts.map +1 -1
- package/lib/plugin/languages/call-hierarchy.d.ts +1 -0
- package/lib/plugin/languages/call-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/code-action.d.ts +1 -0
- package/lib/plugin/languages/code-action.d.ts.map +1 -1
- package/lib/plugin/languages/color.d.ts +1 -0
- package/lib/plugin/languages/color.d.ts.map +1 -1
- package/lib/plugin/languages/completion.d.ts +1 -0
- package/lib/plugin/languages/completion.d.ts.map +1 -1
- package/lib/plugin/languages/declaration.d.ts +1 -0
- package/lib/plugin/languages/declaration.d.ts.map +1 -1
- package/lib/plugin/languages/definition.d.ts +1 -0
- package/lib/plugin/languages/definition.d.ts.map +1 -1
- package/lib/plugin/languages/diagnostics.d.ts +1 -0
- package/lib/plugin/languages/diagnostics.d.ts.map +1 -1
- package/lib/plugin/languages/document-drop-edit.d.ts +1 -0
- package/lib/plugin/languages/document-drop-edit.d.ts.map +1 -1
- package/lib/plugin/languages/document-formatting.d.ts +1 -0
- package/lib/plugin/languages/document-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/document-highlight.d.ts +1 -0
- package/lib/plugin/languages/document-highlight.d.ts.map +1 -1
- package/lib/plugin/languages/evaluatable-expression.d.ts +1 -0
- package/lib/plugin/languages/evaluatable-expression.d.ts.map +1 -1
- package/lib/plugin/languages/folding.d.ts +1 -0
- package/lib/plugin/languages/folding.d.ts.map +1 -1
- package/lib/plugin/languages/hover.d.ts +1 -0
- package/lib/plugin/languages/hover.d.ts.map +1 -1
- package/lib/plugin/languages/implementation.d.ts +1 -0
- package/lib/plugin/languages/implementation.d.ts.map +1 -1
- package/lib/plugin/languages/inlay-hints.d.ts +1 -0
- package/lib/plugin/languages/inlay-hints.d.ts.map +1 -1
- package/lib/plugin/languages/inline-completion.d.ts +1 -0
- package/lib/plugin/languages/inline-completion.d.ts.map +1 -1
- package/lib/plugin/languages/inline-values.d.ts +1 -0
- package/lib/plugin/languages/inline-values.d.ts.map +1 -1
- package/lib/plugin/languages/lens.d.ts +1 -0
- package/lib/plugin/languages/lens.d.ts.map +1 -1
- package/lib/plugin/languages/link-provider.d.ts +1 -0
- package/lib/plugin/languages/link-provider.d.ts.map +1 -1
- package/lib/plugin/languages/linked-editing-range.d.ts +1 -0
- package/lib/plugin/languages/linked-editing-range.d.ts.map +1 -1
- package/lib/plugin/languages/on-type-formatting.d.ts +1 -0
- package/lib/plugin/languages/on-type-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/outline.d.ts +1 -0
- package/lib/plugin/languages/outline.d.ts.map +1 -1
- package/lib/plugin/languages/range-formatting.d.ts +1 -0
- package/lib/plugin/languages/range-formatting.d.ts.map +1 -1
- package/lib/plugin/languages/reference.d.ts +1 -0
- package/lib/plugin/languages/reference.d.ts.map +1 -1
- package/lib/plugin/languages/rename.d.ts +1 -0
- package/lib/plugin/languages/rename.d.ts.map +1 -1
- package/lib/plugin/languages/selection-range.d.ts +1 -0
- package/lib/plugin/languages/selection-range.d.ts.map +1 -1
- package/lib/plugin/languages/semantic-highlighting.d.ts +1 -0
- package/lib/plugin/languages/semantic-highlighting.d.ts.map +1 -1
- package/lib/plugin/languages/signature.d.ts +1 -0
- package/lib/plugin/languages/signature.d.ts.map +1 -1
- package/lib/plugin/languages/type-definition.d.ts +1 -0
- package/lib/plugin/languages/type-definition.d.ts.map +1 -1
- package/lib/plugin/languages/type-hierarchy.d.ts +1 -0
- package/lib/plugin/languages/type-hierarchy.d.ts.map +1 -1
- package/lib/plugin/languages/util.d.ts +1 -0
- package/lib/plugin/languages/util.d.ts.map +1 -1
- package/lib/plugin/languages/workspace-symbol.d.ts +1 -0
- package/lib/plugin/languages/workspace-symbol.d.ts.map +1 -1
- package/lib/plugin/languages-utils.d.ts +1 -0
- package/lib/plugin/languages-utils.d.ts.map +1 -1
- package/lib/plugin/languages.d.ts +1 -0
- package/lib/plugin/languages.d.ts.map +1 -1
- package/lib/plugin/markdown-string.d.ts +1 -0
- package/lib/plugin/markdown-string.d.ts.map +1 -1
- package/lib/plugin/message-registry.d.ts +1 -0
- package/lib/plugin/message-registry.d.ts.map +1 -1
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts +1 -0
- package/lib/plugin/node/debug/plugin-node-debug-adapter-creator.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-document.d.ts +1 -0
- package/lib/plugin/notebook/notebook-document.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-documents.d.ts +1 -0
- package/lib/plugin/notebook/notebook-documents.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editor.d.ts +1 -0
- package/lib/plugin/notebook/notebook-editor.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-editors.d.ts +1 -0
- package/lib/plugin/notebook/notebook-editors.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-kernels.d.ts +1 -0
- package/lib/plugin/notebook/notebook-kernels.d.ts.map +1 -1
- package/lib/plugin/notebook/notebook-renderers.d.ts +1 -0
- package/lib/plugin/notebook/notebook-renderers.d.ts.map +1 -1
- package/lib/plugin/notebook/notebooks.d.ts +1 -0
- package/lib/plugin/notebook/notebooks.d.ts.map +1 -1
- package/lib/plugin/notification.d.ts +1 -0
- package/lib/plugin/notification.d.ts.map +1 -1
- package/lib/plugin/output-channel/log-output-channel.d.ts +1 -0
- package/lib/plugin/output-channel/log-output-channel.d.ts.map +1 -1
- package/lib/plugin/output-channel/output-channel-item.d.ts +1 -0
- package/lib/plugin/output-channel/output-channel-item.d.ts.map +1 -1
- package/lib/plugin/output-channel-registry.d.ts +1 -0
- package/lib/plugin/output-channel-registry.d.ts.map +1 -1
- package/lib/plugin/plugin-context.d.ts +1 -0
- package/lib/plugin/plugin-context.d.ts.map +1 -1
- package/lib/plugin/plugin-context.js +7 -1
- package/lib/plugin/plugin-context.js.map +1 -1
- package/lib/plugin/plugin-manager.d.ts +1 -0
- package/lib/plugin/plugin-manager.d.ts.map +1 -1
- package/lib/plugin/plugin-storage.d.ts +1 -0
- package/lib/plugin/plugin-storage.d.ts.map +1 -1
- package/lib/plugin/preference-registry.d.ts +1 -0
- package/lib/plugin/preference-registry.d.ts.map +1 -1
- package/lib/plugin/preference-registry.js +29 -2
- package/lib/plugin/preference-registry.js.map +1 -1
- package/lib/plugin/quick-open.d.ts +1 -0
- package/lib/plugin/quick-open.d.ts.map +1 -1
- package/lib/plugin/scm.d.ts +1 -0
- package/lib/plugin/scm.d.ts.map +1 -1
- package/lib/plugin/secrets-ext.d.ts +1 -0
- package/lib/plugin/secrets-ext.d.ts.map +1 -1
- package/lib/plugin/status-bar/status-bar-item.d.ts +1 -0
- package/lib/plugin/status-bar/status-bar-item.d.ts.map +1 -1
- package/lib/plugin/status-bar-message-registry.d.ts +1 -0
- package/lib/plugin/status-bar-message-registry.d.ts.map +1 -1
- package/lib/plugin/tabs.d.ts +1 -0
- package/lib/plugin/tabs.d.ts.map +1 -1
- package/lib/plugin/tasks/task-provider.d.ts +1 -0
- package/lib/plugin/tasks/task-provider.d.ts.map +1 -1
- package/lib/plugin/tasks/tasks.d.ts +1 -0
- package/lib/plugin/tasks/tasks.d.ts.map +1 -1
- package/lib/plugin/terminal-ext.d.ts +1 -0
- package/lib/plugin/terminal-ext.d.ts.map +1 -1
- package/lib/plugin/test-item.d.ts +1 -0
- package/lib/plugin/test-item.d.ts.map +1 -1
- package/lib/plugin/tests.d.ts +1 -0
- package/lib/plugin/tests.d.ts.map +1 -1
- package/lib/plugin/text-editor.d.ts +1 -0
- package/lib/plugin/text-editor.d.ts.map +1 -1
- package/lib/plugin/text-editors.d.ts +1 -0
- package/lib/plugin/text-editors.d.ts.map +1 -1
- package/lib/plugin/timeline.d.ts +1 -0
- package/lib/plugin/timeline.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.d.ts +1 -0
- package/lib/plugin/tree/tree-views.d.ts.map +1 -1
- package/lib/plugin/tree/tree-views.js +18 -4
- package/lib/plugin/tree/tree-views.js.map +1 -1
- package/lib/plugin/type-converters.d.ts +1 -0
- package/lib/plugin/type-converters.d.ts.map +1 -1
- package/lib/plugin/type-converters.spec.js +4 -4
- package/lib/plugin/type-converters.spec.js.map +1 -1
- package/lib/plugin/types-impl.d.ts +21 -0
- package/lib/plugin/types-impl.d.ts.map +1 -1
- package/lib/plugin/types-impl.js +25 -2
- package/lib/plugin/types-impl.js.map +1 -1
- package/lib/plugin/uri-ext.d.ts +1 -0
- package/lib/plugin/uri-ext.d.ts.map +1 -1
- package/lib/plugin/webview-views.d.ts +1 -0
- package/lib/plugin/webview-views.d.ts.map +1 -1
- package/lib/plugin/webviews.d.ts +1 -0
- package/lib/plugin/webviews.d.ts.map +1 -1
- package/lib/plugin/window-state.d.ts +1 -0
- package/lib/plugin/window-state.d.ts.map +1 -1
- package/lib/plugin/workspace.d.ts +1 -0
- package/lib/plugin/workspace.d.ts.map +1 -1
- package/lib/plugin/workspace.js +14 -11
- package/lib/plugin/workspace.js.map +1 -1
- package/package.json +31 -30
- package/src/common/plugin-api-rpc.ts +11 -3
- package/src/common/plugin-identifiers.ts +2 -2
- package/src/hosted/node/plugin-host-rpc.ts +5 -2
- package/src/hosted/node/plugin-require-override.ts +53 -0
- package/src/main/browser/languages-main.ts +19 -27
- package/src/main/browser/notebooks/notebook-documents-main.ts +1 -1
- package/src/main/browser/notebooks/renderers/cell-output-webview.tsx +42 -17
- package/src/main/browser/notebooks/renderers/output-webview-internal.ts +12 -2
- package/src/main/browser/notebooks/renderers/webview-communication.ts +5 -1
- package/src/main/browser/view/tree-view-widget.tsx +12 -0
- package/src/main/browser/view/tree-views-main.ts +2 -2
- package/src/main/browser/workspace-main.ts +9 -9
- package/src/plugin/plugin-context.ts +13 -2
- package/src/plugin/preference-registry.ts +38 -5
- package/src/plugin/tree/tree-views.ts +17 -3
- package/src/plugin/type-converters.spec.ts +4 -4
- package/src/plugin/types-impl.ts +28 -0
- package/src/plugin/workspace.ts +15 -12
|
@@ -236,7 +236,9 @@ import {
|
|
|
236
236
|
PortAutoForwardAction,
|
|
237
237
|
PortAttributes,
|
|
238
238
|
DebugVisualization,
|
|
239
|
-
TerminalShellExecutionCommandLineConfidence
|
|
239
|
+
TerminalShellExecutionCommandLineConfidence,
|
|
240
|
+
TerminalCompletionItemKind,
|
|
241
|
+
TerminalCompletionList
|
|
240
242
|
} from './types-impl';
|
|
241
243
|
import { AuthenticationExtImpl } from './authentication-ext';
|
|
242
244
|
import { SymbolKind } from '../common/plugin-api-rpc-model';
|
|
@@ -656,6 +658,13 @@ export function createAPIFactory(
|
|
|
656
658
|
registerProfileContentHandler(id: string, profileContentHandler: theia.ProfileContentHandler): theia.Disposable {
|
|
657
659
|
return Disposable.NULL;
|
|
658
660
|
},
|
|
661
|
+
/** @stubbed TerminalCompletionProvider */
|
|
662
|
+
registerTerminalCompletionProvider<T extends theia.TerminalCompletionItem>(
|
|
663
|
+
provider: theia.TerminalCompletionProvider<T>,
|
|
664
|
+
...triggerCharacters: string[]
|
|
665
|
+
): theia.Disposable {
|
|
666
|
+
return Disposable.NULL;
|
|
667
|
+
},
|
|
659
668
|
/** @stubbed TerminalQuickFixProvider */
|
|
660
669
|
registerTerminalQuickFixProvider(id: string, provider: theia.TerminalQuickFixProvider): theia.Disposable {
|
|
661
670
|
return terminalExt.registerTerminalQuickFixProvider(id, provider);
|
|
@@ -1570,7 +1579,9 @@ export function createAPIFactory(
|
|
|
1570
1579
|
PortAutoForwardAction,
|
|
1571
1580
|
PortAttributes,
|
|
1572
1581
|
DebugVisualization,
|
|
1573
|
-
TerminalShellExecutionCommandLineConfidence
|
|
1582
|
+
TerminalShellExecutionCommandLineConfidence,
|
|
1583
|
+
TerminalCompletionItemKind,
|
|
1584
|
+
TerminalCompletionList
|
|
1574
1585
|
};
|
|
1575
1586
|
};
|
|
1576
1587
|
}
|
|
@@ -34,6 +34,7 @@ import { RPCProtocol } from '../common/rpc-protocol';
|
|
|
34
34
|
import { isObject, mixin } from '../common/types';
|
|
35
35
|
import { WorkspaceExtImpl } from './workspace';
|
|
36
36
|
import cloneDeep = require('lodash.clonedeep');
|
|
37
|
+
import { ILogService, LogLevel } from '@theia/monaco-editor-core/esm/vs/platform/log/common/log';
|
|
37
38
|
|
|
38
39
|
const injectionRe = /\b__proto__\b|\bconstructor\.prototype\b/;
|
|
39
40
|
|
|
@@ -79,6 +80,30 @@ export class TheiaWorkspace extends Workspace {
|
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
const logService: ILogService = {
|
|
84
|
+
_serviceBrand: undefined,
|
|
85
|
+
onDidChangeLogLevel: new Emitter<LogLevel>().event,
|
|
86
|
+
getLevel: function (): LogLevel {
|
|
87
|
+
return LogLevel.Info;
|
|
88
|
+
},
|
|
89
|
+
setLevel: function (level: LogLevel): void {
|
|
90
|
+
},
|
|
91
|
+
trace: function (message: string, ...args: any[]): void {
|
|
92
|
+
},
|
|
93
|
+
debug: function (message: string, ...args: any[]): void {
|
|
94
|
+
},
|
|
95
|
+
info: function (message: string, ...args: any[]): void {
|
|
96
|
+
},
|
|
97
|
+
warn: function (message: string, ...args: any[]): void {
|
|
98
|
+
},
|
|
99
|
+
error: function (message: string | Error, ...args: any[]): void {
|
|
100
|
+
},
|
|
101
|
+
flush: function (): void {
|
|
102
|
+
},
|
|
103
|
+
dispose: function (): void {
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
82
107
|
@injectable()
|
|
83
108
|
export class PreferenceRegistryExtImpl implements PreferenceRegistryExt {
|
|
84
109
|
@inject(RPCProtocol)
|
|
@@ -251,19 +276,27 @@ export class PreferenceRegistryExtImpl implements PreferenceRegistryExt {
|
|
|
251
276
|
Object.keys(data[PreferenceScope.Folder]).forEach(resource => {
|
|
252
277
|
folderConfigurations.set(URI.parse(resource), this.getConfigurationModel(`Folder: ${resource}`, data[PreferenceScope.Folder][resource]));
|
|
253
278
|
});
|
|
279
|
+
|
|
280
|
+
function createEmptyModel(): ConfigurationModel {
|
|
281
|
+
return new ConfigurationModel({}, [], [], undefined, logService);
|
|
282
|
+
}
|
|
283
|
+
|
|
254
284
|
return new Configuration(
|
|
255
285
|
defaultConfiguration,
|
|
256
|
-
|
|
257
|
-
|
|
286
|
+
createEmptyModel(), /** policy configuration. */
|
|
287
|
+
createEmptyModel(), /** application configuration. */
|
|
258
288
|
userConfiguration,
|
|
259
|
-
|
|
289
|
+
createEmptyModel(), /** remote configuration. */
|
|
260
290
|
workspaceConfiguration,
|
|
261
|
-
folderConfigurations
|
|
291
|
+
folderConfigurations,
|
|
292
|
+
ConfigurationModel.createEmptyModel(logService),
|
|
293
|
+
new ResourceMap<ConfigurationModel>(),
|
|
294
|
+
logService
|
|
262
295
|
);
|
|
263
296
|
}
|
|
264
297
|
|
|
265
298
|
private getConfigurationModel(label: string, data: { [key: string]: any }): ConfigurationModel {
|
|
266
|
-
const parser = new ConfigurationModelParser(label);
|
|
299
|
+
const parser = new ConfigurationModelParser(label, logService);
|
|
267
300
|
const sanitized = this.sanitize(data);
|
|
268
301
|
parser.parseRaw(sanitized);
|
|
269
302
|
return parser.configurationModel;
|
|
@@ -252,8 +252,22 @@ class TreeViewExtImpl<T> implements Disposable {
|
|
|
252
252
|
dragMimeTypes, dropMimeTypes
|
|
253
253
|
});
|
|
254
254
|
this.toDispose.push(Disposable.create(() => this.proxy.$unregisterTreeDataProvider(treeViewId)));
|
|
255
|
-
options.treeDataProvider.onDidChangeTreeData?.(
|
|
256
|
-
|
|
255
|
+
options.treeDataProvider.onDidChangeTreeData?.(elements => {
|
|
256
|
+
const ids = [];
|
|
257
|
+
elements = elements || [];
|
|
258
|
+
if (!Array.isArray(elements)) {
|
|
259
|
+
elements = [elements];
|
|
260
|
+
}
|
|
261
|
+
const set = new Set<T>();
|
|
262
|
+
for (const element of elements) {
|
|
263
|
+
set.add(element);
|
|
264
|
+
}
|
|
265
|
+
for (const node of this.nodes.values()) {
|
|
266
|
+
if (node.value && set.has(node.value)) {
|
|
267
|
+
ids.push(node.id);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
this.pendingRefresh = proxy.$refresh(treeViewId, ids);
|
|
257
271
|
});
|
|
258
272
|
}
|
|
259
273
|
|
|
@@ -378,7 +392,7 @@ class TreeViewExtImpl<T> implements Disposable {
|
|
|
378
392
|
let counter = 0;
|
|
379
393
|
do {
|
|
380
394
|
id = `${prefix}/${counter}:${elementId}`;
|
|
381
|
-
if (!mustReturnNew || !this.nodes.has(id) || this.nodes.get(id) === item) {
|
|
395
|
+
if (!mustReturnNew || !this.nodes.has(id) || this.nodes.get(id)?.pluginTreeItem === item) {
|
|
382
396
|
// Return first if asked for or
|
|
383
397
|
// Return if handle does not exist or
|
|
384
398
|
// Return if handle is being reused
|
|
@@ -177,10 +177,10 @@ describe('Type converters:', () => {
|
|
|
177
177
|
describe('convert tasks:', () => {
|
|
178
178
|
const customType = 'custom';
|
|
179
179
|
const shellType = 'shell';
|
|
180
|
-
const label = '
|
|
180
|
+
const label = 'npm run build';
|
|
181
181
|
const source = 'source';
|
|
182
|
-
const command = '
|
|
183
|
-
const commandLine = '
|
|
182
|
+
const command = 'npm';
|
|
183
|
+
const commandLine = 'npm run build';
|
|
184
184
|
const args = ['run', 'build'];
|
|
185
185
|
const cwd = '/projects/theia';
|
|
186
186
|
const additionalProperty = 'some property';
|
|
@@ -252,7 +252,7 @@ describe('Type converters:', () => {
|
|
|
252
252
|
...shellPluginTask, execution: {
|
|
253
253
|
command: {
|
|
254
254
|
quoting: types.ShellQuoting.Strong,
|
|
255
|
-
value: '
|
|
255
|
+
value: 'npm'
|
|
256
256
|
},
|
|
257
257
|
args,
|
|
258
258
|
options: {
|
package/src/plugin/types-impl.ts
CHANGED
|
@@ -1647,6 +1647,7 @@ export class DocumentLink {
|
|
|
1647
1647
|
@es5ClassCompat
|
|
1648
1648
|
export class DocumentDropOrPasteEditKind {
|
|
1649
1649
|
static readonly Empty: DocumentDropOrPasteEditKind = new DocumentDropOrPasteEditKind('');
|
|
1650
|
+
static readonly Text: DocumentDropOrPasteEditKind = new DocumentDropOrPasteEditKind('text');
|
|
1650
1651
|
|
|
1651
1652
|
private static sep = '.';
|
|
1652
1653
|
|
|
@@ -3842,6 +3843,33 @@ export enum EditSessionIdentityMatch {
|
|
|
3842
3843
|
}
|
|
3843
3844
|
// #endregion
|
|
3844
3845
|
|
|
3846
|
+
// #region terminalCompletionProvider
|
|
3847
|
+
export class TerminalCompletionList<T extends theia.TerminalCompletionItem> {
|
|
3848
|
+
|
|
3849
|
+
resourceRequestConfig?: theia.TerminalResourceRequestConfig;
|
|
3850
|
+
|
|
3851
|
+
items: T[];
|
|
3852
|
+
|
|
3853
|
+
/**
|
|
3854
|
+
* Creates a new completion list.
|
|
3855
|
+
*
|
|
3856
|
+
* @param items The completion items.
|
|
3857
|
+
* @param resourceRequestConfig Indicates which resources should be shown as completions for the cwd of the terminal.
|
|
3858
|
+
* @stubbed
|
|
3859
|
+
*/
|
|
3860
|
+
constructor(items?: T[], resourceRequestConfig?: theia.TerminalResourceRequestConfig) {
|
|
3861
|
+
}
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3864
|
+
export enum TerminalCompletionItemKind {
|
|
3865
|
+
File = 0,
|
|
3866
|
+
Folder = 1,
|
|
3867
|
+
Flag = 2,
|
|
3868
|
+
Method = 3,
|
|
3869
|
+
Argument = 4
|
|
3870
|
+
}
|
|
3871
|
+
// #endregion
|
|
3872
|
+
|
|
3845
3873
|
// #region terminalQuickFixProvider
|
|
3846
3874
|
export class TerminalQuickFixTerminalCommand {
|
|
3847
3875
|
/**
|
package/src/plugin/workspace.ts
CHANGED
|
@@ -188,8 +188,7 @@ export class WorkspaceExtImpl implements WorkspaceExt {
|
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
findFiles(include: theia.GlobPattern, exclude?: theia.GlobPattern | null, maxResults?: number,
|
|
192
|
-
token: CancellationToken = CancellationToken.None): PromiseLike<URI[]> {
|
|
191
|
+
findFiles(include: theia.GlobPattern, exclude?: theia.GlobPattern | null, maxResults?: number, token: CancellationToken = CancellationToken.None): PromiseLike<URI[]> {
|
|
193
192
|
let includePattern: string;
|
|
194
193
|
let includeFolderUri: string | undefined;
|
|
195
194
|
if (include) {
|
|
@@ -203,25 +202,29 @@ export class WorkspaceExtImpl implements WorkspaceExt {
|
|
|
203
202
|
includePattern = '';
|
|
204
203
|
}
|
|
205
204
|
|
|
206
|
-
let
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
205
|
+
let excludeString: string = '';
|
|
206
|
+
let useFileExcludes = true;
|
|
207
|
+
if (exclude === null) {
|
|
208
|
+
useFileExcludes = false;
|
|
209
|
+
} else if (exclude !== undefined) {
|
|
210
210
|
if (typeof exclude === 'string') {
|
|
211
|
-
|
|
211
|
+
excludeString = exclude;
|
|
212
212
|
} else {
|
|
213
|
-
|
|
213
|
+
excludeString = exclude.pattern;
|
|
214
214
|
}
|
|
215
|
-
} else {
|
|
216
|
-
excludePatternOrDisregardExcludes = false; // no excludes
|
|
217
215
|
}
|
|
218
216
|
|
|
219
217
|
if (token && token.isCancellationRequested) {
|
|
220
218
|
return Promise.resolve([]);
|
|
221
219
|
}
|
|
222
220
|
|
|
223
|
-
return this.proxy.$startFileSearch(includePattern, includeFolderUri,
|
|
224
|
-
|
|
221
|
+
return this.proxy.$startFileSearch(includePattern, includeFolderUri, {
|
|
222
|
+
maxResults,
|
|
223
|
+
exclude: excludeString,
|
|
224
|
+
useDefaultExcludes: useFileExcludes,
|
|
225
|
+
useDefaultSearchExcludes: false,
|
|
226
|
+
useIgnoreFiles: false
|
|
227
|
+
}, token).then(data => Array.isArray(data) ? data.map(uri => URI.revive(uri)) : []);
|
|
225
228
|
}
|
|
226
229
|
|
|
227
230
|
findTextInFiles(query: theia.TextSearchQuery, optionsOrCallback: theia.FindTextInFilesOptions | ((result: theia.TextSearchResult) => void),
|