@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import {
|
|
3
|
+
import { Disposable, MutableDisposable, toDisposable, combinedDisposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
5
5
|
import { extHostNamedCustomer } from '../../services/extensions/common/extHostCustomers.js';
|
|
6
6
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
@@ -9,7 +9,7 @@ import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
9
9
|
import { TerminalLocation, TerminalExitReason, ProcessPropertyType } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminal';
|
|
10
10
|
import { TerminalDataBufferer } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/terminalDataBuffering';
|
|
11
11
|
import { ITerminalService, ITerminalGroupService, ITerminalEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
12
|
-
import { TerminalProcessExtHostProxy } from '@codingame/monaco-vscode-
|
|
12
|
+
import { TerminalProcessExtHostProxy } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy';
|
|
13
13
|
import { IEnvironmentVariableService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/environmentVariable.service';
|
|
14
14
|
import { serializeEnvironmentVariableCollection, deserializeEnvironmentDescriptionMap, deserializeEnvironmentVariableCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/environmentVariableShared';
|
|
15
15
|
import { ITerminalProfileResolverService, ITerminalProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/common/terminal.service';
|
|
@@ -17,14 +17,16 @@ import { IRemoteAgentService } from '@codingame/monaco-vscode-api/vscode/vs/work
|
|
|
17
17
|
import { OS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
18
18
|
import { Promises } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
19
19
|
import { ITerminalLinkProviderService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminalContrib/links/browser/links.service';
|
|
20
|
-
import { TerminalQuickFixType } from '@codingame/monaco-vscode-
|
|
20
|
+
import { TerminalQuickFixType } from '@codingame/monaco-vscode-api/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-api/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
|
+
import { hasKey } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
25
26
|
|
|
26
|
-
let MainThreadTerminalService = class MainThreadTerminalService {
|
|
27
|
+
let MainThreadTerminalService = class MainThreadTerminalService extends Disposable {
|
|
27
28
|
constructor(_extHostContext, _terminalService, _terminalLinkProviderService, _terminalQuickFixService, _instantiationService, _environmentVariableService, _logService, _terminalProfileResolverService, remoteAgentService, _terminalGroupService, _terminalEditorService, _terminalProfileService, _terminalCompletionService, _environmentService) {
|
|
29
|
+
super();
|
|
28
30
|
this._terminalService = _terminalService;
|
|
29
31
|
this._terminalLinkProviderService = _terminalLinkProviderService;
|
|
30
32
|
this._terminalQuickFixService = _terminalQuickFixService;
|
|
@@ -37,31 +39,30 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
37
39
|
this._terminalProfileService = _terminalProfileService;
|
|
38
40
|
this._terminalCompletionService = _terminalCompletionService;
|
|
39
41
|
this._environmentService = _environmentService;
|
|
40
|
-
this._store = ( new DisposableStore());
|
|
41
42
|
this._extHostTerminals = ( new Map());
|
|
42
43
|
this._terminalProcessProxies = ( new Map());
|
|
43
44
|
this._profileProviders = ( new Map());
|
|
44
45
|
this._completionProviders = ( new Map());
|
|
45
46
|
this._quickFixProviders = ( new Map());
|
|
46
|
-
this._dataEventTracker = ( new MutableDisposable());
|
|
47
|
-
this._sendCommandEventListener = ( new MutableDisposable());
|
|
48
|
-
this._linkProvider = this.
|
|
47
|
+
this._dataEventTracker = this._register(( new MutableDisposable()));
|
|
48
|
+
this._sendCommandEventListener = this._register(( new MutableDisposable()));
|
|
49
|
+
this._linkProvider = this._register(( new MutableDisposable()));
|
|
49
50
|
this._os = OS;
|
|
50
51
|
this._proxy = ( _extHostContext.getProxy(ExtHostContext.ExtHostTerminalService));
|
|
51
|
-
this.
|
|
52
|
+
this._register(_terminalService.onDidCreateInstance((instance) => {
|
|
52
53
|
this._onTerminalOpened(instance);
|
|
53
54
|
this._onInstanceDimensionsChanged(instance);
|
|
54
55
|
}));
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
56
|
+
this._register(_terminalService.onDidDisposeInstance(instance => this._onTerminalDisposed(instance)));
|
|
57
|
+
this._register(_terminalService.onAnyInstanceProcessIdReady(instance => this._onTerminalProcessIdReady(instance)));
|
|
58
|
+
this._register(_terminalService.onDidChangeInstanceDimensions(instance => this._onInstanceDimensionsChanged(instance)));
|
|
59
|
+
this._register(_terminalService.onAnyInstanceMaximumDimensionsChange(instance => this._onInstanceMaximumDimensionsChanged(instance)));
|
|
60
|
+
this._register(_terminalService.onDidRequestStartExtensionTerminal(e => this._onRequestStartExtensionTerminal(e)));
|
|
61
|
+
this._register(_terminalService.onDidChangeActiveInstance(instance => this._onActiveTerminalChanged(instance ? instance.instanceId : null)));
|
|
62
|
+
this._register(_terminalService.onAnyInstanceTitleChange(instance => instance && this._onTitleChanged(instance.instanceId, instance.title)));
|
|
63
|
+
this._register(_terminalService.onAnyInstanceDataInput(instance => this._proxy.$acceptTerminalInteraction(instance.instanceId)));
|
|
64
|
+
this._register(_terminalService.onAnyInstanceSelectionChange(instance => this._proxy.$acceptTerminalSelection(instance.instanceId, instance.selection)));
|
|
65
|
+
this._register(_terminalService.onAnyInstanceShellTypeChanged(instance => this._onShellTypeChanged(instance.instanceId)));
|
|
65
66
|
for (const instance of this._terminalService.instances) {
|
|
66
67
|
this._onTerminalOpened(instance);
|
|
67
68
|
instance.processReady.then(() => this._onTerminalProcessIdReady(instance));
|
|
@@ -80,20 +81,26 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
80
81
|
}));
|
|
81
82
|
this._proxy.$initEnvironmentVariableCollections(serializedCollections);
|
|
82
83
|
}
|
|
84
|
+
this._store.add(toDisposable(() => {
|
|
85
|
+
for (const e of ( this._terminalProcessProxies.values())) {
|
|
86
|
+
e.proxy.dispose();
|
|
87
|
+
e.store.dispose();
|
|
88
|
+
}
|
|
89
|
+
this._terminalProcessProxies.clear();
|
|
90
|
+
}));
|
|
83
91
|
remoteAgentService.getEnvironment().then(async (env) => {
|
|
84
92
|
this._os = env?.os || OS;
|
|
85
93
|
this._updateDefaultProfile();
|
|
86
94
|
});
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
provider.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
95
|
+
this._register(this._terminalProfileService.onDidChangeAvailableProfiles(() => this._updateDefaultProfile()));
|
|
96
|
+
this._register(toDisposable(() => {
|
|
97
|
+
for (const provider of ( this._profileProviders.values())) {
|
|
98
|
+
provider.dispose();
|
|
99
|
+
}
|
|
100
|
+
for (const provider of ( this._quickFixProviders.values())) {
|
|
101
|
+
provider.dispose();
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
97
104
|
}
|
|
98
105
|
async _updateDefaultProfile() {
|
|
99
106
|
const remoteAuthority = this._environmentService.remoteAuthority;
|
|
@@ -141,12 +148,12 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
141
148
|
});
|
|
142
149
|
this._extHostTerminals.set(extHostTerminalId, terminal);
|
|
143
150
|
const terminalInstance = await terminal;
|
|
144
|
-
this.
|
|
151
|
+
this._register(terminalInstance.onDisposed(() => {
|
|
145
152
|
this._extHostTerminals.delete(extHostTerminalId);
|
|
146
153
|
}));
|
|
147
154
|
}
|
|
148
155
|
async _deserializeParentTerminal(location) {
|
|
149
|
-
if (typeof location === 'object' &&
|
|
156
|
+
if (typeof location === 'object' && hasKey(location, { parentTerminal: true })) {
|
|
150
157
|
const parentTerminal = await this._extHostTerminals.get(( location.parentTerminal.toString()));
|
|
151
158
|
return parentTerminal ? { parentTerminal } : undefined;
|
|
152
159
|
}
|
|
@@ -179,7 +186,7 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
179
186
|
await instance?.sendText(text, shouldExecute);
|
|
180
187
|
}
|
|
181
188
|
$sendProcessExit(terminalId, exitCode) {
|
|
182
|
-
this._terminalProcessProxies.get(terminalId)?.emitExit(exitCode);
|
|
189
|
+
this._terminalProcessProxies.get(terminalId)?.proxy.emitExit(exitCode);
|
|
183
190
|
}
|
|
184
191
|
$startSendingDataEvents() {
|
|
185
192
|
if (!this._dataEventTracker.value) {
|
|
@@ -327,6 +334,12 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
327
334
|
}
|
|
328
335
|
_onTerminalDisposed(terminalInstance) {
|
|
329
336
|
this._proxy.$acceptTerminalClosed(terminalInstance.instanceId, terminalInstance.exitCode, terminalInstance.exitReason ?? TerminalExitReason.Unknown);
|
|
337
|
+
const proxy = this._terminalProcessProxies.get(terminalInstance.instanceId);
|
|
338
|
+
if (proxy) {
|
|
339
|
+
proxy.proxy.dispose();
|
|
340
|
+
proxy.store.dispose();
|
|
341
|
+
this._terminalProcessProxies.delete(terminalInstance.instanceId);
|
|
342
|
+
}
|
|
330
343
|
}
|
|
331
344
|
_onTerminalOpened(terminalInstance) {
|
|
332
345
|
const extHostTerminalId = terminalInstance.shellLaunchConfig.extHostTerminalId;
|
|
@@ -355,29 +368,30 @@ let MainThreadTerminalService = class MainThreadTerminalService {
|
|
|
355
368
|
}
|
|
356
369
|
_onRequestStartExtensionTerminal(request) {
|
|
357
370
|
const proxy = request.proxy;
|
|
358
|
-
|
|
371
|
+
const store = ( new DisposableStore());
|
|
372
|
+
this._terminalProcessProxies.set(proxy.instanceId, { proxy, store });
|
|
359
373
|
const initialDimensions = request.cols && request.rows ? {
|
|
360
374
|
columns: request.cols,
|
|
361
375
|
rows: request.rows
|
|
362
376
|
} : undefined;
|
|
363
377
|
this._proxy.$startExtensionTerminal(proxy.instanceId, initialDimensions).then(request.callback);
|
|
364
|
-
proxy.onInput(data => this._proxy.$acceptProcessInput(proxy.instanceId, data));
|
|
365
|
-
proxy.onShutdown(immediate => this._proxy.$acceptProcessShutdown(proxy.instanceId, immediate));
|
|
366
|
-
proxy.onRequestCwd(() => this._proxy.$acceptProcessRequestCwd(proxy.instanceId));
|
|
367
|
-
proxy.onRequestInitialCwd(() => this._proxy.$acceptProcessRequestInitialCwd(proxy.instanceId));
|
|
378
|
+
store.add(proxy.onInput(data => this._proxy.$acceptProcessInput(proxy.instanceId, data)));
|
|
379
|
+
store.add(proxy.onShutdown(immediate => this._proxy.$acceptProcessShutdown(proxy.instanceId, immediate)));
|
|
380
|
+
store.add(proxy.onRequestCwd(() => this._proxy.$acceptProcessRequestCwd(proxy.instanceId)));
|
|
381
|
+
store.add(proxy.onRequestInitialCwd(() => this._proxy.$acceptProcessRequestInitialCwd(proxy.instanceId)));
|
|
368
382
|
}
|
|
369
383
|
$sendProcessData(terminalId, data) {
|
|
370
|
-
this._terminalProcessProxies.get(terminalId)?.emitData(data);
|
|
384
|
+
this._terminalProcessProxies.get(terminalId)?.proxy.emitData(data);
|
|
371
385
|
}
|
|
372
386
|
$sendProcessReady(terminalId, pid, cwd, windowsPty) {
|
|
373
|
-
this._terminalProcessProxies.get(terminalId)?.emitReady(pid, cwd, windowsPty);
|
|
387
|
+
this._terminalProcessProxies.get(terminalId)?.proxy.emitReady(pid, cwd, windowsPty);
|
|
374
388
|
}
|
|
375
389
|
$sendProcessProperty(terminalId, property) {
|
|
376
390
|
if (property.type === ProcessPropertyType.Title) {
|
|
377
391
|
const instance = this._terminalService.getInstanceFromId(terminalId);
|
|
378
392
|
instance?.rename(property.value);
|
|
379
393
|
}
|
|
380
|
-
this._terminalProcessProxies.get(terminalId)?.emitProcessProperty(property);
|
|
394
|
+
this._terminalProcessProxies.get(terminalId)?.proxy.emitProcessProperty(property);
|
|
381
395
|
}
|
|
382
396
|
$setEnvironmentVariableCollection(extensionIdentifier, persistent, collection, descriptionMap) {
|
|
383
397
|
if (collection) {
|
|
@@ -450,11 +464,11 @@ function getOutputMatchForLines(lines, outputMatcher) {
|
|
|
450
464
|
}
|
|
451
465
|
function parseQuickFix(id, source, fix) {
|
|
452
466
|
let type = TerminalQuickFixType.TerminalCommand;
|
|
453
|
-
if (
|
|
467
|
+
if (hasKey(fix, { uri: true })) {
|
|
454
468
|
fix.uri = URI.revive(fix.uri);
|
|
455
469
|
type = TerminalQuickFixType.Opener;
|
|
456
470
|
}
|
|
457
|
-
else if (
|
|
471
|
+
else if (hasKey(fix, { id: true })) {
|
|
458
472
|
type = TerminalQuickFixType.VscodeCommand;
|
|
459
473
|
}
|
|
460
474
|
return { id, type, source, ...fix };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
4
4
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { TerminalCapability } from '@codingame/monaco-vscode-
|
|
5
|
+
import { TerminalCapability } from '@codingame/monaco-vscode-api/vscode/vs/platform/terminal/common/capabilities/capabilities';
|
|
6
6
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
7
7
|
import { ITerminalService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
8
8
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
@@ -7,10 +7,10 @@ import { WellDefinedPrefixTree } from '@codingame/monaco-vscode-api/vscode/vs/ba
|
|
|
7
7
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
8
8
|
import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/range';
|
|
9
9
|
import { IUriIdentityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/uriIdentity/common/uriIdentity.service';
|
|
10
|
-
import { TestCoverage } from '@codingame/monaco-vscode-
|
|
10
|
+
import { TestCoverage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testCoverage';
|
|
11
11
|
import { TestId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testId';
|
|
12
12
|
import { ITestProfileService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testProfileService.service';
|
|
13
|
-
import { LiveTestResult } from '@codingame/monaco-vscode-
|
|
13
|
+
import { LiveTestResult } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResult';
|
|
14
14
|
import { ITestResultService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testResultService.service';
|
|
15
15
|
import { ITestService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testService.service';
|
|
16
16
|
import { TestRunProfileBitset, ITestItem, IFileCoverage, CoverageDetails, ITestMessage, TestsDiffOp } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/testing/common/testTypes';
|
|
@@ -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
|
+
2535,
|
|
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(2536, "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);
|
|
@@ -5,7 +5,7 @@ import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/pla
|
|
|
5
5
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
6
6
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
7
7
|
import { MainThreadUriOpenersShape } from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
|
-
import { IExternalOpenerProvider, IExternalUriOpener } from "@codingame/monaco-vscode-
|
|
8
|
+
import { IExternalOpenerProvider, IExternalUriOpener } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService";
|
|
9
9
|
import { IExternalUriOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service";
|
|
10
10
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
11
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
@@ -10,7 +10,7 @@ import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/pla
|
|
|
10
10
|
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
11
11
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
12
12
|
import { ExtHostContext, MainContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol';
|
|
13
|
-
import { defaultExternalUriOpenerId } from '@codingame/monaco-vscode-
|
|
13
|
+
import { defaultExternalUriOpenerId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
|
|
14
14
|
import { ContributedExternalUriOpenersStore } from '../../contrib/externalUriOpener/common/contributedOpeners.js';
|
|
15
15
|
import { IExternalUriOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service';
|
|
16
16
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
@@ -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(2537, "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(2538, '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-api/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";
|
|
@@ -8,10 +8,10 @@ import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common
|
|
|
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
10
|
import { DiffEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
11
|
-
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-
|
|
12
|
-
import { WebviewInput } from '@codingame/monaco-vscode-
|
|
11
|
+
import { ExtensionKeyedWebviewOriginStore } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
|
+
import { WebviewInput } from '@codingame/monaco-vscode-api/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-api/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';
|
|
@@ -2,7 +2,7 @@ import { VSBuffer } from "@codingame/monaco-vscode-api/vscode/vs/base/common/buf
|
|
|
2
2
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
3
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
4
4
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
5
|
-
import { IWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-
|
|
5
|
+
import { IWebview, WebviewContentOptions, WebviewExtensionDescription } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview";
|
|
6
6
|
import { IExtHostContext } from "../../services/extensions/common/extHostCustomers.js";
|
|
7
7
|
import * as extHostProtocol from "@codingame/monaco-vscode-api/vscode/vs/workbench/api/common/extHost.protocol";
|
|
8
8
|
export declare class MainThreadWebviews extends Disposable implements extHostProtocol.MainThreadWebviewsShape {
|
|
@@ -104,7 +104,7 @@ let MainThreadWebviews = class MainThreadWebviews extends Disposable {
|
|
|
104
104
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
|
105
105
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none';">
|
|
106
106
|
</head>
|
|
107
|
-
<body>${( localize(
|
|
107
|
+
<body>${( localize(2539, "An error occurred while loading view: {0}", escape(viewType)))}</body>
|
|
108
108
|
</html>`;
|
|
109
109
|
}
|
|
110
110
|
};
|
|
@@ -79,11 +79,11 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
79
79
|
const wantsToDelete = removeCount > 0;
|
|
80
80
|
if (wantsToAdd && !wantsToDelete) {
|
|
81
81
|
if (addCount === 1) {
|
|
82
|
-
message = ( localize(
|
|
82
|
+
message = ( localize(2540, "Extension '{0}' added 1 folder to the workspace", extensionName));
|
|
83
83
|
}
|
|
84
84
|
else {
|
|
85
85
|
message = ( localize(
|
|
86
|
-
|
|
86
|
+
2541,
|
|
87
87
|
"Extension '{0}' added {1} folders to the workspace",
|
|
88
88
|
extensionName,
|
|
89
89
|
addCount
|
|
@@ -92,11 +92,11 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
92
92
|
}
|
|
93
93
|
else if (wantsToDelete && !wantsToAdd) {
|
|
94
94
|
if (removeCount === 1) {
|
|
95
|
-
message = ( localize(
|
|
95
|
+
message = ( localize(2542, "Extension '{0}' removed 1 folder from the workspace", extensionName));
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
message = ( localize(
|
|
99
|
-
|
|
99
|
+
2543,
|
|
100
100
|
"Extension '{0}' removed {1} folders from the workspace",
|
|
101
101
|
extensionName,
|
|
102
102
|
removeCount
|
|
@@ -104,7 +104,7 @@ let MainThreadWorkspace = class MainThreadWorkspace {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
|
-
message = ( localize(
|
|
107
|
+
message = ( localize(2544, "Extension '{0}' changed folders of the workspace", extensionName));
|
|
108
108
|
}
|
|
109
109
|
return message;
|
|
110
110
|
}
|
|
@@ -49,7 +49,7 @@ let CustomTextEditorModel = CustomTextEditorModel_1 = class CustomTextEditorMode
|
|
|
49
49
|
}));
|
|
50
50
|
this._register(extensionService.onWillStop(e => {
|
|
51
51
|
e.veto(true, ( localize(
|
|
52
|
-
|
|
52
|
+
6409,
|
|
53
53
|
"An extension provided text editor for '{0}' is still open that would close otherwise.",
|
|
54
54
|
this.name
|
|
55
55
|
)));
|
|
@@ -3,8 +3,8 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
5
5
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
6
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
7
|
-
import { updateContributedOpeners } from '@codingame/monaco-vscode-
|
|
6
|
+
import { Memento } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/memento';
|
|
7
|
+
import { updateContributedOpeners } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/externalUriOpener/common/configuration';
|
|
8
8
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
9
9
|
|
|
10
10
|
var ContributedExternalUriOpenersStore_1;
|
|
@@ -140,11 +140,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
140
140
|
}
|
|
141
141
|
_showBisectPrompt() {
|
|
142
142
|
const goodPrompt = {
|
|
143
|
-
label: ( localize(
|
|
143
|
+
label: ( localize(13837, "I can't reproduce")),
|
|
144
144
|
run: () => this._commandService.executeCommand('extension.bisect.next', false)
|
|
145
145
|
};
|
|
146
146
|
const badPrompt = {
|
|
147
|
-
label: ( localize(
|
|
147
|
+
label: ( localize(13838, "I can reproduce")),
|
|
148
148
|
run: () => this._commandService.executeCommand('extension.bisect.next', true)
|
|
149
149
|
};
|
|
150
150
|
const stop = {
|
|
@@ -153,11 +153,11 @@ let ExtensionBisectUi = class ExtensionBisectUi {
|
|
|
153
153
|
};
|
|
154
154
|
const message = this._extensionBisectService.disabledCount === 1
|
|
155
155
|
? ( localize(
|
|
156
|
-
|
|
156
|
+
13839,
|
|
157
157
|
"Extension Bisect is active and has disabled 1 extension. Check if you can still reproduce the problem and proceed by selecting from these options."
|
|
158
158
|
))
|
|
159
159
|
: ( localize(
|
|
160
|
-
|
|
160
|
+
13840,
|
|
161
161
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
162
162
|
this._extensionBisectService.disabledCount
|
|
163
163
|
));
|
|
@@ -175,7 +175,7 @@ registerAction2(class extends Action2 {
|
|
|
175
175
|
constructor() {
|
|
176
176
|
super({
|
|
177
177
|
id: 'extension.bisect.start',
|
|
178
|
-
title: ( localize2(
|
|
178
|
+
title: ( localize2(13841, 'Start Extension Bisect')),
|
|
179
179
|
category: Categories.Help,
|
|
180
180
|
f1: true,
|
|
181
181
|
precondition: ( ExtensionBisectUi.ctxIsBisectActive.negate()),
|
|
@@ -195,13 +195,13 @@ registerAction2(class extends Action2 {
|
|
|
195
195
|
const extensionsBisect = accessor.get(IExtensionBisectService);
|
|
196
196
|
const extensions = (await extensionManagement.getInstalled(ExtensionType.User)).filter(ext => extensionEnablementService.isEnabled(ext));
|
|
197
197
|
const res = await dialogService.confirm({
|
|
198
|
-
message: ( localize(
|
|
198
|
+
message: ( localize(13842, "Extension Bisect")),
|
|
199
199
|
detail: ( localize(
|
|
200
|
-
|
|
200
|
+
13843,
|
|
201
201
|
"Extension Bisect will use binary search to find an extension that causes a problem. During the process the window reloads repeatedly (~{0} times). Each time you must confirm if you are still seeing problems.",
|
|
202
202
|
2 + Math.log2(extensions.length) | 0
|
|
203
203
|
)),
|
|
204
|
-
primaryButton: ( localize(
|
|
204
|
+
primaryButton: ( localize(13844, "&&Start Extension Bisect"))
|
|
205
205
|
});
|
|
206
206
|
if (res.confirmed) {
|
|
207
207
|
await extensionsBisect.start(extensions);
|
|
@@ -213,7 +213,7 @@ registerAction2(class extends Action2 {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: 'extension.bisect.next',
|
|
216
|
-
title: ( localize2(
|
|
216
|
+
title: ( localize2(13845, 'Continue Extension Bisect')),
|
|
217
217
|
category: Categories.Help,
|
|
218
218
|
f1: true,
|
|
219
219
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -247,8 +247,8 @@ registerAction2(class extends Action2 {
|
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
if (done.bad) {
|
|
250
|
-
await dialogService.info(( localize(
|
|
251
|
-
|
|
250
|
+
await dialogService.info(( localize(13846, "Extension Bisect")), ( localize(
|
|
251
|
+
13847,
|
|
252
252
|
"Extension Bisect is done but no extension has been identified. This might be a problem with {0}.",
|
|
253
253
|
productService.nameShort
|
|
254
254
|
)));
|
|
@@ -256,15 +256,15 @@ registerAction2(class extends Action2 {
|
|
|
256
256
|
else {
|
|
257
257
|
const res = await dialogService.confirm({
|
|
258
258
|
type: Severity.Info,
|
|
259
|
-
message: ( localize(
|
|
260
|
-
primaryButton: ( localize(
|
|
261
|
-
cancelButton: ( localize(
|
|
259
|
+
message: ( localize(13846, "Extension Bisect")),
|
|
260
|
+
primaryButton: ( localize(13848, "&&Report Issue & Continue")),
|
|
261
|
+
cancelButton: ( localize(13849, "Continue")),
|
|
262
262
|
detail: ( localize(
|
|
263
|
-
|
|
263
|
+
13850,
|
|
264
264
|
"Extension Bisect is done and has identified {0} as the extension causing the problem.",
|
|
265
265
|
done.id
|
|
266
266
|
)),
|
|
267
|
-
checkbox: { label: ( localize(
|
|
267
|
+
checkbox: { label: ( localize(13851, "Keep this extension disabled")), checked: true }
|
|
268
268
|
});
|
|
269
269
|
if (res.checkboxChecked) {
|
|
270
270
|
await extensionEnablementService.disableExtension({ id: done.id }, undefined);
|
|
@@ -279,28 +279,28 @@ registerAction2(class extends Action2 {
|
|
|
279
279
|
async _checkForBad(dialogService, bisectService) {
|
|
280
280
|
const { result } = await dialogService.prompt({
|
|
281
281
|
type: Severity.Info,
|
|
282
|
-
message: ( localize(
|
|
282
|
+
message: ( localize(13852, "Extension Bisect")),
|
|
283
283
|
detail: ( localize(
|
|
284
|
-
|
|
284
|
+
13853,
|
|
285
285
|
"Extension Bisect is active and has disabled {0} extensions. Check if you can still reproduce the problem and proceed by selecting from these options.",
|
|
286
286
|
bisectService.disabledCount
|
|
287
287
|
)),
|
|
288
288
|
buttons: [
|
|
289
289
|
{
|
|
290
|
-
label: ( localize(
|
|
290
|
+
label: ( localize(13854, "I ca&&n't reproduce")),
|
|
291
291
|
run: () => false
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
|
-
label: ( localize(
|
|
294
|
+
label: ( localize(13855, "I can &&reproduce")),
|
|
295
295
|
run: () => true
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
label: ( localize(
|
|
298
|
+
label: ( localize(13856, "&&Stop Bisect")),
|
|
299
299
|
run: () => undefined
|
|
300
300
|
}
|
|
301
301
|
],
|
|
302
302
|
cancelButton: {
|
|
303
|
-
label: ( localize(
|
|
303
|
+
label: ( localize(13857, "&&Cancel Bisect")),
|
|
304
304
|
run: () => null
|
|
305
305
|
}
|
|
306
306
|
});
|
|
@@ -311,7 +311,7 @@ registerAction2(class extends Action2 {
|
|
|
311
311
|
constructor() {
|
|
312
312
|
super({
|
|
313
313
|
id: 'extension.bisect.stop',
|
|
314
|
-
title: ( localize2(
|
|
314
|
+
title: ( localize2(13858, 'Stop Extension Bisect')),
|
|
315
315
|
category: Categories.Help,
|
|
316
316
|
f1: true,
|
|
317
317
|
precondition: ExtensionBisectUi.ctxIsBisectActive
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtensionType, IExtension, IExtensionManifest } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions";
|
|
2
2
|
import { IBuiltinExtensionsScannerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions.service";
|
|
3
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
4
4
|
import { IScannedExtension, ScanOptions } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement";
|
|
5
5
|
import { IWebExtensionsScannerService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
6
6
|
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
package/vscode/src/vs/workbench/services/extensionManagement/browser/webExtensionsScannerService.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { ExtensionType, TargetPlatform, parseEnabledApiProposalNames } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
4
4
|
import { IBuiltinExtensionsScannerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions.service';
|
|
5
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
5
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
6
6
|
import { IExtensionGalleryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { isWeb, Language } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
@@ -50,12 +50,13 @@ function isGalleryExtensionInfo(obj) {
|
|
|
50
50
|
&& (galleryExtensionInfo.preRelease === undefined || typeof galleryExtensionInfo.preRelease === 'boolean')
|
|
51
51
|
&& (galleryExtensionInfo.migrateStorageFrom === undefined || typeof galleryExtensionInfo.migrateStorageFrom === 'string');
|
|
52
52
|
}
|
|
53
|
-
function isUriComponents(
|
|
54
|
-
if (!
|
|
53
|
+
function isUriComponents(obj) {
|
|
54
|
+
if (!obj) {
|
|
55
55
|
return false;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
const thing = obj;
|
|
58
|
+
return typeof thing?.path === 'string' &&
|
|
59
|
+
typeof thing?.scheme === 'string';
|
|
59
60
|
}
|
|
60
61
|
let WebExtensionsScannerService = class WebExtensionsScannerService extends Disposable {
|
|
61
62
|
constructor(environmentService, builtinExtensionsScannerService, fileService, logService, galleryService, extensionManifestPropertiesService, extensionResourceLoaderService, extensionStorageService, storageService, productService, userDataProfilesService, uriIdentityService, lifecycleService) {
|
|
@@ -605,7 +606,7 @@ let WebExtensionsScannerService = class WebExtensionsScannerService extends Disp
|
|
|
605
606
|
}
|
|
606
607
|
if (!this.extensionManifestPropertiesService.canExecuteOnWeb(manifest)) {
|
|
607
608
|
throw ( new Error(( localize(
|
|
608
|
-
|
|
609
|
+
13873,
|
|
609
610
|
"Cannot add '{0}' because this extension is not a web extension.",
|
|
610
611
|
manifest.displayName || manifest.name
|
|
611
612
|
))));
|
|
@@ -889,7 +890,7 @@ if (isWeb) {
|
|
|
889
890
|
constructor() {
|
|
890
891
|
super({
|
|
891
892
|
id: 'workbench.extensions.action.openInstalledWebExtensionsResource',
|
|
892
|
-
title: ( localize2(
|
|
893
|
+
title: ( localize2(13874, 'Open Installed Web Extensions Resource')),
|
|
893
894
|
category: Categories.Developer,
|
|
894
895
|
f1: true,
|
|
895
896
|
precondition: IsWebContext
|