@codingame/monaco-vscode-extensions-service-override 1.85.6 → 2.0.0-v2.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/extensions.js +18 -14
- package/package.json +5 -5
- package/vscode/src/vs/platform/extensionResourceLoader/browser/extensionResourceLoaderService.js +7 -7
- package/vscode/src/vs/platform/lifecycle/common/lifecycle.js +1 -1
- package/vscode/src/vs/platform/log/browser/log.js +1 -1
- package/vscode/src/vs/platform/remote/common/managedSocket.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadAiEmbeddingVector.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadAiRelatedInformation.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +20 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadBulkEdits.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadChat.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadChatAgents2.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadChatProvider.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadChatVariables.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadClipboard.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCodeInsets.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadCommands.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadConfiguration.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadConsole.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +17 -17
- package/vscode/src/vs/workbench/api/browser/mainThreadDebugService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDecorations.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadDiagnostics.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadDialogs.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentContentProviders.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadDocuments.js +13 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +12 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadDownloadService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditor.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadEditorTabs.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadEditors.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadErrors.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystem.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +18 -18
- package/vscode/src/vs/workbench/api/browser/mainThreadInlineChat.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadInteractive.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadIssueReporter.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLabelService.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguageFeatures.js +14 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadLanguages.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadLocalization.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadLogService.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadManagedSockets.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebook.js +11 -11
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocuments.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookDocumentsAndEditors.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookEditors.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookKernels.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookRenderers.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadOutputService.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProfilContentHandlers.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickDiff.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadQuickOpen.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadRemoteConnectionData.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadSCM.js +9 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadSearch.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadSecretState.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadShare.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadSpeech.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadStatusBar.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadStorage.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +15 -15
- package/vscode/src/vs/workbench/api/browser/mainThreadTelemetry.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadTerminalService.js +6 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadTesting.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadTheming.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTimeline.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTreeViews.js +7 -7
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +10 -10
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadUrls.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewManager.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewPanels.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviewViews.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +8 -8
- package/vscode/src/vs/workbench/api/browser/mainThreadWindow.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +13 -13
- package/vscode/src/vs/workbench/api/common/shared/dataTransferCache.js +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +27 -27
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +30 -30
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +41 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +38 -38
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customTextEditorModel.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/contributedOpeners.js +2 -2
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +7 -7
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.js +11 -11
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js +28 -28
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerFileSystemProvider.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +38 -38
- package/vscode/src/vs/workbench/services/extensions/common/extensionDevOptions.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +16 -16
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionStorageMigration.js +8 -8
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/extensionsUtil.js +2 -2
- package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js +5 -5
- package/vscode/src/vs/workbench/services/extensions/common/remoteExtensionHost.js +13 -13
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Barrier } from '
|
|
3
|
-
import { toErrorMessage } from '
|
|
4
|
-
import { Emitter } from '
|
|
5
|
-
import { Disposable } from '
|
|
6
|
-
import { Schemas } from '
|
|
7
|
-
import
|
|
8
|
-
import { isCI } from '
|
|
9
|
-
import { isEqualOrParent } from '
|
|
10
|
-
import { StopWatch } from '
|
|
11
|
-
import
|
|
12
|
-
import { IConfigurationService } from '
|
|
2
|
+
import { Barrier } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { toErrorMessage } from 'vscode/vscode/vs/base/common/errorMessage';
|
|
4
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
7
|
+
import { mark } from 'vscode/vscode/vs/base/common/performance';
|
|
8
|
+
import { isCI } from 'vscode/vscode/vs/base/common/platform';
|
|
9
|
+
import { isEqualOrParent } from 'vscode/vscode/vs/base/common/resources';
|
|
10
|
+
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
11
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
12
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
13
13
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
14
14
|
import { ImplicitActivationEvents } from 'vscode/vscode/vs/platform/extensionManagement/common/implicitActivationEvents';
|
|
15
|
-
import { ExtensionIdentifierMap, ExtensionIdentifier } from '
|
|
16
|
-
import { IFileService } from '
|
|
17
|
-
import { IInstantiationService } from '
|
|
15
|
+
import { ExtensionIdentifierMap, ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
16
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
|
|
17
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
18
18
|
import { handleVetos } from '../../../../platform/lifecycle/common/lifecycle.js';
|
|
19
|
-
import { ILogService } from '
|
|
20
|
-
import { INotificationService, Severity } from '
|
|
21
|
-
import { IProductService } from '
|
|
19
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
20
|
+
import { INotificationService, Severity } from 'vscode/vscode/vs/platform/notification/common/notification';
|
|
21
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
22
22
|
import { IRemoteAuthorityResolverService, RemoteAuthorityResolverError, getRemoteAuthorityPrefix, RemoteAuthorityResolverErrorCode } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
23
23
|
import { IRemoteExtensionsScannerService } from 'vscode/vscode/vs/platform/remote/common/remoteExtensionsScanner';
|
|
24
|
-
import { ITelemetryService } from '
|
|
25
|
-
import { IWorkspaceContextService } from '
|
|
24
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
25
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
26
26
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
27
27
|
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionManagement';
|
|
28
28
|
import { LockableExtensionDescriptionRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry';
|
|
@@ -225,7 +225,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
225
225
|
if (result.removedDueToLooping.length > 0) {
|
|
226
226
|
this._notificationService.notify({
|
|
227
227
|
severity: Severity.Error,
|
|
228
|
-
message: (
|
|
228
|
+
message: ( localizeWithPath(
|
|
229
229
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
230
230
|
'looping',
|
|
231
231
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
@@ -338,7 +338,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
async _initialize() {
|
|
341
|
-
|
|
341
|
+
mark('code/willLoadExtensions');
|
|
342
342
|
this._startExtensionHostsIfNecessary(true, []);
|
|
343
343
|
const lock = await this._registry.acquireLock('_initialize');
|
|
344
344
|
try {
|
|
@@ -356,7 +356,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
356
356
|
lock.dispose();
|
|
357
357
|
}
|
|
358
358
|
this._releaseBarrier();
|
|
359
|
-
|
|
359
|
+
mark('code/didLoadExtensions');
|
|
360
360
|
await this._handleExtensionTests();
|
|
361
361
|
}
|
|
362
362
|
_processExtensions(lock, resolvedExtensions) {
|
|
@@ -379,7 +379,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
379
379
|
if (result.removedDueToLooping.length > 0) {
|
|
380
380
|
this._notificationService.notify({
|
|
381
381
|
severity: Severity.Error,
|
|
382
|
-
message: (
|
|
382
|
+
message: ( localizeWithPath(
|
|
383
383
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
384
384
|
'looping',
|
|
385
385
|
"The following extensions contain dependency loops and have been disabled: {0}",
|
|
@@ -395,7 +395,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
395
395
|
}
|
|
396
396
|
const extensionHostManager = this.findTestExtensionHost(this._environmentService.extensionTestsLocationURI);
|
|
397
397
|
if (!extensionHostManager) {
|
|
398
|
-
const msg = (
|
|
398
|
+
const msg = ( localizeWithPath(
|
|
399
399
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
400
400
|
'extensionTestError',
|
|
401
401
|
"No extension host found that can launch the test runner at {0}.",
|
|
@@ -485,14 +485,14 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
485
485
|
const sw = StopWatch.create(false);
|
|
486
486
|
this._logService.info(`Invoking resolveAuthority(${authorityPrefix})...`);
|
|
487
487
|
try {
|
|
488
|
-
|
|
488
|
+
mark(`code/willResolveAuthority/${authorityPrefix}`);
|
|
489
489
|
const result = await this._resolveAuthority(remoteAuthority);
|
|
490
|
-
|
|
490
|
+
mark(`code/didResolveAuthorityOK/${authorityPrefix}`);
|
|
491
491
|
this._logService.info(`resolveAuthority(${authorityPrefix}) returned '${result.authority.connectTo}' after ${sw.elapsed()} ms`);
|
|
492
492
|
return result;
|
|
493
493
|
}
|
|
494
494
|
catch (err) {
|
|
495
|
-
|
|
495
|
+
mark(`code/didResolveAuthorityError/${authorityPrefix}`);
|
|
496
496
|
this._logService.error(`resolveAuthority(${authorityPrefix}) returned an error after ${sw.elapsed()} ms`, err);
|
|
497
497
|
throw err;
|
|
498
498
|
}
|
|
@@ -562,7 +562,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
562
562
|
vetoReasons.add(reason);
|
|
563
563
|
}
|
|
564
564
|
}).catch(error => {
|
|
565
|
-
vetoReasons.add((
|
|
565
|
+
vetoReasons.add(( localizeWithPath(
|
|
566
566
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
567
567
|
'extensionStopVetoError',
|
|
568
568
|
"{0} (Error: {1})",
|
|
@@ -580,19 +580,19 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
580
580
|
else {
|
|
581
581
|
const vetoReasonsArray = Array.from(vetoReasons);
|
|
582
582
|
this._logService.warn(`Extension host was not stopped because of veto (stop reason: ${reason}, veto reason: ${vetoReasonsArray.join(', ')})`);
|
|
583
|
-
await this._dialogService.warn((
|
|
583
|
+
await this._dialogService.warn(( localizeWithPath(
|
|
584
584
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
585
585
|
'extensionStopVetoMessage',
|
|
586
586
|
"The following operation was blocked: {0}",
|
|
587
587
|
reason
|
|
588
588
|
)), vetoReasonsArray.length === 1 ?
|
|
589
|
-
(
|
|
589
|
+
( localizeWithPath(
|
|
590
590
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
591
591
|
'extensionStopVetoDetailsOne',
|
|
592
592
|
"The reason for blocking the operation: {0}",
|
|
593
593
|
vetoReasonsArray[0]
|
|
594
594
|
)) :
|
|
595
|
-
(
|
|
595
|
+
( localizeWithPath(
|
|
596
596
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
597
597
|
'extensionStopVetoDetailsMany',
|
|
598
598
|
"The reasons for blocking the operation:\n- {0}",
|
|
@@ -693,7 +693,7 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
693
693
|
this._remoteCrashTracker.registerCrash();
|
|
694
694
|
if (this._remoteCrashTracker.shouldAutomaticallyRestart()) {
|
|
695
695
|
this._logService.info(`Automatically restarting the remote extension host.`);
|
|
696
|
-
this._notificationService.status((
|
|
696
|
+
this._notificationService.status(( localizeWithPath(
|
|
697
697
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
698
698
|
'extensionService.autoRestart',
|
|
699
699
|
"The remote extension host terminated unexpectedly. Restarting..."
|
|
@@ -701,12 +701,12 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
701
701
|
this._startExtensionHostsIfNecessary(false, Array.from(( this._allRequestedActivateEvents.keys())));
|
|
702
702
|
}
|
|
703
703
|
else {
|
|
704
|
-
this._notificationService.prompt(Severity.Error, (
|
|
704
|
+
this._notificationService.prompt(Severity.Error, ( localizeWithPath(
|
|
705
705
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
706
706
|
'extensionService.crash',
|
|
707
707
|
"Remote Extension host terminated unexpectedly 3 times within the last 5 minutes."
|
|
708
708
|
)), [{
|
|
709
|
-
label: (
|
|
709
|
+
label: ( localizeWithPath(
|
|
710
710
|
'vs/workbench/services/extensions/common/abstractExtensionService',
|
|
711
711
|
'restart',
|
|
712
712
|
"Restart Remote Extension Host"
|
|
@@ -858,15 +858,15 @@ let AbstractExtensionService = AbstractExtensionService_1 = class AbstractExtens
|
|
|
858
858
|
const messageHandler = (msg) => this._handleExtensionPointMessage(msg);
|
|
859
859
|
const availableExtensions = this._registry.getAllExtensionDescriptions();
|
|
860
860
|
const extensionPoints = ExtensionsRegistry.getExtensionPoints();
|
|
861
|
-
|
|
861
|
+
mark('code/willHandleExtensionPoints');
|
|
862
862
|
for (const extensionPoint of extensionPoints) {
|
|
863
863
|
if (affectedExtensionPoints[extensionPoint.name]) {
|
|
864
|
-
|
|
864
|
+
mark(`code/willHandleExtensionPoint/${extensionPoint.name}`);
|
|
865
865
|
AbstractExtensionService_1._handleExtensionPoint(extensionPoint, availableExtensions, messageHandler);
|
|
866
|
-
|
|
866
|
+
mark(`code/didHandleExtensionPoint/${extensionPoint.name}`);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
mark('code/didHandleExtensionPoints');
|
|
870
870
|
}
|
|
871
871
|
_getOrCreateExtensionStatus(extensionId) {
|
|
872
872
|
if (!( this._extensionStatus.has(extensionId))) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { IntervalTimer } from '
|
|
3
|
-
import { VSBuffer } from '
|
|
4
|
-
import
|
|
5
|
-
import { Emitter } from '
|
|
6
|
-
import { Disposable } from '
|
|
7
|
-
import { StopWatch } from '
|
|
8
|
-
import
|
|
9
|
-
import { Categories } from '
|
|
10
|
-
import { registerAction2, Action2 } from '
|
|
11
|
-
import { IInstantiationService } from '
|
|
12
|
-
import { ILogService } from '
|
|
2
|
+
import { IntervalTimer } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
4
|
+
import { onUnexpectedError } from 'vscode/vscode/vs/base/common/errors';
|
|
5
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { StopWatch } from 'vscode/vscode/vs/base/common/stopwatch';
|
|
8
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
9
|
+
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
10
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
11
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
12
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
13
13
|
import { RemoteAuthorityResolverErrorCode, getRemoteAuthorityPrefix } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
14
|
-
import { ITelemetryService } from '
|
|
14
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
15
15
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
16
16
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
17
17
|
import { ExtHostCustomersRegistry } from './extHostCustomers.js';
|
|
@@ -103,7 +103,7 @@ let ExtensionHostManager = ExtensionHostManager_1 = class ExtensionHostManager e
|
|
|
103
103
|
customer.dispose();
|
|
104
104
|
}
|
|
105
105
|
catch (err) {
|
|
106
|
-
|
|
106
|
+
onUnexpectedError(err);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
this._proxy = null;
|
|
@@ -197,7 +197,7 @@ let ExtensionHostManager = ExtensionHostManager_1 = class ExtensionHostManager e
|
|
|
197
197
|
catch (err) {
|
|
198
198
|
this._logService.error(`Cannot instantiate named customer: '${id.sid}'`);
|
|
199
199
|
this._logService.error(err);
|
|
200
|
-
|
|
200
|
+
onUnexpectedError(err);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
const customers = ExtHostCustomersRegistry.getCustomers();
|
|
@@ -208,7 +208,7 @@ let ExtensionHostManager = ExtensionHostManager_1 = class ExtensionHostManager e
|
|
|
208
208
|
}
|
|
209
209
|
catch (err) {
|
|
210
210
|
this._logService.error(err);
|
|
211
|
-
|
|
211
|
+
onUnexpectedError(err);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
if (!extensionHostProxy) {
|
|
@@ -476,7 +476,7 @@ registerAction2(class MeasureExtHostLatencyAction extends Action2 {
|
|
|
476
476
|
super({
|
|
477
477
|
id: 'editor.action.measureExtHostLatency',
|
|
478
478
|
title: {
|
|
479
|
-
value: (
|
|
479
|
+
value: ( localizeWithPath(
|
|
480
480
|
'vs/workbench/services/extensions/common/extensionHostManager',
|
|
481
481
|
'measureExtHostLatency',
|
|
482
482
|
"Measure Extension Host Latency"
|
package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Schemas } from '
|
|
3
|
-
import { IConfigurationService } from '
|
|
4
|
-
import { ExtensionIdentifierMap } from '
|
|
5
|
-
import { ILogService } from '
|
|
2
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
3
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
4
|
+
import { ExtensionIdentifierMap } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
5
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
6
6
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
7
7
|
import { determineExtensionHostKinds } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
8
8
|
import { IExtensionManifestPropertiesService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionManifestPropertiesService';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getErrorMessage } from '
|
|
2
|
-
import { IEnvironmentService } from '
|
|
1
|
+
import { getErrorMessage } from 'vscode/vscode/vs/base/common/errors';
|
|
2
|
+
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
3
3
|
import { IExtensionStorageService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionStorage';
|
|
4
|
-
import { IFileService, FileSystemProviderErrorCode } from '
|
|
5
|
-
import { ILogService } from '
|
|
6
|
-
import { IStorageService } from '
|
|
7
|
-
import { IUriIdentityService } from '
|
|
8
|
-
import { IUserDataProfilesService } from '
|
|
9
|
-
import { IWorkspaceContextService } from '
|
|
4
|
+
import { IFileService, FileSystemProviderErrorCode } from 'vscode/vscode/vs/platform/files/common/files';
|
|
5
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
6
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
7
|
+
import { IUriIdentityService } from 'vscode/vscode/vs/platform/uriIdentity/common/uriIdentity';
|
|
8
|
+
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile';
|
|
9
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
10
10
|
|
|
11
11
|
async function migrateExtensionStorage(fromExtensionId, toExtensionId, global, instantionService) {
|
|
12
12
|
return instantionService.invokeFunction(async (serviceAccessor) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { isNonEmptyArray } from '
|
|
3
|
-
import { ExtensionIdentifier } from '
|
|
4
|
-
import { ILogService } from '
|
|
5
|
-
import { IProductService } from '
|
|
2
|
+
import { isNonEmptyArray } from 'vscode/vscode/vs/base/common/arrays';
|
|
3
|
+
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
5
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
6
6
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
7
7
|
import { allApiProposals } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsApiProposals';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExtensionIdentifierMap } from '
|
|
2
|
-
import { localizeWithPath } from '
|
|
1
|
+
import { ExtensionIdentifierMap } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
2
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { gte } from 'vscode-semver';
|
|
4
4
|
|
|
5
5
|
function dedupExtensions(system, user, development, logService) {
|
package/vscode/src/vs/workbench/services/extensions/common/lazyCreateExtensionHostManager.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { Barrier } from '
|
|
3
|
-
import { Emitter } from '
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { IInstantiationService } from '
|
|
6
|
-
import { ILogService } from '
|
|
2
|
+
import { Barrier } from 'vscode/vscode/vs/base/common/async';
|
|
3
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
+
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
7
7
|
import { RemoteAuthorityResolverErrorCode } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
8
8
|
import { friendlyExtHostName, ExtensionHostManager } from './extensionHostManager.js';
|
|
9
9
|
import { ExtensionHostExtensions } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { VSBuffer } from '
|
|
3
|
-
import { Emitter } from '
|
|
4
|
-
import { Disposable } from '
|
|
5
|
-
import { Schemas } from '
|
|
6
|
-
import
|
|
2
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
3
|
+
import { Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
4
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { Schemas } from 'vscode/vscode/vs/base/common/network';
|
|
6
|
+
import { language, isWeb } from 'vscode/vscode/vs/base/common/platform';
|
|
7
7
|
import { IExtensionHostDebugService } from 'vscode/vscode/vs/platform/debug/common/extensionHostDebug';
|
|
8
|
-
import { ILabelService } from '
|
|
9
|
-
import { ILogService, ILoggerService } from '
|
|
10
|
-
import { IProductService } from '
|
|
8
|
+
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label';
|
|
9
|
+
import { ILogService, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log';
|
|
10
|
+
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService';
|
|
11
11
|
import { connectRemoteAgentExtensionHost } from 'vscode/vscode/vs/platform/remote/common/remoteAgentConnection';
|
|
12
12
|
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
13
13
|
import { IRemoteSocketFactoryService } from 'vscode/vscode/vs/platform/remote/common/remoteSocketFactoryService';
|
|
14
14
|
import { ISignService } from 'vscode/vscode/vs/platform/sign/common/sign';
|
|
15
|
-
import { ITelemetryService } from '
|
|
15
|
+
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
16
16
|
import { isLoggingOnly } from 'vscode/vscode/vs/platform/telemetry/common/telemetryUtils';
|
|
17
|
-
import { IWorkspaceContextService } from '
|
|
17
|
+
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace';
|
|
18
18
|
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
19
19
|
import { parseExtensionDevOptions } from './extensionDevOptions.js';
|
|
20
20
|
import { isMessageOfType, UIKind, createMessageOfType } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
@@ -64,7 +64,7 @@ let RemoteExtensionHost = class RemoteExtensionHost extends Disposable {
|
|
|
64
64
|
};
|
|
65
65
|
return this.remoteAuthorityResolverService.resolveAuthority(this._initDataProvider.remoteAuthority).then((resolverResult) => {
|
|
66
66
|
const startParams = {
|
|
67
|
-
language:
|
|
67
|
+
language: language,
|
|
68
68
|
debugId: this._environmentService.debugExtensionHost.debugId,
|
|
69
69
|
break: this._environmentService.debugExtensionHost.break,
|
|
70
70
|
port: this._environmentService.debugExtensionHost.port,
|
|
@@ -149,7 +149,7 @@ let RemoteExtensionHost = class RemoteExtensionHost extends Disposable {
|
|
|
149
149
|
appUriScheme: this._productService.urlProtocol,
|
|
150
150
|
extensionTelemetryLogResource: this._environmentService.extHostTelemetryLogFile,
|
|
151
151
|
isExtensionTelemetryLoggingOnly: isLoggingOnly(this._productService, this._environmentService),
|
|
152
|
-
appLanguage:
|
|
152
|
+
appLanguage: language,
|
|
153
153
|
extensionDevelopmentLocationURI: this._environmentService.extensionDevelopmentLocationURI,
|
|
154
154
|
extensionTestsLocationURI: this._environmentService.extensionTestsLocationURI,
|
|
155
155
|
globalStorageHome: remoteInitData.globalStorageHome,
|
|
@@ -183,7 +183,7 @@ let RemoteExtensionHost = class RemoteExtensionHost extends Disposable {
|
|
|
183
183
|
loggers: [...this._loggerService.getRegisteredLoggers()],
|
|
184
184
|
logsLocation: remoteInitData.extensionHostLogsPath,
|
|
185
185
|
autoStart: ((this.startup === 1) ),
|
|
186
|
-
uiKind:
|
|
186
|
+
uiKind: isWeb ? UIKind.Web : UIKind.Desktop
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
189
|
getInspectPort() {
|