@codingame/monaco-vscode-extensions-service-override 16.1.0 → 17.0.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/index.d.ts +1 -1
- package/index.js +2 -1
- package/package.json +28 -32
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.d.ts +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +18 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +27 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +15 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +5 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +2 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +21 -27
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDto.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +29 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.d.ts +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +21 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +7 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.d.ts +13 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +12 -13
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +12 -12
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +4 -4
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { DeferredPromise, AsyncIterableSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { VSBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
5
|
+
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
5
6
|
import { transformErrorFromSerialization, transformErrorForSerialization } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
6
7
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
7
8
|
import { DisposableStore, DisposableMap, Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
9
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
11
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
11
|
-
import { resizeImage } from '@codingame/monaco-vscode-
|
|
12
|
+
import { resizeImage } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/imageUtils';
|
|
12
13
|
import { ILanguageModelIgnoredFilesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/ignoredFiles.service';
|
|
13
14
|
import { ILanguageModelStatsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelStats.service';
|
|
14
15
|
import { ILanguageModelsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service';
|
|
@@ -131,7 +132,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
|
|
|
131
132
|
this._logService.trace('[CHAT] request DONE', extension.value, requestId);
|
|
132
133
|
}
|
|
133
134
|
catch (err) {
|
|
134
|
-
this._logService.error('[CHAT] extension request ERRORED in STREAM', err, extension.value, requestId);
|
|
135
|
+
this._logService.error('[CHAT] extension request ERRORED in STREAM', toErrorMessage(err, true), extension.value, requestId);
|
|
135
136
|
this._proxy.$acceptResponseDone(requestId, transformErrorForSerialization(err));
|
|
136
137
|
}
|
|
137
138
|
})();
|
|
@@ -139,7 +140,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
|
|
|
139
140
|
this._logService.debug('[CHAT] extension request DONE', extension.value, requestId);
|
|
140
141
|
this._proxy.$acceptResponseDone(requestId, undefined);
|
|
141
142
|
}, err => {
|
|
142
|
-
this._logService.error('[CHAT] extension request ERRORED', err, extension.value, requestId);
|
|
143
|
+
this._logService.error('[CHAT] extension request ERRORED', toErrorMessage(err, true), extension.value, requestId);
|
|
143
144
|
this._proxy.$acceptResponseDone(requestId, transformErrorForSerialization(err));
|
|
144
145
|
});
|
|
145
146
|
}
|
|
@@ -151,7 +152,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
|
|
|
151
152
|
if (this._authenticationService.getProviderIds().includes(authProviderId)) {
|
|
152
153
|
return Disposable.None;
|
|
153
154
|
}
|
|
154
|
-
const accountLabel = auth.accountLabel ?? ( localize(
|
|
155
|
+
const accountLabel = auth.accountLabel ?? ( localize(2425, 'Language Models'));
|
|
155
156
|
const disposables = ( new DisposableStore());
|
|
156
157
|
this._authenticationService.registerAuthenticationProvider(authProviderId, ( new LanguageModelAccessAuthProvider(authProviderId, auth.providerLabel, accountLabel)));
|
|
157
158
|
disposables.add(toDisposable(() => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
2
|
import { LogLevel } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log";
|
|
4
3
|
import { IMcpRegistry } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service";
|
|
5
4
|
import { McpCollectionDefinition, McpConnectionState, McpServerDefinition } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes";
|
|
@@ -10,9 +9,9 @@ export declare class MainThreadMcp extends Disposable implements MainThreadMcpSh
|
|
|
10
9
|
private readonly _mcpRegistry;
|
|
11
10
|
private _serverIdCounter;
|
|
12
11
|
private readonly _servers;
|
|
12
|
+
private readonly _proxy;
|
|
13
13
|
private readonly _collectionDefinitions;
|
|
14
|
-
|
|
15
|
-
constructor(_extHostContext: IExtHostContext, _mcpRegistry: IMcpRegistry, configurationService: IConfigurationService);
|
|
14
|
+
constructor(_extHostContext: IExtHostContext, _mcpRegistry: IMcpRegistry);
|
|
16
15
|
$upsertMcpCollection(collection: McpCollectionDefinition.FromExtHost, serversDto: McpServerDefinition.Serialized[]): void;
|
|
17
16
|
$deleteMcpCollection(collectionId: string): void;
|
|
18
17
|
$onDidChangeState(id: number, update: McpConnectionState): void;
|
|
@@ -2,30 +2,25 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { disposableTimeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
-
import { Disposable, DisposableMap
|
|
5
|
+
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
7
|
-
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
7
|
import { LogLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
9
|
-
import { observableConfigValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
10
|
-
import { mcpEnabledSection } from '@codingame/monaco-vscode-ec21d4de-4d65-574c-8715-bb1a6bbad376-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
11
8
|
import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
|
|
12
|
-
import { McpServerTransportType, McpServerDefinition, McpConnectionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
9
|
+
import { McpServerTransportType, McpServerDefinition, McpServerLaunch, McpConnectionState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpTypes';
|
|
13
10
|
import { ExtensionHostKind, extensionHostKindToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
14
11
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
15
12
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
16
13
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/base';
|
|
17
|
-
import { autorun } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/autorun';
|
|
18
14
|
|
|
19
15
|
let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
20
|
-
constructor(_extHostContext, _mcpRegistry
|
|
16
|
+
constructor(_extHostContext, _mcpRegistry) {
|
|
21
17
|
super();
|
|
22
18
|
this._extHostContext = _extHostContext;
|
|
23
19
|
this._mcpRegistry = _mcpRegistry;
|
|
24
20
|
this._serverIdCounter = 0;
|
|
25
21
|
this._servers = ( new Map());
|
|
26
22
|
this._collectionDefinitions = this._register(( new DisposableMap()));
|
|
27
|
-
const proxy = ( _extHostContext.getProxy(ExtHostContext.ExtHostMcp));
|
|
28
|
-
this._mcpEnabled = observableConfigValue(mcpEnabledSection, true, configurationService);
|
|
23
|
+
const proxy = this._proxy = ( _extHostContext.getProxy(ExtHostContext.ExtHostMcp));
|
|
29
24
|
this._register(this._mcpRegistry.registerDelegate({
|
|
30
25
|
priority: _extHostContext.extensionHostKind === ExtensionHostKind.LocalWebWorker ? 0 : 1,
|
|
31
26
|
waitForInitialProviderPromises() {
|
|
@@ -61,24 +56,19 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
61
56
|
}
|
|
62
57
|
else {
|
|
63
58
|
const serverDefinitions = observableValue('mcpServers', servers);
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
handle.clear();
|
|
76
|
-
}
|
|
77
|
-
}));
|
|
59
|
+
const handle = this._mcpRegistry.registerCollection({
|
|
60
|
+
...collection,
|
|
61
|
+
resolveServerLanch: collection.canResolveLaunch ? (async (def) => {
|
|
62
|
+
const r = await this._proxy.$resolveMcpLaunch(collection.id, def.label);
|
|
63
|
+
return r ? McpServerLaunch.fromSerialized(r) : undefined;
|
|
64
|
+
}) : undefined,
|
|
65
|
+
remoteAuthority: this._extHostContext.remoteAuthority,
|
|
66
|
+
serverDefinitions,
|
|
67
|
+
});
|
|
78
68
|
this._collectionDefinitions.set(collection.id, {
|
|
79
69
|
fromExtHost: collection,
|
|
80
70
|
servers: serverDefinitions,
|
|
81
|
-
dispose: () =>
|
|
71
|
+
dispose: () => handle.dispose(),
|
|
82
72
|
});
|
|
83
73
|
}
|
|
84
74
|
}
|
|
@@ -116,8 +106,7 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
116
106
|
};
|
|
117
107
|
MainThreadMcp = __decorate([
|
|
118
108
|
extHostNamedCustomer(MainContext.MainThreadMcp),
|
|
119
|
-
( __param(1, IMcpRegistry))
|
|
120
|
-
( __param(2, IConfigurationService))
|
|
109
|
+
( __param(1, IMcpRegistry))
|
|
121
110
|
], MainThreadMcp);
|
|
122
111
|
class ExtHostMcpServerLaunch extends Disposable {
|
|
123
112
|
pushLog(level, message) {
|
|
@@ -132,7 +121,12 @@ class ExtHostMcpServerLaunch extends Disposable {
|
|
|
132
121
|
this.pushLog(LogLevel.Warning, `Failed to parse message: ${JSON.stringify(message)}`);
|
|
133
122
|
}
|
|
134
123
|
if (parsed) {
|
|
135
|
-
|
|
124
|
+
if (Array.isArray(parsed)) {
|
|
125
|
+
parsed.forEach(p => this._onDidReceiveMessage.fire(p));
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this._onDidReceiveMessage.fire(parsed);
|
|
129
|
+
}
|
|
136
130
|
}
|
|
137
131
|
}
|
|
138
132
|
constructor(extHostKind, stop, send) {
|
|
@@ -51,13 +51,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
if (!source) {
|
|
54
|
-
source = ( localize(
|
|
54
|
+
source = ( localize(2426, "Extension"));
|
|
55
55
|
}
|
|
56
56
|
const secondaryActions = [];
|
|
57
57
|
if (options.source) {
|
|
58
58
|
secondaryActions.push(toAction({
|
|
59
59
|
id: options.source.identifier.value,
|
|
60
|
-
label: ( localize(
|
|
60
|
+
label: ( localize(2427, "Manage Extension")),
|
|
61
61
|
run: () => {
|
|
62
62
|
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
63
63
|
}
|
|
@@ -92,13 +92,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
92
92
|
if (!cancelButton) {
|
|
93
93
|
if (buttons.length > 0) {
|
|
94
94
|
cancelButton = {
|
|
95
|
-
label: ( localize(
|
|
95
|
+
label: ( localize(2428, "Cancel")),
|
|
96
96
|
run: () => undefined
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
cancelButton = {
|
|
101
|
-
label: ( localize(
|
|
101
|
+
label: ( localize(2429, "&&OK")),
|
|
102
102
|
run: () => undefined
|
|
103
103
|
};
|
|
104
104
|
}
|
|
@@ -11,7 +11,7 @@ import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
11
11
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
12
12
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
13
13
|
import { INotebookCellStatusBarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service';
|
|
14
|
-
import { SimpleNotebookProviderInfo } from '@codingame/monaco-vscode-
|
|
14
|
+
import { SimpleNotebookProviderInfo } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookService';
|
|
15
15
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
16
16
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
17
17
|
import { SerializableObjectWithBuffers } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/proxyIdentifier';
|
|
@@ -8,8 +8,8 @@ import { MainThreadNotebookDocuments } from './mainThreadNotebookDocuments.js';
|
|
|
8
8
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
9
9
|
import { MainThreadNotebookEditors } from './mainThreadNotebookEditors.js';
|
|
10
10
|
import { extHostCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
11
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
12
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
11
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
12
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
13
13
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
14
14
|
import { INotebookService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookService.service';
|
|
15
15
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
2
2
|
import * as notebookCommon from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookCommon";
|
|
3
|
-
import { ICellExecuteUpdate, ICellExecutionComplete } from "@codingame/monaco-vscode-
|
|
3
|
+
import { ICellExecuteUpdate, ICellExecutionComplete } from "@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
|
|
4
4
|
export declare namespace NotebookDto {
|
|
5
5
|
function toNotebookOutputItemDto(item: notebookCommon.IOutputItemDto): extHostProtocol.NotebookOutputItemDto;
|
|
6
6
|
function toNotebookOutputDto(output: notebookCommon.IOutputDto): extHostProtocol.NotebookOutputDto;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
|
-
import { INotebookEditor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { INotebookEditor } from "@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
|
|
4
4
|
import { INotebookEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service";
|
|
5
|
-
import { ICellRange } from "@codingame/monaco-vscode-
|
|
5
|
+
import { ICellRange } from "@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
6
6
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
7
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
8
8
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
@@ -5,9 +5,9 @@ import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/objec
|
|
|
5
5
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
6
6
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
7
|
import { EditorActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
8
|
-
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-
|
|
8
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser';
|
|
9
9
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
10
|
-
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-
|
|
10
|
+
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
11
11
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
12
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { ExtHostContext, NotebookEditorRevealType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -10,7 +10,7 @@ import { ILanguageService } from '@codingame/monaco-vscode-api/vscode/vs/editor/
|
|
|
10
10
|
import { NotebookDto } from './mainThreadNotebookDto.js';
|
|
11
11
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
12
12
|
import { INotebookEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service';
|
|
13
|
-
import { NotebookExecutionType } from '@codingame/monaco-vscode-
|
|
13
|
+
import { NotebookExecutionType } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
|
14
14
|
import { INotebookExecutionStateService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service';
|
|
15
15
|
import { INotebookKernelService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookKernelService.service';
|
|
16
16
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
@@ -6,7 +6,7 @@ import { extHostCustomer } from '../../services/extensions/common/extHostCustome
|
|
|
6
6
|
import { ExtHostContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
7
|
import { raceCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
8
|
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
9
|
-
import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-
|
|
9
|
+
import { NotebookFileWorkingCopyModel } from '@codingame/monaco-vscode-bba55be6-41a2-50cd-a3cc-8bafa35bfa89-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorModel';
|
|
10
10
|
|
|
11
11
|
class ExtHostNotebookDocumentSaveParticipant {
|
|
12
12
|
constructor(extHostContext) {
|
|
@@ -18,7 +18,7 @@ class ExtHostNotebookDocumentSaveParticipant {
|
|
|
18
18
|
}
|
|
19
19
|
let _warningTimeout;
|
|
20
20
|
const p = ( new Promise((resolve, reject) => {
|
|
21
|
-
_warningTimeout = setTimeout(() => reject(( new Error(( localize(
|
|
21
|
+
_warningTimeout = setTimeout(() => reject(( new Error(( localize(2430, "Aborted onWillSaveNotebookDocument-event after 1750ms"))))), 1750);
|
|
22
22
|
this._proxy.$participateInSave(workingCopy.resource, context.reason, token).then(_ => {
|
|
23
23
|
clearTimeout(_warningTimeout);
|
|
24
24
|
return undefined;
|
|
@@ -69,11 +69,11 @@ let MainThreadOutputService = class MainThreadOutputService extends Disposable {
|
|
|
69
69
|
}
|
|
70
70
|
_showChannelQuietly(channel) {
|
|
71
71
|
const statusProperties = {
|
|
72
|
-
name: ( localize(
|
|
72
|
+
name: ( localize(2431, "Show Output")),
|
|
73
73
|
text: '$(output)',
|
|
74
|
-
ariaLabel: ( localize(
|
|
74
|
+
ariaLabel: ( localize(2432, "Show {0} Output Channel", channel.label)),
|
|
75
75
|
command: `workbench.action.output.show.${channel.id}`,
|
|
76
|
-
tooltip: ( localize(
|
|
76
|
+
tooltip: ( localize(2433, "Show {0} Output Channel", channel.label)),
|
|
77
77
|
kind: 'prominent'
|
|
78
78
|
};
|
|
79
79
|
if (!this._outputStatusItem.value) {
|
|
@@ -28,7 +28,7 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
28
28
|
location: ProgressLocation.Notification,
|
|
29
29
|
secondaryActions: [toAction({
|
|
30
30
|
id: extensionId,
|
|
31
|
-
label: ( localize(
|
|
31
|
+
label: ( localize(2434, "Manage Extension")),
|
|
32
32
|
run: () => this._commandService.executeCommand('_extensions.manage', extensionId)
|
|
33
33
|
})]
|
|
34
34
|
};
|
|
@@ -7,7 +7,7 @@ export declare class MainThreadQuickDiff implements MainThreadQuickDiffShape {
|
|
|
7
7
|
private readonly proxy;
|
|
8
8
|
private providerDisposables;
|
|
9
9
|
constructor(extHostContext: IExtHostContext, quickDiffService: IQuickDiffService);
|
|
10
|
-
$registerQuickDiffProvider(handle: number, selector: IDocumentFilterDto[], label: string, rootUri: UriComponents | undefined
|
|
10
|
+
$registerQuickDiffProvider(handle: number, selector: IDocumentFilterDto[], id: string, label: string, rootUri: UriComponents | undefined): Promise<void>;
|
|
11
11
|
$unregisterQuickDiffProvider(handle: number): Promise<void>;
|
|
12
12
|
dispose(): void;
|
|
13
13
|
}
|
|
@@ -13,13 +13,13 @@ let MainThreadQuickDiff = class MainThreadQuickDiff {
|
|
|
13
13
|
this.providerDisposables = ( new DisposableMap());
|
|
14
14
|
this.proxy = ( extHostContext.getProxy(ExtHostContext.ExtHostQuickDiff));
|
|
15
15
|
}
|
|
16
|
-
async $registerQuickDiffProvider(handle, selector, label, rootUri
|
|
16
|
+
async $registerQuickDiffProvider(handle, selector, id, label, rootUri) {
|
|
17
17
|
const provider = {
|
|
18
|
+
id,
|
|
18
19
|
label,
|
|
19
20
|
rootUri: URI.revive(rootUri),
|
|
20
21
|
selector,
|
|
21
|
-
|
|
22
|
-
visible,
|
|
22
|
+
kind: 'contributed',
|
|
23
23
|
getOriginalResource: async (uri) => {
|
|
24
24
|
return URI.revive(await this.proxy.$provideOriginalResource(handle, uri, CancellationToken.None));
|
|
25
25
|
}
|
|
@@ -232,8 +232,6 @@ class MainThreadSCMProvider {
|
|
|
232
232
|
this._statusBarCommands = observableValue(this, undefined);
|
|
233
233
|
this._commitTemplate = observableValue(this, '');
|
|
234
234
|
this._actionButton = observableValue(this, undefined);
|
|
235
|
-
this.isSCM = true;
|
|
236
|
-
this.visible = true;
|
|
237
235
|
this._historyProvider = observableValue(this, undefined);
|
|
238
236
|
if (_rootUri) {
|
|
239
237
|
const folder = this._workspaceContextService.getWorkspaceFolder(_rootUri);
|
|
@@ -261,17 +259,42 @@ class MainThreadSCMProvider {
|
|
|
261
259
|
}
|
|
262
260
|
if (features.hasQuickDiffProvider && !this._quickDiff) {
|
|
263
261
|
this._quickDiff = this._quickDiffService.addQuickDiffProvider({
|
|
262
|
+
id: `${this._providerId}.quickDiffProvider`,
|
|
264
263
|
label: features.quickDiffLabel ?? this.label,
|
|
265
264
|
rootUri: this.rootUri,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
265
|
+
kind: 'primary',
|
|
266
|
+
getOriginalResource: async (uri) => {
|
|
267
|
+
if (!this.features.hasQuickDiffProvider) {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
const result = await this.proxy.$provideOriginalResource(this.handle, uri, CancellationToken.None);
|
|
271
|
+
return result && URI.revive(result);
|
|
272
|
+
}
|
|
269
273
|
});
|
|
270
274
|
}
|
|
271
275
|
else if (features.hasQuickDiffProvider === false && this._quickDiff) {
|
|
272
276
|
this._quickDiff.dispose();
|
|
273
277
|
this._quickDiff = undefined;
|
|
274
278
|
}
|
|
279
|
+
if (features.hasSecondaryQuickDiffProvider && !this._stagedQuickDiff) {
|
|
280
|
+
this._stagedQuickDiff = this._quickDiffService.addQuickDiffProvider({
|
|
281
|
+
id: `${this._providerId}.secondaryQuickDiffProvider`,
|
|
282
|
+
label: features.secondaryQuickDiffLabel ?? this.label,
|
|
283
|
+
rootUri: this.rootUri,
|
|
284
|
+
kind: 'secondary',
|
|
285
|
+
getOriginalResource: async (uri) => {
|
|
286
|
+
if (!this.features.hasSecondaryQuickDiffProvider) {
|
|
287
|
+
return null;
|
|
288
|
+
}
|
|
289
|
+
const result = await this.proxy.$provideSecondaryOriginalResource(this.handle, uri, CancellationToken.None);
|
|
290
|
+
return result && URI.revive(result);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
else if (features.hasSecondaryQuickDiffProvider === false && this._stagedQuickDiff) {
|
|
295
|
+
this._stagedQuickDiff.dispose();
|
|
296
|
+
this._stagedQuickDiff = undefined;
|
|
297
|
+
}
|
|
275
298
|
if (features.hasHistoryProvider && !this.historyProvider.get()) {
|
|
276
299
|
const historyProvider = ( new MainThreadSCMHistoryProvider(this.proxy, this.handle));
|
|
277
300
|
this._historyProvider.set(historyProvider, undefined);
|
|
@@ -387,6 +410,7 @@ class MainThreadSCMProvider {
|
|
|
387
410
|
};
|
|
388
411
|
}
|
|
389
412
|
dispose() {
|
|
413
|
+
this._stagedQuickDiff?.dispose();
|
|
390
414
|
this._quickDiff?.dispose();
|
|
391
415
|
}
|
|
392
416
|
}
|
|
@@ -17,7 +17,7 @@ class ExtHostSaveParticipant {
|
|
|
17
17
|
return undefined;
|
|
18
18
|
}
|
|
19
19
|
const p = ( new Promise((resolve, reject) => {
|
|
20
|
-
setTimeout(() => reject(( new Error(( localize(
|
|
20
|
+
setTimeout(() => reject(( new Error(( localize(2435, "Aborted onWillSaveTextDocument-event after 1750ms"))))), 1750);
|
|
21
21
|
this._proxy.$participateInSave(editorModel.resource, context.reason).then(values => {
|
|
22
22
|
if (!values.every(success => success)) {
|
|
23
23
|
return Promise.reject(( new Error('listener failed')));
|
|
@@ -6,6 +6,7 @@ import { IRawFileMatch2 } from "@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
6
6
|
import { ISearchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search.service";
|
|
7
7
|
import { MainThreadSearchShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
8
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
9
|
+
import { AISearchKeyword } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/searchExtTypes";
|
|
9
10
|
export declare class MainThreadSearch implements MainThreadSearchShape {
|
|
10
11
|
private readonly _searchService;
|
|
11
12
|
private readonly _telemetryService;
|
|
@@ -20,5 +21,6 @@ export declare class MainThreadSearch implements MainThreadSearchShape {
|
|
|
20
21
|
$unregisterProvider(handle: number): void;
|
|
21
22
|
$handleFileMatch(handle: number, session: number, data: UriComponents[]): void;
|
|
22
23
|
$handleTextMatch(handle: number, session: number, data: IRawFileMatch2[]): void;
|
|
24
|
+
$handleKeywordResult(handle: number, session: number, data: AISearchKeyword): void;
|
|
23
25
|
$handleTelemetry(eventName: string, data: any): void;
|
|
24
26
|
}
|
|
@@ -60,6 +60,13 @@ let MainThreadSearch = class MainThreadSearch {
|
|
|
60
60
|
}
|
|
61
61
|
provider.handleFindMatch(session, data);
|
|
62
62
|
}
|
|
63
|
+
$handleKeywordResult(handle, session, data) {
|
|
64
|
+
const provider = this._searchProvider.get(handle);
|
|
65
|
+
if (!provider) {
|
|
66
|
+
throw ( new Error('Got result for unknown provider'));
|
|
67
|
+
}
|
|
68
|
+
provider.handleKeywordResult(session, data);
|
|
69
|
+
}
|
|
63
70
|
$handleTelemetry(eventName, data) {
|
|
64
71
|
this._telemetryService.publicLog(eventName, data);
|
|
65
72
|
}
|
|
@@ -73,10 +80,11 @@ MainThreadSearch = __decorate([
|
|
|
73
80
|
], MainThreadSearch);
|
|
74
81
|
class SearchOperation {
|
|
75
82
|
static { this._idPool = 0; }
|
|
76
|
-
constructor(progress, id = ++SearchOperation._idPool, matches = ( new Map())) {
|
|
83
|
+
constructor(progress, id = ++SearchOperation._idPool, matches = ( new Map()), keywords = []) {
|
|
77
84
|
this.progress = progress;
|
|
78
85
|
this.id = id;
|
|
79
86
|
this.matches = matches;
|
|
87
|
+
this.keywords = keywords;
|
|
80
88
|
}
|
|
81
89
|
addMatch(match) {
|
|
82
90
|
const existingMatch = this.matches.get(( match.resource.toString()));
|
|
@@ -90,6 +98,9 @@ class SearchOperation {
|
|
|
90
98
|
}
|
|
91
99
|
this.progress?.(match);
|
|
92
100
|
}
|
|
101
|
+
addKeyword(result) {
|
|
102
|
+
this.keywords.push(result);
|
|
103
|
+
}
|
|
93
104
|
}
|
|
94
105
|
class RemoteSearchProvider {
|
|
95
106
|
constructor(searchService, type, _scheme, _handle, _proxy) {
|
|
@@ -124,7 +135,7 @@ class RemoteSearchProvider {
|
|
|
124
135
|
const searchP = this._provideSearchResults(query, search.id, token);
|
|
125
136
|
return Promise.resolve(searchP).then((result) => {
|
|
126
137
|
this._searches.delete(search.id);
|
|
127
|
-
return { results: Array.from(( search.matches.values())), stats: result.stats, limitHit: result.limitHit, messages: result.messages };
|
|
138
|
+
return { results: Array.from(( search.matches.values())), aiKeywords: Array.from(search.keywords), stats: result.stats, limitHit: result.limitHit, messages: result.messages };
|
|
128
139
|
}, err => {
|
|
129
140
|
this._searches.delete(search.id);
|
|
130
141
|
return Promise.reject(err);
|
|
@@ -149,7 +160,14 @@ class RemoteSearchProvider {
|
|
|
149
160
|
}
|
|
150
161
|
});
|
|
151
162
|
}
|
|
152
|
-
|
|
163
|
+
handleKeywordResult(session, data) {
|
|
164
|
+
const searchOp = this._searches.get(session);
|
|
165
|
+
if (!searchOp) {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
searchOp.addKeyword(data);
|
|
169
|
+
}
|
|
170
|
+
_provideSearchResults(query, session, token, onKeywordResult) {
|
|
153
171
|
switch (query.type) {
|
|
154
172
|
case QueryType.File:
|
|
155
173
|
return this._proxy.$provideFileSearchResults(this._handle, session, query, token);
|
|
@@ -3,7 +3,7 @@ import { IExtHostContext } from "../../services/extensions/common/extHostCustome
|
|
|
3
3
|
import { MainThreadSecretStateShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
4
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
5
5
|
import { ISecretStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service";
|
|
6
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
6
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
7
7
|
export declare class MainThreadSecretState extends Disposable implements MainThreadSecretStateShape {
|
|
8
8
|
private readonly secretStorageService;
|
|
9
9
|
private readonly logService;
|
|
@@ -6,7 +6,7 @@ import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode
|
|
|
6
6
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
7
7
|
import { SequencerByKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
8
8
|
import { ISecretStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/secrets/common/secrets.service';
|
|
9
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
9
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-34a0ffd3-b9f5-5699-b43b-38af5732f38a-common/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
10
10
|
|
|
11
11
|
let MainThreadSecretState = class MainThreadSecretState extends Disposable {
|
|
12
12
|
constructor(extHostContext, secretStorageService, logService, environmentService) {
|
|
@@ -64,7 +64,13 @@ let MainThreadSpeech = class MainThreadSpeech {
|
|
|
64
64
|
onDidChange: onDidChange.event,
|
|
65
65
|
synthesize: async (text) => {
|
|
66
66
|
await this.proxy.$synthesizeSpeech(session, text);
|
|
67
|
-
|
|
67
|
+
const disposable = ( new DisposableStore());
|
|
68
|
+
try {
|
|
69
|
+
await raceCancellation(Event.toPromise(Event.filter(onDidChange.event, e => e.status === TextToSpeechStatus.Stopped, disposable), disposable), token);
|
|
70
|
+
}
|
|
71
|
+
finally {
|
|
72
|
+
disposable.dispose();
|
|
73
|
+
}
|
|
68
74
|
}
|
|
69
75
|
};
|
|
70
76
|
},
|
|
@@ -405,7 +405,7 @@ var TaskDTO;
|
|
|
405
405
|
}
|
|
406
406
|
command.presentation = TaskPresentationOptionsDTO.to(task.presentationOptions);
|
|
407
407
|
const source = TaskSourceDTO.to(task.source, workspace);
|
|
408
|
-
const label = ( localize(
|
|
408
|
+
const label = ( localize(2436, '{0}: {1}', source.label, task.name));
|
|
409
409
|
const definition = TaskDefinitionDTO.to(task.definition, executeOnly);
|
|
410
410
|
const id = (CustomExecutionDTO.is(task.execution) && task._id) ? task._id : `${task.source.extensionId}.${definition._key}`;
|
|
411
411
|
const result = ( new ContributedTask(
|
|
@@ -112,13 +112,13 @@ let MainThreadTunnelService = class MainThreadTunnelService extends Disposable {
|
|
|
112
112
|
}
|
|
113
113
|
async elevationPrompt(tunnelOptions, tunnel, source) {
|
|
114
114
|
return this.notificationService.prompt(Severity.Info, ( localize(
|
|
115
|
-
|
|
115
|
+
2437,
|
|
116
116
|
"The extension {0} has forwarded port {1}. You'll need to run as superuser to use port {2} locally.",
|
|
117
117
|
source,
|
|
118
118
|
tunnelOptions.remoteAddress.port,
|
|
119
119
|
tunnelOptions.localAddressPort
|
|
120
120
|
)), [{
|
|
121
|
-
label: ( localize(
|
|
121
|
+
label: ( localize(2438, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
|
|
122
122
|
run: async () => {
|
|
123
123
|
this.elevateionRetry = true;
|
|
124
124
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -52,7 +52,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
52
52
|
}
|
|
53
53
|
catch (e) {
|
|
54
54
|
if (!isCancellationError(e)) {
|
|
55
|
-
const openDefaultAction = ( new Action('default', ( localize(
|
|
55
|
+
const openDefaultAction = ( new Action('default', ( localize(2439, "Open using default opener")), undefined, undefined, async () => {
|
|
56
56
|
await this.openerService.open(uri, {
|
|
57
57
|
allowTunneling: false,
|
|
58
58
|
allowContributedOpeners: defaultExternalUriOpenerId,
|
|
@@ -61,7 +61,7 @@ let MainThreadUriOpeners = class MainThreadUriOpeners extends Disposable {
|
|
|
61
61
|
openDefaultAction.tooltip = ( uri.toString());
|
|
62
62
|
this.notificationService.notify({
|
|
63
63
|
severity: Severity.Error,
|
|
64
|
-
message: ( localize(
|
|
64
|
+
message: ( localize(2440, 'Could not open uri with \'{0}\': {1}', id, (e.toString()))),
|
|
65
65
|
actions: {
|
|
66
66
|
primary: [
|
|
67
67
|
openDefaultAction
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
4
|
-
import { WebviewInput } from "@codingame/monaco-vscode-
|
|
4
|
+
import { WebviewInput } from "@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput";
|
|
5
5
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
6
6
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
7
7
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -7,11 +7,11 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
7
7
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
8
8
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
9
9
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
10
|
-
import { DiffEditorInput } from '@codingame/monaco-vscode-
|
|
11
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
12
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
10
|
+
import { DiffEditorInput } from '@codingame/monaco-vscode-9c72783f-914c-50be-b9ef-da16356d81a8-common/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
11
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-324f9a6e-6231-5bfc-af17-e147abd2dfd2-common/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
13
13
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
14
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
14
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
15
15
|
import { GroupsOrder, GroupLocation, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
16
16
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
17
17
|
import { ACTIVE_GROUP, SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|