@codingame/monaco-vscode-extensions-service-override 18.4.0 → 19.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/package.json +27 -30
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +43 -30
- 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.js +10 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +8 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.d.ts +2 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +28 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +18 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +1 -1
- 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/mainThreadLanguageFeatures.d.ts +4 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +41 -24
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +10 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +11 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.d.ts +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -6
- 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/mainThreadNotebookEditors.d.ts +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +2 -2
- 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.d.ts +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.d.ts +0 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +4 -8
- 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 +3 -3
- 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.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +1 -0
- 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
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +1 -0
|
@@ -19,19 +19,22 @@ import { reviveWorkspaceEditDto } from './mainThreadBulkEdits.js';
|
|
|
19
19
|
import { DataTransfer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypeConverters';
|
|
20
20
|
import { DataTransferFileCache } from '../common/shared/dataTransferCache.js';
|
|
21
21
|
import { CallHierarchyProviderRegistry } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
|
|
22
|
-
import { WorkspaceSymbolProviderRegistry } from '@codingame/monaco-vscode-
|
|
22
|
+
import { WorkspaceSymbolProviderRegistry } from '@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/contrib/search/common/search';
|
|
23
23
|
import { TypeHierarchyProviderRegistry } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
24
24
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
25
25
|
import { ExtHostContext, ISuggestDataDtoField, ISuggestResultDtoField, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
26
|
+
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
27
|
+
import { InlineCompletionEndOfLifeReasonKind as InlineCompletionEndOfLifeReasonKind$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHostTypes';
|
|
26
28
|
|
|
27
29
|
var MainThreadLanguageFeatures_1;
|
|
28
30
|
let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThreadLanguageFeatures extends Disposable {
|
|
29
|
-
constructor(extHostContext, _languageService, _languageConfigurationService, _languageFeaturesService, _uriIdentService) {
|
|
31
|
+
constructor(extHostContext, _languageService, _languageConfigurationService, _languageFeaturesService, _uriIdentService, _telemetryService) {
|
|
30
32
|
super();
|
|
31
33
|
this._languageService = _languageService;
|
|
32
34
|
this._languageConfigurationService = _languageConfigurationService;
|
|
33
35
|
this._languageFeaturesService = _languageFeaturesService;
|
|
34
36
|
this._uriIdentService = _uriIdentService;
|
|
37
|
+
this._telemetryService = _telemetryService;
|
|
35
38
|
this._registrations = this._register(( new DisposableMap()));
|
|
36
39
|
this._pasteEditProviders = ( new Map());
|
|
37
40
|
this._documentOnDropEditProviders = ( new Map());
|
|
@@ -496,14 +499,11 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
|
|
|
496
499
|
}
|
|
497
500
|
this._registrations.set(handle, this._languageFeaturesService.completionProvider.register(selector, provider));
|
|
498
501
|
}
|
|
499
|
-
$registerInlineCompletionsSupport(handle, selector, supportsHandleEvents, extensionId, yieldsToExtensionIds, displayName, debounceDelayMs, eventHandle) {
|
|
502
|
+
$registerInlineCompletionsSupport(handle, selector, supportsHandleEvents, extensionId, extensionVersion, groupId, yieldsToExtensionIds, displayName, debounceDelayMs, eventHandle) {
|
|
500
503
|
const provider = {
|
|
501
504
|
provideInlineCompletions: async (model, position, context, token) => {
|
|
502
505
|
return this._proxy.$provideInlineCompletions(handle, model.uri, position, context, token);
|
|
503
506
|
},
|
|
504
|
-
provideInlineEditsForRange: async (model, range, context, token) => {
|
|
505
|
-
return this._proxy.$provideInlineEditsForRange(handle, model.uri, range, context, token);
|
|
506
|
-
},
|
|
507
507
|
handleItemDidShow: async (completions, item, updatedInsertText) => {
|
|
508
508
|
if (supportsHandleEvents) {
|
|
509
509
|
await this._proxy.$handleInlineCompletionDidShow(handle, completions.pid, item.idx, updatedInsertText);
|
|
@@ -514,7 +514,7 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
|
|
|
514
514
|
await this._proxy.$handleInlineCompletionPartialAccept(handle, completions.pid, item.idx, acceptedCharacters, info);
|
|
515
515
|
}
|
|
516
516
|
},
|
|
517
|
-
handleEndOfLifetime: async (completions, item, reason) => {
|
|
517
|
+
handleEndOfLifetime: async (completions, item, reason, lifetimeSummary) => {
|
|
518
518
|
function mapReason(reason, f) {
|
|
519
519
|
if (reason.kind === InlineCompletionEndOfLifeReasonKind.Ignored) {
|
|
520
520
|
return {
|
|
@@ -527,16 +527,44 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
|
|
|
527
527
|
if (supportsHandleEvents) {
|
|
528
528
|
await this._proxy.$handleInlineCompletionEndOfLifetime(handle, completions.pid, item.idx, mapReason(reason, i => ({ pid: completions.pid, idx: i.idx })));
|
|
529
529
|
}
|
|
530
|
+
const endOfLifeSummary = {
|
|
531
|
+
id: lifetimeSummary.requestUuid,
|
|
532
|
+
shown: lifetimeSummary.shown,
|
|
533
|
+
shownDuration: lifetimeSummary.shownDuration,
|
|
534
|
+
shownDurationUncollapsed: lifetimeSummary.shownDurationUncollapsed,
|
|
535
|
+
timeUntilShown: lifetimeSummary.timeUntilShown,
|
|
536
|
+
editorType: lifetimeSummary.editorType,
|
|
537
|
+
viewKind: lifetimeSummary.viewKind,
|
|
538
|
+
requestReason: lifetimeSummary.requestReason,
|
|
539
|
+
error: lifetimeSummary.error,
|
|
540
|
+
languageId: lifetimeSummary.languageId,
|
|
541
|
+
cursorColumnDistance: lifetimeSummary.cursorColumnDistance,
|
|
542
|
+
cursorLineDistance: lifetimeSummary.cursorLineDistance,
|
|
543
|
+
lineCountOriginal: lifetimeSummary.lineCountOriginal,
|
|
544
|
+
lineCountModified: lifetimeSummary.lineCountModified,
|
|
545
|
+
characterCountOriginal: lifetimeSummary.characterCountOriginal,
|
|
546
|
+
characterCountModified: lifetimeSummary.characterCountModified,
|
|
547
|
+
disjointReplacements: lifetimeSummary.disjointReplacements,
|
|
548
|
+
sameShapeReplacements: lifetimeSummary.sameShapeReplacements,
|
|
549
|
+
extensionId,
|
|
550
|
+
extensionVersion,
|
|
551
|
+
partiallyAccepted: lifetimeSummary.partiallyAccepted,
|
|
552
|
+
superseded: reason.kind === InlineCompletionEndOfLifeReasonKind$1.Ignored && !!reason.supersededBy,
|
|
553
|
+
reason: reason.kind === InlineCompletionEndOfLifeReasonKind$1.Accepted ? 'accepted'
|
|
554
|
+
: reason.kind === InlineCompletionEndOfLifeReasonKind$1.Rejected ? 'rejected'
|
|
555
|
+
: 'ignored'
|
|
556
|
+
};
|
|
557
|
+
this._telemetryService.publicLog2('inlineCompletion.endOfLife', endOfLifeSummary);
|
|
530
558
|
},
|
|
531
|
-
|
|
532
|
-
this._proxy.$freeInlineCompletionsList(handle, completions.pid);
|
|
559
|
+
disposeInlineCompletions: (completions, reason) => {
|
|
560
|
+
this._proxy.$freeInlineCompletionsList(handle, completions.pid, reason);
|
|
533
561
|
},
|
|
534
562
|
handleRejection: async (completions, item) => {
|
|
535
563
|
if (supportsHandleEvents) {
|
|
536
564
|
await this._proxy.$handleInlineCompletionRejection(handle, completions.pid, item.idx);
|
|
537
565
|
}
|
|
538
566
|
},
|
|
539
|
-
groupId: extensionId,
|
|
567
|
+
groupId: groupId ?? extensionId,
|
|
540
568
|
yieldsToGroupIds: yieldsToExtensionIds,
|
|
541
569
|
debounceDelayMs,
|
|
542
570
|
displayName,
|
|
@@ -544,12 +572,12 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
|
|
|
544
572
|
return `InlineCompletionsProvider(${extensionId})`;
|
|
545
573
|
},
|
|
546
574
|
};
|
|
547
|
-
this._registrations.set(handle, this._languageFeaturesService.inlineCompletionsProvider.register(selector, provider));
|
|
548
575
|
if (typeof eventHandle === 'number') {
|
|
549
576
|
const emitter = ( new Emitter());
|
|
550
577
|
this._registrations.set(eventHandle, emitter);
|
|
551
578
|
provider.onDidChangeInlineCompletions = emitter.event;
|
|
552
579
|
}
|
|
580
|
+
this._registrations.set(handle, this._languageFeaturesService.inlineCompletionsProvider.register(selector, provider));
|
|
553
581
|
}
|
|
554
582
|
$emitInlineCompletionsChange(handle) {
|
|
555
583
|
const obj = this._registrations.get(handle);
|
|
@@ -557,18 +585,6 @@ let MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = class MainThread
|
|
|
557
585
|
obj.fire(undefined);
|
|
558
586
|
}
|
|
559
587
|
}
|
|
560
|
-
$registerInlineEditProvider(handle, selector, extensionId, displayName) {
|
|
561
|
-
const provider = {
|
|
562
|
-
displayName,
|
|
563
|
-
provideInlineEdit: async (model, context, token) => {
|
|
564
|
-
return this._proxy.$provideInlineEdit(handle, model.uri, context, token);
|
|
565
|
-
},
|
|
566
|
-
freeInlineEdit: (edit) => {
|
|
567
|
-
this._proxy.$freeInlineEdit(handle, edit.pid);
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
this._registrations.set(handle, this._languageFeaturesService.inlineEditProvider.register(selector, provider));
|
|
571
|
-
}
|
|
572
588
|
$registerSignatureHelpProvider(handle, selector, metadata) {
|
|
573
589
|
this._registrations.set(handle, this._languageFeaturesService.signatureHelpProvider.register(selector, {
|
|
574
590
|
signatureHelpTriggerCharacters: metadata.triggerCharacters,
|
|
@@ -865,7 +881,8 @@ MainThreadLanguageFeatures = MainThreadLanguageFeatures_1 = __decorate([
|
|
|
865
881
|
( __param(1, ILanguageService)),
|
|
866
882
|
( __param(2, ILanguageConfigurationService)),
|
|
867
883
|
( __param(3, ILanguageFeaturesService)),
|
|
868
|
-
( __param(4, IUriIdentityService))
|
|
884
|
+
( __param(4, IUriIdentityService)),
|
|
885
|
+
( __param(5, ITelemetryService))
|
|
869
886
|
], MainThreadLanguageFeatures);
|
|
870
887
|
let MainThreadPasteEditProvider = class MainThreadPasteEditProvider {
|
|
871
888
|
constructor(_handle, _proxy, metadata, _uriIdentService) {
|
|
@@ -61,7 +61,7 @@ let MainThreadLanguageModelTools = class MainThreadLanguageModelTools extends Di
|
|
|
61
61
|
this._runningToolCalls.delete(dto.callId);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
prepareToolInvocation: (
|
|
64
|
+
prepareToolInvocation: (context, token) => this._proxy.$prepareToolInvocation(id, context, token),
|
|
65
65
|
});
|
|
66
66
|
this._tools.set(id, disposable);
|
|
67
67
|
}
|
|
@@ -9,7 +9,7 @@ import { DisposableStore, DisposableMap, Disposable, toDisposable } from '@codin
|
|
|
9
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
10
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
11
11
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
12
|
-
import { resizeImage } from '@codingame/monaco-vscode-
|
|
12
|
+
import { resizeImage } from '@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/browser/imageUtils';
|
|
13
13
|
import { ILanguageModelIgnoredFilesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/ignoredFiles.service';
|
|
14
14
|
import { ILanguageModelStatsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelStats.service';
|
|
15
15
|
import { ILanguageModelsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels.service';
|
|
@@ -152,7 +152,7 @@ let MainThreadLanguageModels = class MainThreadLanguageModels {
|
|
|
152
152
|
if (this._authenticationService.getProviderIds().includes(authProviderId)) {
|
|
153
153
|
return Disposable.None;
|
|
154
154
|
}
|
|
155
|
-
const accountLabel = auth.accountLabel ?? ( localize(
|
|
155
|
+
const accountLabel = auth.accountLabel ?? ( localize(2452, 'Language Models'));
|
|
156
156
|
const disposables = ( new DisposableStore());
|
|
157
157
|
this._authenticationService.registerAuthenticationProvider(authProviderId, ( new LanguageModelAccessAuthProvider(authProviderId, auth.providerLabel, accountLabel)));
|
|
158
158
|
disposables.add(toDisposable(() => {
|
|
@@ -227,6 +227,14 @@ class LanguageModelAccessAuthProvider {
|
|
|
227
227
|
}
|
|
228
228
|
return Promise.resolve();
|
|
229
229
|
}
|
|
230
|
+
confirmation(extensionName, _recreatingSession) {
|
|
231
|
+
return localize(
|
|
232
|
+
2453,
|
|
233
|
+
"The extension '{0}' wants to access the language models provided by {1}.",
|
|
234
|
+
extensionName,
|
|
235
|
+
this.label
|
|
236
|
+
);
|
|
237
|
+
}
|
|
230
238
|
_createFakeSession(scopes) {
|
|
231
239
|
return {
|
|
232
240
|
id: 'fake-session',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IAuthorizationProtectedResourceMetadata, IAuthorizationServerMetadata } from "@codingame/monaco-vscode-api/vscode/vs/base/common/oauth";
|
|
2
3
|
import { UriComponents } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
3
4
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
4
5
|
import { LogLevel } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log";
|
|
@@ -10,7 +11,6 @@ import { IAuthenticationMcpUsageService } from "@codingame/monaco-vscode-api/vsc
|
|
|
10
11
|
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
11
12
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
12
13
|
import { MainThreadMcpShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
13
|
-
import { IAuthorizationProtectedResourceMetadata, IAuthorizationServerMetadata } from "@codingame/monaco-vscode-api/vscode/vs/base/common/oauth";
|
|
14
14
|
export declare class MainThreadMcp extends Disposable implements MainThreadMcpShape {
|
|
15
15
|
private readonly _extHostContext;
|
|
16
16
|
private readonly _mcpRegistry;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
3
|
import { disposableTimeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
|
+
import { CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
5
5
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
8
8
|
import Severity from '@codingame/monaco-vscode-api/vscode/vs/base/common/severity';
|
|
9
9
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
10
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
10
11
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
11
12
|
import { LogLevel } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log';
|
|
12
13
|
import { IMcpRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service';
|
|
@@ -18,7 +19,6 @@ import { IAuthenticationService } from '@codingame/monaco-vscode-api/vscode/vs/w
|
|
|
18
19
|
import { ExtensionHostKind, extensionHostKindToString } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
19
20
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
20
21
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
21
|
-
import { CancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
22
22
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
23
23
|
|
|
24
24
|
let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
@@ -138,9 +138,11 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
138
138
|
let session;
|
|
139
139
|
if (sessions.length) {
|
|
140
140
|
if (matchingAccountPreferenceSession && this.authenticationMCPServerAccessService.isAccessAllowed(providerId, matchingAccountPreferenceSession.account.label, server.id)) {
|
|
141
|
+
this.authenticationMCPServerUsageService.addAccountUsage(providerId, matchingAccountPreferenceSession.account.label, scopesSupported, server.id, server.label);
|
|
141
142
|
return matchingAccountPreferenceSession.accessToken;
|
|
142
143
|
}
|
|
143
144
|
if (!provider.supportsMultipleAccounts && this.authenticationMCPServerAccessService.isAccessAllowed(providerId, sessions[0].account.label, server.id)) {
|
|
145
|
+
this.authenticationMCPServerUsageService.addAccountUsage(providerId, sessions[0].account.label, scopesSupported, server.id, server.label);
|
|
144
146
|
return sessions[0].accessToken;
|
|
145
147
|
}
|
|
146
148
|
}
|
|
@@ -172,9 +174,9 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
172
174
|
}
|
|
173
175
|
async continueWithIncorrectAccountPrompt(chosenAccountLabel, requestedAccountLabel) {
|
|
174
176
|
const result = await this.dialogService.prompt({
|
|
175
|
-
message: ( localize(
|
|
177
|
+
message: ( localize(2454, "Incorrect account detected")),
|
|
176
178
|
detail: ( localize(
|
|
177
|
-
|
|
179
|
+
2455,
|
|
178
180
|
"The chosen account, {0}, does not match the requested account, {1}.",
|
|
179
181
|
chosenAccountLabel,
|
|
180
182
|
requestedAccountLabel
|
|
@@ -183,11 +185,11 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
183
185
|
cancelButton: true,
|
|
184
186
|
buttons: [
|
|
185
187
|
{
|
|
186
|
-
label: ( localize(
|
|
188
|
+
label: ( localize(2456, 'Keep {0}', chosenAccountLabel)),
|
|
187
189
|
run: () => chosenAccountLabel
|
|
188
190
|
},
|
|
189
191
|
{
|
|
190
|
-
label: ( localize(
|
|
192
|
+
label: ( localize(2457, 'Login with {0}', requestedAccountLabel)),
|
|
191
193
|
run: () => requestedAccountLabel
|
|
192
194
|
}
|
|
193
195
|
],
|
|
@@ -200,20 +202,20 @@ let MainThreadMcp = class MainThreadMcp extends Disposable {
|
|
|
200
202
|
async loginPrompt(mcpLabel, providerLabel, recreatingSession) {
|
|
201
203
|
const message = recreatingSession
|
|
202
204
|
? ( localize(
|
|
203
|
-
|
|
205
|
+
2458,
|
|
204
206
|
"The MCP Server Definition '{0}' wants you to authenticate to {1}.",
|
|
205
207
|
mcpLabel,
|
|
206
208
|
providerLabel
|
|
207
209
|
))
|
|
208
210
|
: ( localize(
|
|
209
|
-
|
|
211
|
+
2459,
|
|
210
212
|
"The MCP Server Definition '{0}' wants to authenticate to {1}.",
|
|
211
213
|
mcpLabel,
|
|
212
214
|
providerLabel
|
|
213
215
|
));
|
|
214
216
|
const buttons = [
|
|
215
217
|
{
|
|
216
|
-
label: ( localize(
|
|
218
|
+
label: ( localize(2460, "&&Allow")),
|
|
217
219
|
run() {
|
|
218
220
|
return true;
|
|
219
221
|
},
|
|
@@ -10,6 +10,7 @@ export declare class MainThreadMessageService implements MainThreadMessageServic
|
|
|
10
10
|
private readonly _commandService;
|
|
11
11
|
private readonly _dialogService;
|
|
12
12
|
private extensionsListener;
|
|
13
|
+
private static readonly URGENT_NOTIFICATION_SOURCES;
|
|
13
14
|
constructor(extHostContext: IExtHostContext, _notificationService: INotificationService, _commandService: ICommandService, _dialogService: IDialogService, extensionService: IExtensionService);
|
|
14
15
|
dispose(): void;
|
|
15
16
|
$showMessage(severity: Severity, message: string, options: MainThreadMessageOptions, commands: {
|
|
@@ -5,12 +5,19 @@ import { toAction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/act
|
|
|
5
5
|
import { MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
6
6
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
7
7
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
8
|
+
import { NotificationPriority } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
8
9
|
import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
|
|
9
10
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
11
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
11
12
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
12
13
|
|
|
14
|
+
var MainThreadMessageService_1;
|
|
13
15
|
let MainThreadMessageService = class MainThreadMessageService {
|
|
16
|
+
static { MainThreadMessageService_1 = this; }
|
|
17
|
+
static { this.URGENT_NOTIFICATION_SOURCES = [
|
|
18
|
+
'vscode.github-authentication',
|
|
19
|
+
'vscode.microsoft-authentication'
|
|
20
|
+
]; }
|
|
14
21
|
constructor(extHostContext, _notificationService, _commandService, _dialogService, extensionService) {
|
|
15
22
|
this._notificationService = _notificationService;
|
|
16
23
|
this._commandService = _commandService;
|
|
@@ -44,20 +51,22 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
44
51
|
}
|
|
45
52
|
})));
|
|
46
53
|
let source;
|
|
54
|
+
let sourceIsUrgent = false;
|
|
47
55
|
if (options.source) {
|
|
48
56
|
source = {
|
|
49
57
|
label: options.source.label,
|
|
50
58
|
id: options.source.identifier.value
|
|
51
59
|
};
|
|
60
|
+
sourceIsUrgent = MainThreadMessageService_1.URGENT_NOTIFICATION_SOURCES.includes(source.id);
|
|
52
61
|
}
|
|
53
62
|
if (!source) {
|
|
54
|
-
source = ( localize(
|
|
63
|
+
source = ( localize(2461, "Extension"));
|
|
55
64
|
}
|
|
56
65
|
const secondaryActions = [];
|
|
57
66
|
if (options.source) {
|
|
58
67
|
secondaryActions.push(toAction({
|
|
59
68
|
id: options.source.identifier.value,
|
|
60
|
-
label: ( localize(
|
|
69
|
+
label: ( localize(2462, "Manage Extension")),
|
|
61
70
|
run: () => {
|
|
62
71
|
return this._commandService.executeCommand('_extensions.manage', options.source.identifier.value);
|
|
63
72
|
}
|
|
@@ -67,7 +76,9 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
67
76
|
severity,
|
|
68
77
|
message,
|
|
69
78
|
actions: { primary: primaryActions, secondary: secondaryActions },
|
|
70
|
-
source
|
|
79
|
+
source,
|
|
80
|
+
priority: sourceIsUrgent ? NotificationPriority.URGENT : NotificationPriority.DEFAULT,
|
|
81
|
+
sticky: sourceIsUrgent
|
|
71
82
|
});
|
|
72
83
|
Event.once(messageHandle.onDidClose)(() => {
|
|
73
84
|
resolve(undefined);
|
|
@@ -92,13 +103,13 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
92
103
|
if (!cancelButton) {
|
|
93
104
|
if (buttons.length > 0) {
|
|
94
105
|
cancelButton = {
|
|
95
|
-
label: ( localize(
|
|
106
|
+
label: ( localize(2463, "Cancel")),
|
|
96
107
|
run: () => undefined
|
|
97
108
|
};
|
|
98
109
|
}
|
|
99
110
|
else {
|
|
100
111
|
cancelButton = {
|
|
101
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(2464, "&&OK")),
|
|
102
113
|
run: () => undefined
|
|
103
114
|
};
|
|
104
115
|
}
|
|
@@ -114,7 +125,7 @@ let MainThreadMessageService = class MainThreadMessageService {
|
|
|
114
125
|
return result;
|
|
115
126
|
}
|
|
116
127
|
};
|
|
117
|
-
MainThreadMessageService = __decorate([
|
|
128
|
+
MainThreadMessageService = MainThreadMessageService_1 = __decorate([
|
|
118
129
|
extHostNamedCustomer(MainContext.MainThreadMessageService),
|
|
119
130
|
( __param(1, INotificationService)),
|
|
120
131
|
( __param(2, ICommandService)),
|
|
@@ -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-271a23cd-c7d7-5761-ae35-a923a42987b8-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-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
12
|
+
import { getNotebookEditorFromEditorPane } from '@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-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,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-271a23cd-c7d7-5761-ae35-a923a42987b8-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-271a23cd-c7d7-5761-ae35-a923a42987b8-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-271a23cd-c7d7-5761-ae35-a923a42987b8-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-2726569c-a06b-5f25-b851-14311bef12fa-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';
|
|
@@ -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-6f931a91-88ea-5232-897f-a17ec3929ba5-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(2465, "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(2466, "Show Output")),
|
|
73
73
|
text: '$(output)',
|
|
74
|
-
ariaLabel: ( localize(
|
|
74
|
+
ariaLabel: ( localize(2467, "Show {0} Output Channel", channel.label)),
|
|
75
75
|
command: `workbench.action.output.show.${channel.id}`,
|
|
76
|
-
tooltip: ( localize(
|
|
76
|
+
tooltip: ( localize(2468, "Show {0} Output Channel", channel.label)),
|
|
77
77
|
kind: 'prominent'
|
|
78
78
|
};
|
|
79
79
|
if (!this._outputStatusItem.value) {
|
|
@@ -5,6 +5,7 @@ import { IExtHostContext } from "../../services/extensions/common/extHostCustome
|
|
|
5
5
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
6
6
|
export declare class MainThreadProgress implements MainThreadProgressShape {
|
|
7
7
|
private readonly _commandService;
|
|
8
|
+
private static readonly URGENT_PROGRESS_SOURCES;
|
|
8
9
|
private readonly _progressService;
|
|
9
10
|
private _progress;
|
|
10
11
|
private readonly _proxy;
|
|
@@ -8,8 +8,15 @@ import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
9
|
import { onUnexpectedExternalError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
10
10
|
import { toAction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
11
|
+
import { NotificationPriority } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification';
|
|
11
12
|
|
|
13
|
+
var MainThreadProgress_1;
|
|
12
14
|
let MainThreadProgress = class MainThreadProgress {
|
|
15
|
+
static { MainThreadProgress_1 = this; }
|
|
16
|
+
static { this.URGENT_PROGRESS_SOURCES = [
|
|
17
|
+
'vscode.github-authentication',
|
|
18
|
+
'vscode.microsoft-authentication'
|
|
19
|
+
]; }
|
|
13
20
|
constructor(extHostContext, progressService, _commandService) {
|
|
14
21
|
this._commandService = _commandService;
|
|
15
22
|
this._progress = ( new Map());
|
|
@@ -23,12 +30,14 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
23
30
|
async $startProgress(handle, options, extensionId) {
|
|
24
31
|
const task = this._createTask(handle);
|
|
25
32
|
if (options.location === ProgressLocation.Notification && extensionId) {
|
|
33
|
+
const sourceIsUrgent = MainThreadProgress_1.URGENT_PROGRESS_SOURCES.includes(extensionId);
|
|
26
34
|
const notificationOptions = {
|
|
27
35
|
...options,
|
|
36
|
+
priority: sourceIsUrgent ? NotificationPriority.URGENT : NotificationPriority.DEFAULT,
|
|
28
37
|
location: ProgressLocation.Notification,
|
|
29
38
|
secondaryActions: [toAction({
|
|
30
39
|
id: extensionId,
|
|
31
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(2469, "Manage Extension")),
|
|
32
41
|
run: () => this._commandService.executeCommand('_extensions.manage', extensionId)
|
|
33
42
|
})]
|
|
34
43
|
};
|
|
@@ -60,7 +69,7 @@ let MainThreadProgress = class MainThreadProgress {
|
|
|
60
69
|
};
|
|
61
70
|
}
|
|
62
71
|
};
|
|
63
|
-
MainThreadProgress = __decorate([
|
|
72
|
+
MainThreadProgress = MainThreadProgress_1 = __decorate([
|
|
64
73
|
extHostNamedCustomer(MainContext.MainThreadProgress),
|
|
65
74
|
( __param(1, IProgressService)),
|
|
66
75
|
( __param(2, ICommandService))
|
|
@@ -12,7 +12,7 @@ import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/c
|
|
|
12
12
|
import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
|
|
13
13
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
14
14
|
import { IQuickDiffService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/quickDiff.service';
|
|
15
|
-
import { ResourceTree } from '@codingame/monaco-vscode-
|
|
15
|
+
import { ResourceTree } from '@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/base/common/resourceTree';
|
|
16
16
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
17
17
|
import { IWorkspaceContextService } from '@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service';
|
|
18
18
|
import { basename } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
@@ -21,7 +21,7 @@ import { IModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/com
|
|
|
21
21
|
import { ITextModelService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.service';
|
|
22
22
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
23
23
|
import { structuralEquals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/equals';
|
|
24
|
-
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from '@codingame/monaco-vscode-
|
|
24
|
+
import { historyItemRefColor, historyItemRemoteRefColor, historyItemBaseRefColor } from '@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/scm/browser/scmHistory';
|
|
25
25
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
26
26
|
import { observableValueOpts } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValueOpts';
|
|
27
27
|
import { transaction } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/transaction';
|
|
@@ -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(2470, "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')));
|
|
@@ -10,7 +10,7 @@ import { SearchProviderType, QueryType } from '@codingame/monaco-vscode-api/vsco
|
|
|
10
10
|
import { ISearchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/search/common/search.service';
|
|
11
11
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
12
12
|
import { revive } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshalling';
|
|
13
|
-
import { SearchContext } from '@codingame/monaco-vscode-
|
|
13
|
+
import { SearchContext } from '@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/contrib/search/common/constants';
|
|
14
14
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
15
15
|
|
|
16
16
|
let MainThreadSearch = class MainThreadSearch {
|
|
@@ -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(2471, '{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(
|
|
@@ -19,7 +19,7 @@ import { Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/asy
|
|
|
19
19
|
import { ITerminalLinkProviderService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service';
|
|
20
20
|
import { TerminalQuickFixType } from '@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix';
|
|
21
21
|
import { ITerminalQuickFixService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service';
|
|
22
|
-
import { TerminalCapability } from '@codingame/monaco-vscode-
|
|
22
|
+
import { TerminalCapability } from '@codingame/monaco-vscode-a9da9abe-278d-5ce6-9418-99c7c07c5c37-common/vscode/vs/platform/terminal/common/capabilities/capabilities';
|
|
23
23
|
import { ITerminalCompletionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service';
|
|
24
24
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
25
25
|
|
|
@@ -8,6 +8,5 @@ export declare class MainThreadTerminalShellIntegration extends Disposable imple
|
|
|
8
8
|
private readonly _proxy;
|
|
9
9
|
constructor(extHostContext: IExtHostContext, _terminalService: ITerminalService, workbenchEnvironmentService: IWorkbenchEnvironmentService);
|
|
10
10
|
$executeCommand(terminalId: number, commandLine: string): void;
|
|
11
|
-
private _convertCwdToUri;
|
|
12
11
|
private _enableShellIntegration;
|
|
13
12
|
}
|