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