@codingame/monaco-vscode-extensions-service-override 23.3.0 → 24.1.1
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 +7 -3
- package/index.js +12 -18
- package/package.json +3 -30
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +28 -28
- package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +1 -1
- package/vscode/src/vs/platform/remote/common/managedSocket.d.ts +2 -2
- package/vscode/src/vs/platform/remote/common/managedSocket.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.d.ts +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +43 -34
- 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 +8 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +50 -19
- package/vscode/src/vs/workbench/api/browser/mainThreadChatCodeMapper.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.d.ts +3 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadChatContext.js +9 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.d.ts +16 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadChatSessions.js +91 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadChatStatus.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.d.ts +2 -1
- 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 +11 -11
- 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 +24 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.d.ts +3 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +196 -136
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModelTools.js +2 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.d.ts +4 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadMcp.js +93 -14
- 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/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/mainThreadQuickOpen.js +6 -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/mainThreadSecretState.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +2 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.d.ts +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +57 -43
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +3 -3
- 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/contrib/externalUriOpener/common/contributedOpeners.js +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +23 -23
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js +8 -7
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +5 -5
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +28 -19
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +13 -13
- package/vscode/src/vs/workbench/services/extensions/common/extHostCustomers.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.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/lazyCreateExtensionHostManager.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { raceCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { CancellationToken } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
5
|
-
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
|
+
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
6
|
import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
7
7
|
import { Disposable, DisposableMap, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
8
8
|
import { ResourceMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
@@ -13,8 +13,16 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
13
13
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
14
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
15
15
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
16
|
-
import {
|
|
16
|
+
import { hasValidDiff } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
17
|
+
import { isIChatViewViewContext, ChatViewPaneTarget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
18
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
19
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
20
|
+
import { awaitStatsForSession } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chat';
|
|
21
|
+
import { ResponseModelState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
22
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
23
|
+
import { ChatSessionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
17
24
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
25
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
18
26
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
19
27
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
28
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
@@ -75,7 +83,8 @@ class ObservableChatSession extends Disposable {
|
|
|
75
83
|
prompt: turn.prompt,
|
|
76
84
|
participant: turn.participant,
|
|
77
85
|
command: turn.command,
|
|
78
|
-
variableData: variables ? { variables } : undefined
|
|
86
|
+
variableData: variables ? { variables } : undefined,
|
|
87
|
+
id: turn.id
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
return {
|
|
@@ -98,7 +107,7 @@ class ObservableChatSession extends Disposable {
|
|
|
98
107
|
return confirmInterrupt();
|
|
99
108
|
}
|
|
100
109
|
return this._dialogService.confirm({
|
|
101
|
-
message: ( localize(
|
|
110
|
+
message: ( localize(2479, 'Are you sure you want to interrupt the active session?'))
|
|
102
111
|
}).then(confirmed => {
|
|
103
112
|
if (confirmed.confirmed) {
|
|
104
113
|
return confirmInterrupt();
|
|
@@ -216,10 +225,12 @@ class ObservableChatSession extends Disposable {
|
|
|
216
225
|
}
|
|
217
226
|
}
|
|
218
227
|
let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
219
|
-
constructor(_extHostContext, _chatSessionsService, _dialogService, _editorService, editorGroupService, _logService) {
|
|
228
|
+
constructor(_extHostContext, _chatSessionsService, _chatService, _chatWidgetService, _dialogService, _editorService, editorGroupService, _logService) {
|
|
220
229
|
super();
|
|
221
230
|
this._extHostContext = _extHostContext;
|
|
222
231
|
this._chatSessionsService = _chatSessionsService;
|
|
232
|
+
this._chatService = _chatService;
|
|
233
|
+
this._chatWidgetService = _chatWidgetService;
|
|
223
234
|
this._dialogService = _dialogService;
|
|
224
235
|
this._editorService = _editorService;
|
|
225
236
|
this.editorGroupService = editorGroupService;
|
|
@@ -245,7 +256,7 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
245
256
|
const changeEmitter = disposables.add(( new Emitter()));
|
|
246
257
|
const provider = {
|
|
247
258
|
chatSessionType,
|
|
248
|
-
onDidChangeChatSessionItems: changeEmitter.event,
|
|
259
|
+
onDidChangeChatSessionItems: Event.debounce(changeEmitter.event, (_, e) => e, 200),
|
|
249
260
|
provideChatSessionItems: (token) => this._provideChatSessionItems(handle, token),
|
|
250
261
|
provideNewChatSessionItem: (options, token) => this._provideNewChatSessionItem(handle, options, token)
|
|
251
262
|
};
|
|
@@ -255,10 +266,15 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
255
266
|
provider,
|
|
256
267
|
onDidChangeItems: changeEmitter,
|
|
257
268
|
});
|
|
269
|
+
disposables.add(this._chatSessionsService.registerChatModelChangeListeners(this._chatService, chatSessionType, () => changeEmitter.fire()));
|
|
258
270
|
}
|
|
259
271
|
$onDidChangeChatSessionItems(handle) {
|
|
260
272
|
this._itemProvidersRegistrations.get(handle)?.onDidChangeItems.fire();
|
|
261
273
|
}
|
|
274
|
+
$onDidChangeChatSessionOptions(handle, sessionResourceComponents, updates) {
|
|
275
|
+
const sessionResource = URI.revive(sessionResourceComponents);
|
|
276
|
+
this._chatSessionsService.notifySessionOptionsChange(sessionResource, updates);
|
|
277
|
+
}
|
|
262
278
|
async $onDidCommitChatSessionItem(handle, originalComponents, modifiedCompoennts) {
|
|
263
279
|
const originalResource = URI.revive(originalComponents);
|
|
264
280
|
const modifiedResource = URI.revive(modifiedCompoennts);
|
|
@@ -269,19 +285,20 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
269
285
|
return;
|
|
270
286
|
}
|
|
271
287
|
const originalEditor = this._editorService.editors.find(editor => editor.resource?.toString() === ( originalResource.toString()));
|
|
288
|
+
const originalModel = this._chatService.getSession(originalResource);
|
|
272
289
|
const contribution = this._chatSessionsService.getAllChatSessionContributions().find(c => c.type === chatSessionType);
|
|
273
290
|
const originalGroup = this.editorGroupService.groups.find(group => ( group.editors.some(editor => isEqual(editor.resource, originalResource))))
|
|
274
291
|
?? this.editorGroupService.activeGroup;
|
|
275
292
|
const options = {
|
|
276
293
|
title: {
|
|
277
294
|
preferred: originalEditor?.getName() || undefined,
|
|
278
|
-
fallback: ( localize(
|
|
295
|
+
fallback: ( localize(2480, "{0}", contribution?.displayName)),
|
|
279
296
|
}
|
|
280
297
|
};
|
|
298
|
+
const newSession = await this._chatSessionsService.getOrCreateChatSession(URI.revive(modifiedResource), CancellationToken.None);
|
|
281
299
|
if (originalEditor) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
? originalEditor.transferOutEditingSession()
|
|
300
|
+
newSession.transferredState = originalEditor instanceof ChatEditorInput
|
|
301
|
+
? { editingSession: originalEditor.transferOutEditingSession(), inputState: originalModel?.inputModel.toJSON() }
|
|
285
302
|
: undefined;
|
|
286
303
|
this._editorService.replaceEditors([{
|
|
287
304
|
editor: originalEditor,
|
|
@@ -290,21 +307,50 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
290
307
|
options,
|
|
291
308
|
},
|
|
292
309
|
}], originalGroup);
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (originalModel) {
|
|
313
|
+
newSession.transferredState = {
|
|
314
|
+
editingSession: originalModel.editingSession,
|
|
315
|
+
inputState: originalModel.inputModel.toJSON()
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
const chatViewWidget = this._chatWidgetService.getWidgetBySessionResource(originalResource);
|
|
319
|
+
if (chatViewWidget && isIChatViewViewContext(chatViewWidget.viewContext)) {
|
|
320
|
+
await this._chatWidgetService.openSession(modifiedResource, ChatViewPaneTarget, { preserveFocus: true });
|
|
293
321
|
}
|
|
294
322
|
else {
|
|
295
|
-
|
|
296
|
-
|
|
323
|
+
const ref = await this._chatService.loadSessionForResource(modifiedResource, ChatAgentLocation.Chat, CancellationToken.None);
|
|
324
|
+
ref?.dispose();
|
|
297
325
|
}
|
|
298
326
|
}
|
|
299
327
|
async _provideChatSessionItems(handle, token) {
|
|
300
328
|
try {
|
|
301
329
|
const sessions = await this._proxy.$provideChatSessionItems(handle, token);
|
|
302
|
-
return ( sessions.map(session =>
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
330
|
+
return Promise.all(( sessions.map(async (session) => {
|
|
331
|
+
const uri = URI.revive(session.resource);
|
|
332
|
+
const model = this._chatService.getSession(uri);
|
|
333
|
+
if (model) {
|
|
334
|
+
session = await this.handleSessionModelOverrides(model, session);
|
|
335
|
+
}
|
|
336
|
+
if (!session.changes || !model) {
|
|
337
|
+
const stats = (await this._chatService.getMetadataForSession(uri))?.stats;
|
|
338
|
+
const diffs = {
|
|
339
|
+
files: stats?.fileCount || 0,
|
|
340
|
+
insertions: stats?.added || 0,
|
|
341
|
+
deletions: stats?.removed || 0
|
|
342
|
+
};
|
|
343
|
+
if (hasValidDiff(diffs)) {
|
|
344
|
+
session.changes = diffs;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
...session,
|
|
349
|
+
changes: revive(session.changes),
|
|
350
|
+
resource: uri,
|
|
351
|
+
iconPath: session.iconPath,
|
|
352
|
+
tooltip: session.tooltip ? this._reviveTooltip(session.tooltip) : undefined,
|
|
353
|
+
};
|
|
308
354
|
})));
|
|
309
355
|
}
|
|
310
356
|
catch (error) {
|
|
@@ -312,6 +358,26 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
312
358
|
}
|
|
313
359
|
return [];
|
|
314
360
|
}
|
|
361
|
+
async handleSessionModelOverrides(model, session) {
|
|
362
|
+
const inProgress = this._chatSessionsService.getInProgress();
|
|
363
|
+
if (inProgress.length) {
|
|
364
|
+
session.description = this._chatSessionsService.getInProgressSessionDescription(model);
|
|
365
|
+
}
|
|
366
|
+
if (!(session.changes instanceof Array)) {
|
|
367
|
+
const modelStats = await awaitStatsForSession(model);
|
|
368
|
+
if (modelStats) {
|
|
369
|
+
session.changes = {
|
|
370
|
+
files: modelStats.fileCount,
|
|
371
|
+
insertions: modelStats.added,
|
|
372
|
+
deletions: modelStats.removed
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
if (model.lastRequest?.response?.state === ResponseModelState.NeedsInput) {
|
|
377
|
+
session.status = ChatSessionStatus.NeedsInput;
|
|
378
|
+
}
|
|
379
|
+
return session;
|
|
380
|
+
}
|
|
315
381
|
async _provideNewChatSessionItem(handle, options, token) {
|
|
316
382
|
try {
|
|
317
383
|
const chatSessionItem = await this._proxy.$provideNewChatSessionItem(handle, options, token);
|
|
@@ -320,7 +386,7 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
320
386
|
}
|
|
321
387
|
return {
|
|
322
388
|
...chatSessionItem,
|
|
323
|
-
|
|
389
|
+
changes: revive(chatSessionItem.changes),
|
|
324
390
|
resource: URI.revive(chatSessionItem.resource),
|
|
325
391
|
iconPath: chatSessionItem.iconPath,
|
|
326
392
|
tooltip: chatSessionItem.tooltip ? this._reviveTooltip(chatSessionItem.tooltip) : undefined,
|
|
@@ -458,10 +524,12 @@ let MainThreadChatSessions = class MainThreadChatSessions extends Disposable {
|
|
|
458
524
|
MainThreadChatSessions = __decorate([
|
|
459
525
|
extHostNamedCustomer(MainContext.MainThreadChatSessions),
|
|
460
526
|
( __param(1, IChatSessionsService)),
|
|
461
|
-
( __param(2,
|
|
462
|
-
( __param(3,
|
|
463
|
-
( __param(4,
|
|
464
|
-
( __param(5,
|
|
527
|
+
( __param(2, IChatService)),
|
|
528
|
+
( __param(3, IChatWidgetService)),
|
|
529
|
+
( __param(4, IDialogService)),
|
|
530
|
+
( __param(5, IEditorService)),
|
|
531
|
+
( __param(6, IEditorGroupsService)),
|
|
532
|
+
( __param(7, ILogService))
|
|
465
533
|
], MainThreadChatSessions);
|
|
466
534
|
|
|
467
535
|
export { MainThreadChatSessions, ObservableChatSession };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
-
import { IChatStatusItemService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatusItemService.service";
|
|
2
|
+
import { IChatStatusItemService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.service";
|
|
3
3
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
4
4
|
import { ChatStatusItemDto, MainThreadChatStatusShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
5
5
|
export declare class MainThreadChatStatus extends Disposable implements MainThreadChatStatusShape {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
|
-
import { IChatStatusItemService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatusItemService.service';
|
|
4
|
+
import { IChatStatusItemService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatStatus/chatStatusItemService.service';
|
|
5
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
6
6
|
import { MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ import { ICommentService } from "@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
11
11
|
import { CommentProviderFeatures, ExtHostCommentsShape, MainThreadCommentsShape, CommentThreadChanges } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
12
12
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
13
13
|
import { MarshalledId } from "@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds";
|
|
14
|
-
import { ICellRange } from "@codingame/monaco-vscode-
|
|
14
|
+
import { ICellRange } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
15
15
|
import { IViewsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service";
|
|
16
16
|
import { MarshalledCommentThread } from "../../common/comments.js";
|
|
17
17
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
@@ -8,20 +8,20 @@ import { CommentThreadCollapsibleState } from '@codingame/monaco-vscode-api/vsco
|
|
|
8
8
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
9
9
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
10
10
|
import { ICommentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/comments/browser/commentService.service';
|
|
11
|
-
import { CommentsPanel } from '@codingame/monaco-vscode-
|
|
11
|
+
import { CommentsPanel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/comments/browser/commentsView';
|
|
12
12
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
13
|
-
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_STORAGE_ID, COMMENTS_VIEW_TITLE } from '@codingame/monaco-vscode-
|
|
13
|
+
import { COMMENTS_VIEW_ID, COMMENTS_VIEW_STORAGE_ID, COMMENTS_VIEW_TITLE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/comments/browser/commentsTreeViewer';
|
|
14
14
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
15
15
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
16
16
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
17
|
-
import { ViewPaneContainer } from '@codingame/monaco-vscode-
|
|
17
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
18
18
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
19
19
|
import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/iconRegistry';
|
|
20
20
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
21
21
|
import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
|
|
22
22
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
23
23
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
24
|
-
import { revealCommentThread } from '@codingame/monaco-vscode-
|
|
24
|
+
import { revealCommentThread } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/comments/browser/commentsController';
|
|
25
25
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
26
26
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
27
27
|
|
|
@@ -424,7 +424,7 @@ class MainThreadCommentController extends Disposable {
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(
|
|
427
|
+
const commentsViewIcon = registerIcon('comments-view-icon', Codicon.commentDiscussion, ( localize(2481, 'View icon of the comments view.')));
|
|
428
428
|
let MainThreadComments = class MainThreadComments extends Disposable {
|
|
429
429
|
constructor(extHostContext, _commentService, _viewsService, _viewDescriptorService, _uriIdentityService, _editorService) {
|
|
430
430
|
super();
|
|
@@ -22,19 +22,19 @@ import { UndoRedoElementType } from '@codingame/monaco-vscode-api/vscode/vs/plat
|
|
|
22
22
|
import { IUndoRedoService } from '@codingame/monaco-vscode-api/vscode/vs/platform/undoRedo/common/undoRedo.service';
|
|
23
23
|
import { reviveWebviewExtension } from './mainThreadWebviews.js';
|
|
24
24
|
import { ExtHostContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
25
|
-
import { CustomEditorInput } from '@codingame/monaco-vscode-
|
|
25
|
+
import { CustomEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
26
26
|
import { ICustomEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
27
27
|
import { CustomTextEditorModel } from '../../contrib/customEditor/common/customTextEditorModel.js';
|
|
28
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
28
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
29
29
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
30
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
30
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
31
31
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
32
32
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
33
33
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
34
34
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
35
35
|
import { IPathService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/path/common/pathService.service';
|
|
36
|
-
import { ResourceWorkingCopy } from '@codingame/monaco-vscode-
|
|
37
|
-
import { NO_TYPE_ID, WorkingCopyCapabilities } from '@codingame/monaco-vscode-
|
|
36
|
+
import { ResourceWorkingCopy } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/resourceWorkingCopy';
|
|
37
|
+
import { NO_TYPE_ID, WorkingCopyCapabilities } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopy';
|
|
38
38
|
import { IWorkingCopyFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.service';
|
|
39
39
|
import { IWorkingCopyService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyService.service';
|
|
40
40
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
@@ -303,7 +303,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
303
303
|
this._register(workingCopyService.registerWorkingCopy(this));
|
|
304
304
|
this._register(extensionService.onWillStop(e => {
|
|
305
305
|
e.veto(true, ( localize(
|
|
306
|
-
|
|
306
|
+
2482,
|
|
307
307
|
"An extension provided editor for '{0}' is still open that would close otherwise.",
|
|
308
308
|
this.name
|
|
309
309
|
)));
|
|
@@ -371,7 +371,7 @@ let MainThreadCustomEditorModel = MainThreadCustomEditorModel_1 = class MainThre
|
|
|
371
371
|
this._undoService.pushElement({
|
|
372
372
|
type: UndoRedoElementType.Resource,
|
|
373
373
|
resource: this._editorResource,
|
|
374
|
-
label: label ?? ( localize(
|
|
374
|
+
label: label ?? ( localize(2483, "Edit")),
|
|
375
375
|
code: 'undoredo.customEditorEdit',
|
|
376
376
|
undo: () => this.undo(),
|
|
377
377
|
redo: () => this.redo(),
|
|
@@ -5,6 +5,7 @@ import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
5
5
|
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
6
6
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
7
|
import { MainThreadTextEditor } from "./mainThreadEditor.js";
|
|
8
|
+
import { IMainThreadEditorLocator } from "./mainThreadEditors.js";
|
|
8
9
|
import { IEditorPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
9
10
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
10
11
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
@@ -17,7 +18,7 @@ import { IPathService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/s
|
|
|
17
18
|
import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
18
19
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
19
20
|
import { IQuickDiffModelService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/browser/quickDiffModel.service";
|
|
20
|
-
export declare class MainThreadDocumentsAndEditors {
|
|
21
|
+
export declare class MainThreadDocumentsAndEditors implements IMainThreadEditorLocator {
|
|
21
22
|
private readonly _modelService;
|
|
22
23
|
private readonly _textFileService;
|
|
23
24
|
private readonly _editorService;
|
|
@@ -13,7 +13,7 @@ import { MainThreadDocuments } from './mainThreadDocuments.js';
|
|
|
13
13
|
import { MainThreadTextEditor } from './mainThreadEditor.js';
|
|
14
14
|
import { MainThreadTextEditors } from './mainThreadEditors.js';
|
|
15
15
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
16
|
-
import { editorGroupToColumn } from '@codingame/monaco-vscode-
|
|
16
|
+
import { editorGroupToColumn } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
17
17
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
18
18
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
19
19
|
import { ITextFileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/textfile/common/textfiles.service';
|
|
@@ -14,7 +14,7 @@ class ExtHostEditSessionIdentityCreateParticipant {
|
|
|
14
14
|
}
|
|
15
15
|
async participate(workspaceFolder, token) {
|
|
16
16
|
const p = ( new Promise((resolve, reject) => {
|
|
17
|
-
setTimeout(() => reject(( new Error(( localize(
|
|
17
|
+
setTimeout(() => reject(( new Error(( localize(2484, "Aborted onWillCreateEditSessionIdentity-event after 10000ms"))))), this.timeout);
|
|
18
18
|
this._proxy.$onWillCreateEditSessionIdentity(workspaceFolder.uri, token, this.timeout).then(resolve, reject);
|
|
19
19
|
}));
|
|
20
20
|
return raceCancellationError(p, token);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
2
2
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
3
3
|
import { MainThreadEditorTabsShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
4
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
4
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
5
5
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
6
6
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
7
7
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
@@ -9,18 +9,18 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
9
9
|
import { ExtHostContext, TabInputKind, TabModelOperationKind, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
10
10
|
import { EditorResourceAccessor, SideBySideEditor, GroupModelChangeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
11
11
|
import { DiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
12
|
-
import { isGroupEditorMoveEvent } from '@codingame/monaco-vscode-
|
|
12
|
+
import { isGroupEditorMoveEvent } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorGroupModel';
|
|
13
13
|
import { SideBySideEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
14
|
-
import { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-
|
|
15
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
16
|
-
import { CustomEditorInput } from '@codingame/monaco-vscode-
|
|
17
|
-
import { InteractiveEditorInput } from '@codingame/monaco-vscode-
|
|
18
|
-
import { MergeEditorInput } from '@codingame/monaco-vscode-
|
|
19
|
-
import { MultiDiffEditorInput } from '@codingame/monaco-vscode-
|
|
20
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
21
|
-
import { TerminalEditorInput } from '@codingame/monaco-vscode-
|
|
22
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
23
|
-
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-
|
|
14
|
+
import { AbstractTextResourceEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
15
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
16
|
+
import { CustomEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
17
|
+
import { InteractiveEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/interactive/browser/interactiveEditorInput';
|
|
18
|
+
import { MergeEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
|
|
19
|
+
import { MultiDiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput';
|
|
20
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
21
|
+
import { TerminalEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminalEditorInput';
|
|
22
|
+
import { WebviewInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput';
|
|
23
|
+
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
24
24
|
import { GroupDirection, preferredSideBySideGroupDirection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
25
25
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
26
26
|
import { SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -6,7 +6,7 @@ import { IDecorationOptions, IDecorationRenderOptions } from "@codingame/monaco-
|
|
|
6
6
|
import { ISingleEditOperation } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editOperation";
|
|
7
7
|
import { MainThreadTextEditor } from "./mainThreadEditor.js";
|
|
8
8
|
import { IApplyEditsOptions, ITextDocumentShowOptions, ITextEditorConfigurationUpdate, IUndoStopOptions, MainThreadTextEditorsShape, TextEditorRevealType } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
9
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
10
10
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
11
11
|
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
12
12
|
import { ExtensionIdentifier } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
@@ -8,7 +8,7 @@ import { ICodeEditorService } from '@codingame/monaco-vscode-api/vscode/vs/edito
|
|
|
8
8
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
9
9
|
import { isTextEditorDiffInformationEqual, EditorResolution, EditorActivation } from '@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor';
|
|
10
10
|
import { ExtHostContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
11
|
-
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-
|
|
11
|
+
import { editorGroupToColumn, columnToEditorGroup } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupColumn';
|
|
12
12
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
14
14
|
import { IEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/platform/environment/common/environment.service';
|
|
@@ -89,13 +89,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
89
89
|
this._notificationService.notify({
|
|
90
90
|
severity: Severity.Error,
|
|
91
91
|
message: ( localize(
|
|
92
|
-
|
|
92
|
+
2485,
|
|
93
93
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension, which is not loaded. Would you like to reload the window to load the extension?",
|
|
94
94
|
extName,
|
|
95
95
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
96
96
|
)),
|
|
97
97
|
actions: {
|
|
98
|
-
primary: [toAction({ id: 'reload', label: ( localize(
|
|
98
|
+
primary: [toAction({ id: 'reload', label: ( localize(2486, "Reload Window")), run: () => this._hostService.reload() })]
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -105,7 +105,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
105
105
|
this._notificationService.notify({
|
|
106
106
|
severity: Severity.Error,
|
|
107
107
|
message: ( localize(
|
|
108
|
-
|
|
108
|
+
2487,
|
|
109
109
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in the current workspace",
|
|
110
110
|
extName,
|
|
111
111
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
@@ -116,13 +116,13 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
116
116
|
this._notificationService.notify({
|
|
117
117
|
severity: Severity.Error,
|
|
118
118
|
message: ( localize(
|
|
119
|
-
|
|
119
|
+
2488,
|
|
120
120
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is not supported in Restricted Mode",
|
|
121
121
|
extName,
|
|
122
122
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
123
123
|
)),
|
|
124
124
|
actions: {
|
|
125
|
-
primary: [toAction({ id: 'manageWorkspaceTrust', label: ( localize(
|
|
125
|
+
primary: [toAction({ id: 'manageWorkspaceTrust', label: ( localize(2489, "Manage Workspace Trust")), run: () => this._commandService.executeCommand('workbench.trust.manage') })]
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
@@ -130,14 +130,14 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
130
130
|
this._notificationService.notify({
|
|
131
131
|
severity: Severity.Error,
|
|
132
132
|
message: ( localize(
|
|
133
|
-
|
|
133
|
+
2490,
|
|
134
134
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled. Would you like to enable the extension and reload the window?",
|
|
135
135
|
extName,
|
|
136
136
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
137
137
|
)),
|
|
138
138
|
actions: {
|
|
139
139
|
primary: [toAction({
|
|
140
|
-
id: 'enable', label: ( localize(
|
|
140
|
+
id: 'enable', label: ( localize(2491, "Enable and Reload")), enabled: true,
|
|
141
141
|
run: () => this._extensionEnablementService.setEnablement([missingInstalledDependency], enablementState === EnablementState.DisabledGlobally ? EnablementState.EnabledGlobally : EnablementState.EnabledWorkspace)
|
|
142
142
|
.then(() => this._hostService.reload(), e => this._notificationService.error(e))
|
|
143
143
|
})]
|
|
@@ -148,7 +148,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
148
148
|
this._notificationService.notify({
|
|
149
149
|
severity: Severity.Error,
|
|
150
150
|
message: ( localize(
|
|
151
|
-
|
|
151
|
+
2492,
|
|
152
152
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension which is disabled.",
|
|
153
153
|
extName,
|
|
154
154
|
missingInstalledDependency.manifest.displayName || missingInstalledDependency.manifest.name
|
|
@@ -169,7 +169,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
169
169
|
this._notificationService.notify({
|
|
170
170
|
severity: Severity.Error,
|
|
171
171
|
message: ( localize(
|
|
172
|
-
|
|
172
|
+
2493,
|
|
173
173
|
"Cannot activate the '{0}' extension because it depends on the '{1}' extension from '{2}', which is not installed. Would you like to install the extension and reload the window?",
|
|
174
174
|
extName,
|
|
175
175
|
dependencyExtension.displayName,
|
|
@@ -178,7 +178,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
178
178
|
actions: {
|
|
179
179
|
primary: [toAction({
|
|
180
180
|
id: 'install',
|
|
181
|
-
label: ( localize(
|
|
181
|
+
label: ( localize(2494, "Install and Reload")),
|
|
182
182
|
run: () => this._extensionsWorkbenchService.install(dependencyExtension)
|
|
183
183
|
.then(() => this._hostService.reload(), e => this._notificationService.error(e))
|
|
184
184
|
})]
|
|
@@ -187,7 +187,7 @@ let MainThreadExtensionService = class MainThreadExtensionService {
|
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
189
189
|
this._notificationService.error(( localize(
|
|
190
|
-
|
|
190
|
+
2495,
|
|
191
191
|
"Cannot activate the '{0}' extension because it depends on an unknown '{1}' extension.",
|
|
192
192
|
extName,
|
|
193
193
|
missingDependency
|