@codingame/monaco-vscode-extensions-service-override 4.5.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.js +0 -2
- package/package.json +3 -3
- package/vscode/src/vs/base/common/console.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementCLI.js +69 -136
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +32 -37
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +20 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCLICommands.js +12 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +34 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +44 -38
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +60 -66
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +10 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +45 -21
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +41 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +53 -100
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +30 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageModels.js +32 -41
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +47 -56
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +3 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +7 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +11 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +8 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +185 -165
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalShellIntegration.js +38 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +1 -0
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +28 -30
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +23 -23
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +19 -18
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +36 -33
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +2 -2
- package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +56 -121
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +5 -5
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +133 -144
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +34 -33
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +9 -8
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +2 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +0 -70
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +0 -50
|
@@ -9,6 +9,7 @@ import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
|
9
9
|
import { isCI } from 'vscode/vscode/vs/base/common/platform';
|
|
10
10
|
import { isEqualOrParent } from 'vscode/vscode/vs/base/common/resources';
|
|
11
11
|
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
12
|
+
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
12
13
|
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
13
14
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
15
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
@@ -46,6 +47,7 @@ import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/
|
|
|
46
47
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
47
48
|
|
|
48
49
|
var AbstractExtensionService_1;
|
|
50
|
+
const _moduleId = "vs/workbench/services/extensions/common/abstractExtensionService";
|
|
49
51
|
const hasOwnProperty = Object.hasOwnProperty;
|
|
50
52
|
const NO_OP_VOID_PROMISE = Promise.resolve(undefined);
|
|
51
53
|
let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtensionService extends Disposable {
|
|
@@ -71,24 +73,24 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
71
73
|
this._lifecycleService = _lifecycleService;
|
|
72
74
|
this._remoteAuthorityResolverService = _remoteAuthorityResolverService;
|
|
73
75
|
this._dialogService = _dialogService;
|
|
74
|
-
this._onDidRegisterExtensions = this._register(( new Emitter()));
|
|
76
|
+
this._onDidRegisterExtensions = this._register(( (new Emitter())));
|
|
75
77
|
this.onDidRegisterExtensions = this._onDidRegisterExtensions.event;
|
|
76
|
-
this._onDidChangeExtensionsStatus = this._register(( new Emitter()));
|
|
78
|
+
this._onDidChangeExtensionsStatus = this._register(( (new Emitter())));
|
|
77
79
|
this.onDidChangeExtensionsStatus = this._onDidChangeExtensionsStatus.event;
|
|
78
|
-
this._onDidChangeExtensions = this._register(( new Emitter({ leakWarningThreshold: 400 })));
|
|
80
|
+
this._onDidChangeExtensions = this._register(( (new Emitter({ leakWarningThreshold: 400 }))));
|
|
79
81
|
this.onDidChangeExtensions = this._onDidChangeExtensions.event;
|
|
80
|
-
this._onWillActivateByEvent = this._register(( new Emitter()));
|
|
82
|
+
this._onWillActivateByEvent = this._register(( (new Emitter())));
|
|
81
83
|
this.onWillActivateByEvent = this._onWillActivateByEvent.event;
|
|
82
|
-
this._onDidChangeResponsiveChange = this._register(( new Emitter()));
|
|
84
|
+
this._onDidChangeResponsiveChange = this._register(( (new Emitter())));
|
|
83
85
|
this.onDidChangeResponsiveChange = this._onDidChangeResponsiveChange.event;
|
|
84
|
-
this._onWillStop = this._register(( new Emitter()));
|
|
86
|
+
this._onWillStop = this._register(( (new Emitter())));
|
|
85
87
|
this.onWillStop = this._onWillStop.event;
|
|
86
|
-
this._activationEventReader = ( new ImplicitActivationAwareReader());
|
|
87
|
-
this._registry = ( new LockableExtensionDescriptionRegistry(this._activationEventReader));
|
|
88
|
-
this._installedExtensionsReady = ( new Barrier());
|
|
89
|
-
this._extensionStatus = ( new ExtensionIdentifierMap());
|
|
90
|
-
this._allRequestedActivateEvents = ( new Set());
|
|
91
|
-
this._remoteCrashTracker = ( new ExtensionHostCrashTracker());
|
|
88
|
+
this._activationEventReader = ( (new ImplicitActivationAwareReader()));
|
|
89
|
+
this._registry = ( (new LockableExtensionDescriptionRegistry(this._activationEventReader)));
|
|
90
|
+
this._installedExtensionsReady = ( (new Barrier()));
|
|
91
|
+
this._extensionStatus = ( (new ExtensionIdentifierMap()));
|
|
92
|
+
this._allRequestedActivateEvents = ( (new Set()));
|
|
93
|
+
this._remoteCrashTracker = ( (new ExtensionHostCrashTracker()));
|
|
92
94
|
this._deltaExtensionsQueue = [];
|
|
93
95
|
this._inHandleDeltaExtensions = false;
|
|
94
96
|
this._extensionHostManagers = [];
|
|
@@ -98,14 +100,14 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
98
100
|
e.join(this.activateByEvent(`onFileSystem:${e.scheme}`));
|
|
99
101
|
}
|
|
100
102
|
}));
|
|
101
|
-
this._runningLocations = ( new ExtensionRunningLocationTracker(
|
|
103
|
+
this._runningLocations = ( (new ExtensionRunningLocationTracker(
|
|
102
104
|
this._registry,
|
|
103
105
|
this._extensionHostKindPicker,
|
|
104
106
|
this._environmentService,
|
|
105
107
|
this._configurationService,
|
|
106
108
|
this._logService,
|
|
107
109
|
this._extensionManifestPropertiesService
|
|
108
|
-
));
|
|
110
|
+
)));
|
|
109
111
|
this._register(this._extensionEnablementService.onEnablementChanged((extensions) => {
|
|
110
112
|
const toAdd = [];
|
|
111
113
|
const toRemove = [];
|
|
@@ -118,16 +120,16 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
if (isCI) {
|
|
121
|
-
this._logService.info(`AbstractExtensionService.onEnablementChanged fired for ${( extensions.map(e => e.identifier.id)).join(', ')}`);
|
|
123
|
+
this._logService.info(`AbstractExtensionService.onEnablementChanged fired for ${( (extensions.map(e => e.identifier.id))).join(', ')}`);
|
|
122
124
|
}
|
|
123
|
-
this._handleDeltaExtensions(( new DeltaExtensionsQueueItem(toAdd, toRemove)));
|
|
125
|
+
this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem(toAdd, toRemove))));
|
|
124
126
|
}));
|
|
125
127
|
this._register(this._extensionManagementService.onDidChangeProfile(({ added, removed }) => {
|
|
126
128
|
if (added.length || removed.length) {
|
|
127
129
|
if (isCI) {
|
|
128
130
|
this._logService.info(`AbstractExtensionService.onDidChangeProfile fired`);
|
|
129
131
|
}
|
|
130
|
-
this._handleDeltaExtensions(( new DeltaExtensionsQueueItem(added, removed)));
|
|
132
|
+
this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem(added, removed))));
|
|
131
133
|
}
|
|
132
134
|
}));
|
|
133
135
|
this._register(this._extensionManagementService.onDidEnableExtensions(extensions => {
|
|
@@ -135,7 +137,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
135
137
|
if (isCI) {
|
|
136
138
|
this._logService.info(`AbstractExtensionService.onDidEnableExtensions fired`);
|
|
137
139
|
}
|
|
138
|
-
this._handleDeltaExtensions(( new DeltaExtensionsQueueItem(extensions, [])));
|
|
140
|
+
this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem(extensions, []))));
|
|
139
141
|
}
|
|
140
142
|
}));
|
|
141
143
|
this._register(this._extensionManagementService.onDidInstallExtensions((result) => {
|
|
@@ -147,9 +149,9 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
147
149
|
}
|
|
148
150
|
if (extensions.length) {
|
|
149
151
|
if (isCI) {
|
|
150
|
-
this._logService.info(`AbstractExtensionService.onDidInstallExtensions fired for ${( extensions.map(e => e.identifier.id)).join(', ')}`);
|
|
152
|
+
this._logService.info(`AbstractExtensionService.onDidInstallExtensions fired for ${( (extensions.map(e => e.identifier.id))).join(', ')}`);
|
|
151
153
|
}
|
|
152
|
-
this._handleDeltaExtensions(( new DeltaExtensionsQueueItem(extensions, [])));
|
|
154
|
+
this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem(extensions, []))));
|
|
153
155
|
}
|
|
154
156
|
}));
|
|
155
157
|
this._register(this._extensionManagementService.onDidUninstallExtension((event) => {
|
|
@@ -157,7 +159,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
157
159
|
if (isCI) {
|
|
158
160
|
this._logService.info(`AbstractExtensionService.onDidUninstallExtension fired for ${event.identifier.id}`);
|
|
159
161
|
}
|
|
160
|
-
this._handleDeltaExtensions(( new DeltaExtensionsQueueItem([], [event.identifier.id])));
|
|
162
|
+
this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem([], [event.identifier.id]))));
|
|
161
163
|
}
|
|
162
164
|
}));
|
|
163
165
|
this._register(this._lifecycleService.onDidShutdown(() => {
|
|
@@ -199,7 +201,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
199
201
|
}
|
|
200
202
|
async _deltaExtensions(lock, _toAdd, _toRemove) {
|
|
201
203
|
if (isCI) {
|
|
202
|
-
this._logService.info(`AbstractExtensionService._deltaExtensions: toAdd: [${( _toAdd.map(e => e.identifier.id)).join(',')}] toRemove: [${( _toRemove.map(e => typeof e === 'string' ? e : e.identifier.id)).join(',')}]`);
|
|
204
|
+
this._logService.info(`AbstractExtensionService._deltaExtensions: toAdd: [${( (_toAdd.map(e => e.identifier.id))).join(',')}] toRemove: [${( (_toRemove.map(e => typeof e === 'string' ? e : e.identifier.id))).join(',')}]`);
|
|
203
205
|
}
|
|
204
206
|
let toRemove = [];
|
|
205
207
|
for (let i = 0, len = _toRemove.length; i < len; i++) {
|
|
@@ -233,32 +235,32 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
233
235
|
if (toAdd.length === 0 && toRemove.length === 0) {
|
|
234
236
|
return;
|
|
235
237
|
}
|
|
236
|
-
const result = this._registry.deltaExtensions(lock, toAdd, ( toRemove.map(e => e.identifier)));
|
|
238
|
+
const result = this._registry.deltaExtensions(lock, toAdd, ( (toRemove.map(e => e.identifier))));
|
|
237
239
|
this._onDidChangeExtensions.fire({ added: toAdd, removed: toRemove });
|
|
238
240
|
toRemove = toRemove.concat(result.removedDueToLooping);
|
|
239
241
|
if (result.removedDueToLooping.length > 0) {
|
|
240
242
|
this._notificationService.notify({
|
|
241
243
|
severity: Severity$1.Error,
|
|
242
244
|
message: ( localizeWithPath(
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
_moduleId,
|
|
246
|
+
0,
|
|
245
247
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
246
|
-
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
248
|
+
( (result.removedDueToLooping.map(e => `'${e.identifier.value}'`))).join(', ')
|
|
247
249
|
))
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
252
|
this._extensionsProposedApi.updateEnabledApiProposals(toAdd);
|
|
251
253
|
this._doHandleExtensionPoints([].concat(toAdd).concat(toRemove));
|
|
252
|
-
await this._updateExtensionsOnExtHosts(result.versionId, toAdd, ( toRemove.map(e => e.identifier)));
|
|
254
|
+
await this._updateExtensionsOnExtHosts(result.versionId, toAdd, ( (toRemove.map(e => e.identifier))));
|
|
253
255
|
for (let i = 0; i < toAdd.length; i++) {
|
|
254
256
|
this._activateAddedExtensionIfNeeded(toAdd[i]);
|
|
255
257
|
}
|
|
256
258
|
}
|
|
257
259
|
async _updateExtensionsOnExtHosts(versionId, toAdd, toRemove) {
|
|
258
260
|
const removedRunningLocation = this._runningLocations.deltaExtensions(toAdd, toRemove);
|
|
259
|
-
const promises = ( this._extensionHostManagers.map(
|
|
261
|
+
const promises = ( (this._extensionHostManagers.map(
|
|
260
262
|
extHostManager => this._updateExtensionsOnExtHost(extHostManager, versionId, toAdd, toRemove, removedRunningLocation)
|
|
261
|
-
));
|
|
263
|
+
)));
|
|
262
264
|
await Promise.all(promises);
|
|
263
265
|
}
|
|
264
266
|
async _updateExtensionsOnExtHost(extensionHostManager, versionId, toAdd, toRemove, removedRunningLocation) {
|
|
@@ -266,11 +268,11 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
266
268
|
const myToRemove = filterExtensionIdentifiers(toRemove, removedRunningLocation, extRunningLocation => extensionHostManager.representsRunningLocation(extRunningLocation));
|
|
267
269
|
const addActivationEvents = ImplicitActivationEvents.createActivationEventsMap(toAdd);
|
|
268
270
|
if (isCI) {
|
|
269
|
-
const printExtIds = (extensions) => ( extensions.map(e => e.identifier.value)).join(',');
|
|
270
|
-
const printIds = (extensions) => ( extensions.map(e => e.value)).join(',');
|
|
271
|
+
const printExtIds = (extensions) => ( (extensions.map(e => e.identifier.value))).join(',');
|
|
272
|
+
const printIds = (extensions) => ( (extensions.map(e => e.value))).join(',');
|
|
271
273
|
this._logService.info(`AbstractExtensionService: Calling deltaExtensions: toRemove: [${printIds(toRemove)}], toAdd: [${printExtIds(toAdd)}], myToRemove: [${printIds(myToRemove)}], myToAdd: [${printExtIds(myToAdd)}],`);
|
|
272
274
|
}
|
|
273
|
-
await extensionHostManager.deltaExtensions({ versionId, toRemove, toAdd, addActivationEvents, myToRemove, myToAdd: ( myToAdd.map(extension => extension.identifier)) });
|
|
275
|
+
await extensionHostManager.deltaExtensions({ versionId, toRemove, toAdd, addActivationEvents, myToRemove, myToAdd: ( (myToAdd.map(extension => extension.identifier))) });
|
|
274
276
|
}
|
|
275
277
|
canAddExtension(extension) {
|
|
276
278
|
return this._canAddExtension(extension, []);
|
|
@@ -278,9 +280,9 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
278
280
|
_canAddExtension(extension, extensionsBeingRemoved) {
|
|
279
281
|
const existing = this._registry.getExtensionDescriptionByIdOrUUID(extension.identifier, extension.id);
|
|
280
282
|
if (existing) {
|
|
281
|
-
const isBeingRemoved = ( extensionsBeingRemoved.some(
|
|
283
|
+
const isBeingRemoved = ( (extensionsBeingRemoved.some(
|
|
282
284
|
(extensionDescription) => ExtensionIdentifier.equals(extension.identifier, extensionDescription.identifier)
|
|
283
|
-
));
|
|
285
|
+
)));
|
|
284
286
|
if (!isBeingRemoved) {
|
|
285
287
|
return false;
|
|
286
288
|
}
|
|
@@ -309,7 +311,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
309
311
|
let hasWorkspaceContains = false;
|
|
310
312
|
const activationEvents = this._activationEventReader.readActivationEvents(extensionDescription);
|
|
311
313
|
for (const activationEvent of activationEvents) {
|
|
312
|
-
if (( this._allRequestedActivateEvents.has(activationEvent))) {
|
|
314
|
+
if (( (this._allRequestedActivateEvents.has(activationEvent)))) {
|
|
313
315
|
shouldActivate = true;
|
|
314
316
|
shouldActivateReason = activationEvent;
|
|
315
317
|
break;
|
|
@@ -329,16 +331,16 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
329
331
|
}
|
|
330
332
|
}
|
|
331
333
|
if (shouldActivate) {
|
|
332
|
-
await Promise.all(( this._extensionHostManagers.map(
|
|
334
|
+
await Promise.all(( (this._extensionHostManagers.map(
|
|
333
335
|
extHostManager => extHostManager.activate(extensionDescription.identifier, { startup: false, extensionId: extensionDescription.identifier, activationEvent: shouldActivateReason })
|
|
334
|
-
))).then(() => { });
|
|
336
|
+
)))).then(() => { });
|
|
335
337
|
}
|
|
336
338
|
else if (hasWorkspaceContains) {
|
|
337
339
|
const workspace = await this._contextService.getCompleteWorkspace();
|
|
338
340
|
const forceUsingSearch = !!this._environmentService.remoteAuthority;
|
|
339
341
|
const host = {
|
|
340
342
|
logService: this._logService,
|
|
341
|
-
folders: ( workspace.folders.map(folder => folder.uri)),
|
|
343
|
+
folders: ( (workspace.folders.map(folder => folder.uri))),
|
|
342
344
|
forceUsingSearch: forceUsingSearch,
|
|
343
345
|
exists: (uri) => this._fileService.exists(uri),
|
|
344
346
|
checkExists: (folders, includes, token) => this._instantiationService.invokeFunction((accessor) => checkGlobFileExists(accessor, folders, includes, token))
|
|
@@ -347,9 +349,9 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
347
349
|
if (!result) {
|
|
348
350
|
return;
|
|
349
351
|
}
|
|
350
|
-
await Promise.all(( this._extensionHostManagers.map(
|
|
352
|
+
await Promise.all(( (this._extensionHostManagers.map(
|
|
351
353
|
extHostManager => extHostManager.activate(extensionDescription.identifier, { startup: false, extensionId: extensionDescription.identifier, activationEvent: result.activationEvent })
|
|
352
|
-
))).then(() => { });
|
|
354
|
+
)))).then(() => { });
|
|
353
355
|
}
|
|
354
356
|
}
|
|
355
357
|
async _initialize() {
|
|
@@ -363,7 +365,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
363
365
|
for (const extHostManager of this._extensionHostManagers) {
|
|
364
366
|
if (extHostManager.startup !== 1 ) {
|
|
365
367
|
const extensions = this._runningLocations.filterByExtensionHostManager(snapshot.extensions, extHostManager);
|
|
366
|
-
extHostManager.start(snapshot.versionId, snapshot.extensions, ( extensions.map(extension => extension.identifier)));
|
|
368
|
+
extHostManager.start(snapshot.versionId, snapshot.extensions, ( (extensions.map(extension => extension.identifier))));
|
|
367
369
|
}
|
|
368
370
|
}
|
|
369
371
|
}
|
|
@@ -395,10 +397,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
395
397
|
this._notificationService.notify({
|
|
396
398
|
severity: Severity$1.Error,
|
|
397
399
|
message: ( localizeWithPath(
|
|
398
|
-
|
|
399
|
-
|
|
400
|
+
_moduleId,
|
|
401
|
+
0,
|
|
400
402
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
401
|
-
( result.removedDueToLooping.map(e => `'${e.identifier.value}'`)).join(', ')
|
|
403
|
+
( (result.removedDueToLooping.map(e => `'${e.identifier.value}'`))).join(', ')
|
|
402
404
|
))
|
|
403
405
|
});
|
|
404
406
|
}
|
|
@@ -411,10 +413,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
411
413
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
412
414
|
if (!extensionHostManager) {
|
|
413
415
|
const msg = ( localizeWithPath(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
_moduleId,
|
|
417
|
+
1,
|
|
416
418
|
"No extension host found that can launch the test runner at {0}.",
|
|
417
|
-
|
|
419
|
+
(this._environmentService.extensionTestsLocationURI.toString())
|
|
418
420
|
));
|
|
419
421
|
console.error(msg);
|
|
420
422
|
this._notificationService.error(msg);
|
|
@@ -446,10 +448,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
446
448
|
}
|
|
447
449
|
if (runningLocation === null) {
|
|
448
450
|
if (testLocation.scheme === Schemas.vscodeRemote) {
|
|
449
|
-
runningLocation = ( new RemoteRunningLocation());
|
|
451
|
+
runningLocation = ( (new RemoteRunningLocation()));
|
|
450
452
|
}
|
|
451
453
|
else {
|
|
452
|
-
runningLocation = ( new LocalProcessRunningLocation(0));
|
|
454
|
+
runningLocation = ( (new LocalProcessRunningLocation(0)));
|
|
453
455
|
}
|
|
454
456
|
}
|
|
455
457
|
if (runningLocation !== null) {
|
|
@@ -460,7 +462,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
460
462
|
_releaseBarrier() {
|
|
461
463
|
this._installedExtensionsReady.open();
|
|
462
464
|
this._onDidRegisterExtensions.fire(undefined);
|
|
463
|
-
this._onDidChangeExtensionsStatus.fire(( this._registry.getAllExtensionDescriptions().map(e => e.identifier)));
|
|
465
|
+
this._onDidChangeExtensionsStatus.fire(( (this._registry.getAllExtensionDescriptions().map(e => e.identifier))));
|
|
464
466
|
}
|
|
465
467
|
async _resolveAuthorityInitial(remoteAuthority) {
|
|
466
468
|
const MAX_ATTEMPTS = 5;
|
|
@@ -515,12 +517,12 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
515
517
|
async _resolveAuthorityOnExtensionHosts(kind, remoteAuthority) {
|
|
516
518
|
const extensionHosts = this._getExtensionHostManagers(kind);
|
|
517
519
|
if (extensionHosts.length === 0) {
|
|
518
|
-
throw new Error(`Cannot resolve authority`);
|
|
520
|
+
throw ( (new Error(`Cannot resolve authority`)));
|
|
519
521
|
}
|
|
520
522
|
this._resolveAuthorityAttempt++;
|
|
521
|
-
const results = await Promise.all(( extensionHosts.map(
|
|
523
|
+
const results = await Promise.all(( (extensionHosts.map(
|
|
522
524
|
extHost => extHost.resolveAuthority(remoteAuthority, this._resolveAuthorityAttempt)
|
|
523
|
-
)));
|
|
525
|
+
))));
|
|
524
526
|
let bestErrorResult = null;
|
|
525
527
|
for (const result of results) {
|
|
526
528
|
if (result.type === 'ok') {
|
|
@@ -536,14 +538,18 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
536
538
|
bestErrorResult = result;
|
|
537
539
|
}
|
|
538
540
|
}
|
|
539
|
-
throw new RemoteAuthorityResolverError(
|
|
541
|
+
throw ( (new RemoteAuthorityResolverError(
|
|
542
|
+
bestErrorResult.error.message,
|
|
543
|
+
bestErrorResult.error.code,
|
|
544
|
+
bestErrorResult.error.detail
|
|
545
|
+
)));
|
|
540
546
|
}
|
|
541
547
|
stopExtensionHosts(reason) {
|
|
542
548
|
return this._doStopExtensionHostsWithVeto(reason);
|
|
543
549
|
}
|
|
544
550
|
_doStopExtensionHosts() {
|
|
545
551
|
const previouslyActivatedExtensionIds = [];
|
|
546
|
-
for (const extensionStatus of ( this._extensionStatus.values())) {
|
|
552
|
+
for (const extensionStatus of ( (this._extensionStatus.values()))) {
|
|
547
553
|
if (extensionStatus.activationStarted) {
|
|
548
554
|
previouslyActivatedExtensionIds.push(extensionStatus.id);
|
|
549
555
|
}
|
|
@@ -552,7 +558,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
552
558
|
this._extensionHostManagers[i].dispose();
|
|
553
559
|
}
|
|
554
560
|
this._extensionHostManagers = [];
|
|
555
|
-
for (const extensionStatus of ( this._extensionStatus.values())) {
|
|
561
|
+
for (const extensionStatus of ( (this._extensionStatus.values()))) {
|
|
556
562
|
extensionStatus.clearRuntimeStatus();
|
|
557
563
|
}
|
|
558
564
|
if (previouslyActivatedExtensionIds.length > 0) {
|
|
@@ -561,7 +567,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
561
567
|
}
|
|
562
568
|
async _doStopExtensionHostsWithVeto(reason) {
|
|
563
569
|
const vetos = [];
|
|
564
|
-
const vetoReasons = ( new Set());
|
|
570
|
+
const vetoReasons = ( (new Set()));
|
|
565
571
|
this._onWillStop.fire({
|
|
566
572
|
reason,
|
|
567
573
|
veto(value, reason) {
|
|
@@ -577,13 +583,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
577
583
|
vetoReasons.add(reason);
|
|
578
584
|
}
|
|
579
585
|
}).catch(error => {
|
|
580
|
-
vetoReasons.add(( localizeWithPath(
|
|
581
|
-
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
582
|
-
'extensionStopVetoError',
|
|
583
|
-
"{0} (Error: {1})",
|
|
584
|
-
reason,
|
|
585
|
-
toErrorMessage(error)
|
|
586
|
-
)));
|
|
586
|
+
vetoReasons.add(( localizeWithPath(_moduleId, 2, "{0} (Error: {1})", reason, toErrorMessage(error))));
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
}
|
|
@@ -595,21 +595,16 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
595
595
|
else {
|
|
596
596
|
const vetoReasonsArray = Array.from(vetoReasons);
|
|
597
597
|
this._logService.warn(`Extension host was not stopped because of veto (stop reason: ${reason}, veto reason: ${vetoReasonsArray.join(', ')})`);
|
|
598
|
-
await this._dialogService.warn(( localizeWithPath(
|
|
599
|
-
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
600
|
-
'extensionStopVetoMessage',
|
|
601
|
-
"The following operation was blocked: {0}",
|
|
602
|
-
reason
|
|
603
|
-
)), vetoReasonsArray.length === 1 ?
|
|
598
|
+
await this._dialogService.warn(( localizeWithPath(_moduleId, 3, "The following operation was blocked: {0}", reason)), vetoReasonsArray.length === 1 ?
|
|
604
599
|
( localizeWithPath(
|
|
605
|
-
|
|
606
|
-
|
|
600
|
+
_moduleId,
|
|
601
|
+
4,
|
|
607
602
|
"The reason for blocking the operation: {0}",
|
|
608
603
|
vetoReasonsArray[0]
|
|
609
604
|
)) :
|
|
610
605
|
( localizeWithPath(
|
|
611
|
-
|
|
612
|
-
|
|
606
|
+
_moduleId,
|
|
607
|
+
5,
|
|
613
608
|
"The reasons for blocking the operation:\n- {0}",
|
|
614
609
|
vetoReasonsArray.join('\n -')
|
|
615
610
|
)));
|
|
@@ -619,12 +614,12 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
619
614
|
_startExtensionHostsIfNecessary(isInitialStart, initialActivationEvents) {
|
|
620
615
|
const locations = [];
|
|
621
616
|
for (let affinity = 0; affinity <= this._runningLocations.maxLocalProcessAffinity; affinity++) {
|
|
622
|
-
locations.push(( new LocalProcessRunningLocation(affinity)));
|
|
617
|
+
locations.push(( (new LocalProcessRunningLocation(affinity))));
|
|
623
618
|
}
|
|
624
619
|
for (let affinity = 0; affinity <= this._runningLocations.maxLocalWebWorkerAffinity; affinity++) {
|
|
625
|
-
locations.push(( new LocalWebWorkerRunningLocation(affinity)));
|
|
620
|
+
locations.push(( (new LocalWebWorkerRunningLocation(affinity))));
|
|
626
621
|
}
|
|
627
|
-
locations.push(( new RemoteRunningLocation()));
|
|
622
|
+
locations.push(( (new RemoteRunningLocation())));
|
|
628
623
|
for (const location of locations) {
|
|
629
624
|
if (this._getExtensionHostManagerByRunningLocation(location)) {
|
|
630
625
|
continue;
|
|
@@ -647,7 +642,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
647
642
|
this._onDidChangeResponsiveChange.fire({
|
|
648
643
|
extensionHostKind: processManager.kind,
|
|
649
644
|
isResponsive: responsiveState === 0 ,
|
|
650
|
-
|
|
645
|
+
getInspectListener: (tryEnableInspector) => {
|
|
651
646
|
return processManager.getInspectPort(tryEnableInspector);
|
|
652
647
|
}
|
|
653
648
|
});
|
|
@@ -688,15 +683,17 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
688
683
|
}
|
|
689
684
|
}
|
|
690
685
|
_getExtensionHostExitInfoWithTimeout(reconnectionToken) {
|
|
691
|
-
return (
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
686
|
+
return (
|
|
687
|
+
(new Promise((resolve, reject) => {
|
|
688
|
+
const timeoutHandle = setTimeout(() => {
|
|
689
|
+
reject(( (new Error('getExtensionHostExitInfo timed out'))));
|
|
690
|
+
}, 2000);
|
|
691
|
+
this._remoteAgentService.getExtensionHostExitInfo(reconnectionToken).then((r) => {
|
|
692
|
+
clearTimeout(timeoutHandle);
|
|
693
|
+
resolve(r);
|
|
694
|
+
}, reject);
|
|
695
|
+
}))
|
|
696
|
+
);
|
|
700
697
|
}
|
|
701
698
|
async _onRemoteExtensionHostCrashed(extensionHost, reconnectionToken) {
|
|
702
699
|
try {
|
|
@@ -709,25 +706,21 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
709
706
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
710
707
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
711
708
|
this._notificationService.status(( localizeWithPath(
|
|
712
|
-
|
|
713
|
-
|
|
709
|
+
_moduleId,
|
|
710
|
+
6,
|
|
714
711
|
"The remote extension host terminated unexpectedly. Restarting..."
|
|
715
712
|
)), { hideAfter: 5000 });
|
|
716
|
-
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
713
|
+
this._startExtensionHostsIfNecessary(false, Array.from(( (this._allRequestedActivateEvents.keys()))));
|
|
717
714
|
}
|
|
718
715
|
else {
|
|
719
716
|
this._notificationService.prompt(Severity$1.Error, ( localizeWithPath(
|
|
720
|
-
|
|
721
|
-
|
|
717
|
+
_moduleId,
|
|
718
|
+
7,
|
|
722
719
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
723
720
|
)), [{
|
|
724
|
-
label: ( localizeWithPath(
|
|
725
|
-
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
726
|
-
'restart',
|
|
727
|
-
"Restart Remote Extension Host"
|
|
728
|
-
)),
|
|
721
|
+
label: ( localizeWithPath(_moduleId, 8, "Restart Remote Extension Host")),
|
|
729
722
|
run: () => {
|
|
730
|
-
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
723
|
+
this._startExtensionHostsIfNecessary(false, Array.from(( (this._allRequestedActivateEvents.keys()))));
|
|
731
724
|
}
|
|
732
725
|
}]);
|
|
733
726
|
}
|
|
@@ -737,13 +730,13 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
737
730
|
}
|
|
738
731
|
_logExtensionHostCrash(extensionHost) {
|
|
739
732
|
const activatedExtensions = [];
|
|
740
|
-
for (const extensionStatus of ( this._extensionStatus.values())) {
|
|
733
|
+
for (const extensionStatus of ( (this._extensionStatus.values()))) {
|
|
741
734
|
if (extensionStatus.activationStarted && extensionHost.containsExtension(extensionStatus.id)) {
|
|
742
735
|
activatedExtensions.push(extensionStatus.id);
|
|
743
736
|
}
|
|
744
737
|
}
|
|
745
738
|
if (activatedExtensions.length > 0) {
|
|
746
|
-
this._logService.error(`Extension host (${extensionHost.friendyName}) terminated unexpectedly. The following extensions were running: ${( activatedExtensions.map(id => id.value)).join(', ')}`);
|
|
739
|
+
this._logService.error(`Extension host (${extensionHost.friendyName}) terminated unexpectedly. The following extensions were running: ${( (activatedExtensions.map(id => id.value))).join(', ')}`);
|
|
747
740
|
}
|
|
748
741
|
else {
|
|
749
742
|
this._logService.error(`Extension host (${extensionHost.friendyName}) terminated unexpectedly. No extensions were activated.`);
|
|
@@ -752,13 +745,13 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
752
745
|
async startExtensionHosts(updates) {
|
|
753
746
|
this._doStopExtensionHosts();
|
|
754
747
|
if (updates) {
|
|
755
|
-
await this._handleDeltaExtensions(( new DeltaExtensionsQueueItem(updates.toAdd, updates.toRemove)));
|
|
748
|
+
await this._handleDeltaExtensions(( (new DeltaExtensionsQueueItem(updates.toAdd, updates.toRemove))));
|
|
756
749
|
}
|
|
757
750
|
const lock = await this._registry.acquireLock('startExtensionHosts');
|
|
758
751
|
try {
|
|
759
|
-
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
752
|
+
this._startExtensionHostsIfNecessary(false, Array.from(( (this._allRequestedActivateEvents.keys()))));
|
|
760
753
|
const localProcessExtensionHosts = this._getExtensionHostManagers(1 );
|
|
761
|
-
await Promise.all(( localProcessExtensionHosts.map(extHost => extHost.ready())));
|
|
754
|
+
await Promise.all(( (localProcessExtensionHosts.map(extHost => extHost.ready()))));
|
|
762
755
|
}
|
|
763
756
|
finally {
|
|
764
757
|
lock.dispose();
|
|
@@ -781,9 +774,9 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
781
774
|
}
|
|
782
775
|
}
|
|
783
776
|
_activateByEvent(activationEvent, activationKind) {
|
|
784
|
-
const result = Promise.all(( this._extensionHostManagers.map(
|
|
777
|
+
const result = Promise.all(( (this._extensionHostManagers.map(
|
|
785
778
|
extHostManager => extHostManager.activateByEvent(activationEvent, activationKind)
|
|
786
|
-
))).then(() => { });
|
|
779
|
+
)))).then(() => { });
|
|
787
780
|
this._onWillActivateByEvent.fire({
|
|
788
781
|
event: activationEvent,
|
|
789
782
|
activation: result
|
|
@@ -822,7 +815,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
822
815
|
const result = [];
|
|
823
816
|
for (const desc of availableExtensions) {
|
|
824
817
|
if (desc.contributes && hasOwnProperty.call(desc.contributes, extPoint.name)) {
|
|
825
|
-
result.push(( new ExtensionPointContribution(desc, desc.contributes[extPoint.name])));
|
|
818
|
+
result.push(( (new ExtensionPointContribution(desc, desc.contributes[extPoint.name]))));
|
|
826
819
|
}
|
|
827
820
|
}
|
|
828
821
|
return result;
|
|
@@ -847,12 +840,12 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
847
840
|
return result;
|
|
848
841
|
}
|
|
849
842
|
async getInspectPorts(extensionHostKind, tryEnableInspector) {
|
|
850
|
-
const result = await Promise.all(( this._getExtensionHostManagers(extensionHostKind).map(extHost => extHost.getInspectPort(tryEnableInspector))));
|
|
851
|
-
return result.filter(
|
|
843
|
+
const result = await Promise.all(( (this._getExtensionHostManagers(extensionHostKind).map(extHost => extHost.getInspectPort(tryEnableInspector)))));
|
|
844
|
+
return result.filter(isDefined);
|
|
852
845
|
}
|
|
853
846
|
async setRemoteEnvironment(env) {
|
|
854
|
-
await ( this._extensionHostManagers
|
|
855
|
-
.map(manager => manager.setRemoteEnvironment(env)));
|
|
847
|
+
await ( (this._extensionHostManagers
|
|
848
|
+
.map(manager => manager.setRemoteEnvironment(env))));
|
|
856
849
|
}
|
|
857
850
|
_safeInvokeIsEnabled(extension) {
|
|
858
851
|
try {
|
|
@@ -887,8 +880,8 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
887
880
|
mark('code/didHandleExtensionPoints');
|
|
888
881
|
}
|
|
889
882
|
_getOrCreateExtensionStatus(extensionId) {
|
|
890
|
-
if (!( this._extensionStatus.has(extensionId))) {
|
|
891
|
-
this._extensionStatus.set(extensionId, ( new ExtensionStatus(extensionId)));
|
|
883
|
+
if (!( (this._extensionStatus.has(extensionId)))) {
|
|
884
|
+
this._extensionStatus.set(extensionId, ( (new ExtensionStatus(extensionId))));
|
|
892
885
|
}
|
|
893
886
|
return this._extensionStatus.get(extensionId);
|
|
894
887
|
}
|
|
@@ -926,7 +919,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
926
919
|
users.push({
|
|
927
920
|
description: desc,
|
|
928
921
|
value: desc.contributes[extensionPoint.name],
|
|
929
|
-
collector: ( new ExtensionMessageCollector(messageHandler, desc, extensionPoint.name))
|
|
922
|
+
collector: ( (new ExtensionMessageCollector(messageHandler, desc, extensionPoint.name)))
|
|
930
923
|
});
|
|
931
924
|
}
|
|
932
925
|
}
|
|
@@ -952,10 +945,10 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
952
945
|
};
|
|
953
946
|
}
|
|
954
947
|
async _activateById(extensionId, reason) {
|
|
955
|
-
const results = await Promise.all(( this._extensionHostManagers.map(manager => manager.activate(extensionId, reason))));
|
|
956
|
-
const activated = ( results.some(e => e));
|
|
948
|
+
const results = await Promise.all(( (this._extensionHostManagers.map(manager => manager.activate(extensionId, reason)))));
|
|
949
|
+
const activated = ( (results.some(e => e)));
|
|
957
950
|
if (!activated) {
|
|
958
|
-
throw new Error(`Unknown extension ${extensionId.value}`);
|
|
951
|
+
throw ( (new Error(`Unknown extension ${extensionId.value}`)));
|
|
959
952
|
}
|
|
960
953
|
}
|
|
961
954
|
_onWillActivateExtension(extensionId, runningLocation) {
|
|
@@ -965,7 +958,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
965
958
|
}
|
|
966
959
|
_onDidActivateExtension(extensionId, codeLoadingTime, activateCallTime, activateResolvedTime, activationReason) {
|
|
967
960
|
const extensionStatus = this._getOrCreateExtensionStatus(extensionId);
|
|
968
|
-
extensionStatus.setActivationTimes(( new ActivationTimes(codeLoadingTime, activateCallTime, activateResolvedTime, activationReason)));
|
|
961
|
+
extensionStatus.setActivationTimes(( (new ActivationTimes(codeLoadingTime, activateCallTime, activateResolvedTime, activationReason))));
|
|
969
962
|
this._onDidChangeExtensionsStatus.fire([extensionId]);
|
|
970
963
|
}
|
|
971
964
|
_onDidActivateExtensionError(extensionId, error) {
|
|
@@ -980,25 +973,25 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
980
973
|
this._onDidChangeExtensionsStatus.fire([extensionId]);
|
|
981
974
|
}
|
|
982
975
|
};
|
|
983
|
-
AbstractExtensionService = AbstractExtensionService_1 = ( __decorate([
|
|
984
|
-
( __param(3, IInstantiationService)),
|
|
985
|
-
( __param(4, INotificationService)),
|
|
986
|
-
( __param(5, IWorkbenchEnvironmentService)),
|
|
987
|
-
( __param(6, ITelemetryService)),
|
|
988
|
-
( __param(7, IWorkbenchExtensionEnablementService)),
|
|
989
|
-
( __param(8, IFileService)),
|
|
990
|
-
( __param(9, IProductService)),
|
|
991
|
-
( __param(10, IWorkbenchExtensionManagementService)),
|
|
992
|
-
( __param(11, IWorkspaceContextService)),
|
|
993
|
-
( __param(12, IConfigurationService)),
|
|
994
|
-
( __param(13, IExtensionManifestPropertiesService)),
|
|
995
|
-
( __param(14, ILogService)),
|
|
996
|
-
( __param(15, IRemoteAgentService)),
|
|
997
|
-
( __param(16, IRemoteExtensionsScannerService)),
|
|
998
|
-
( __param(17, ILifecycleService)),
|
|
999
|
-
( __param(18, IRemoteAuthorityResolverService)),
|
|
1000
|
-
( __param(19, IDialogService))
|
|
1001
|
-
], AbstractExtensionService));
|
|
976
|
+
AbstractExtensionService = AbstractExtensionService_1 = ( (__decorate([
|
|
977
|
+
( (__param(3, IInstantiationService))),
|
|
978
|
+
( (__param(4, INotificationService))),
|
|
979
|
+
( (__param(5, IWorkbenchEnvironmentService))),
|
|
980
|
+
( (__param(6, ITelemetryService))),
|
|
981
|
+
( (__param(7, IWorkbenchExtensionEnablementService))),
|
|
982
|
+
( (__param(8, IFileService))),
|
|
983
|
+
( (__param(9, IProductService))),
|
|
984
|
+
( (__param(10, IWorkbenchExtensionManagementService))),
|
|
985
|
+
( (__param(11, IWorkspaceContextService))),
|
|
986
|
+
( (__param(12, IConfigurationService))),
|
|
987
|
+
( (__param(13, IExtensionManifestPropertiesService))),
|
|
988
|
+
( (__param(14, ILogService))),
|
|
989
|
+
( (__param(15, IRemoteAgentService))),
|
|
990
|
+
( (__param(16, IRemoteExtensionsScannerService))),
|
|
991
|
+
( (__param(17, ILifecycleService))),
|
|
992
|
+
( (__param(18, IRemoteAuthorityResolverService))),
|
|
993
|
+
( (__param(19, IDialogService)))
|
|
994
|
+
], AbstractExtensionService)));
|
|
1002
995
|
class ResolvedExtensions {
|
|
1003
996
|
constructor(local, remote, hasLocalProcess, allowRemoteExtensionsInLocalWebWorker) {
|
|
1004
997
|
this.local = local;
|
|
@@ -1123,7 +1116,7 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1123
1116
|
}
|
|
1124
1117
|
render(manifest) {
|
|
1125
1118
|
const activationEvents = manifest.activationEvents || [];
|
|
1126
|
-
const data = ( new MarkdownString());
|
|
1119
|
+
const data = ( (new MarkdownString()));
|
|
1127
1120
|
if (activationEvents.length) {
|
|
1128
1121
|
for (const activationEvent of activationEvents) {
|
|
1129
1122
|
data.appendMarkdown(`- \`${activationEvent}\`\n`);
|
|
@@ -1135,17 +1128,13 @@ class ActivationFeatureMarkdowneRenderer extends Disposable {
|
|
|
1135
1128
|
};
|
|
1136
1129
|
}
|
|
1137
1130
|
}
|
|
1138
|
-
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
1131
|
+
( (Registry.as(Extensions.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
1139
1132
|
id: 'activationEvents',
|
|
1140
|
-
label: ( localizeWithPath(
|
|
1141
|
-
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
1142
|
-
'activation',
|
|
1143
|
-
"Activation Events"
|
|
1144
|
-
)),
|
|
1133
|
+
label: ( localizeWithPath(_moduleId, 9, "Activation Events")),
|
|
1145
1134
|
access: {
|
|
1146
1135
|
canToggle: false
|
|
1147
1136
|
},
|
|
1148
|
-
renderer: ( new SyncDescriptor(ActivationFeatureMarkdowneRenderer)),
|
|
1137
|
+
renderer: ( (new SyncDescriptor(ActivationFeatureMarkdowneRenderer))),
|
|
1149
1138
|
});
|
|
1150
1139
|
|
|
1151
1140
|
export { AbstractExtensionService, DeltaExtensionsQueueItem, ExtensionHostCrashTracker, ExtensionStatus, ImplicitActivationAwareReader, ResolvedExtensions, checkEnabledAndProposedAPI, filterEnabledExtensions };
|