@codingame/monaco-vscode-api 8.0.1 → 8.0.3
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/api.js +1 -1
- package/extensions.d.ts +24 -0
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +7 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -114,9 +114,9 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
114
114
|
}
|
|
115
115
|
this.logService.error(this.error);
|
|
116
116
|
if (this.error.name === ExtensionManagementErrorCode.Unsupported) {
|
|
117
|
-
const productName = isWeb ? ( localize(
|
|
117
|
+
const productName = isWeb ? ( localize(7631, "{0} for the Web", this.productService.nameLong)) : this.productService.nameLong;
|
|
118
118
|
const message = ( localize(
|
|
119
|
-
|
|
119
|
+
7632,
|
|
120
120
|
"The '{0}' extension is not available in {1}. Click 'More Information' to learn more.",
|
|
121
121
|
this.extension.displayName || this.extension.identifier.id,
|
|
122
122
|
productName
|
|
@@ -124,8 +124,8 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
124
124
|
const { confirmed } = await this.dialogService.confirm({
|
|
125
125
|
type: Severity$1.Info,
|
|
126
126
|
message,
|
|
127
|
-
primaryButton: ( localize(
|
|
128
|
-
cancelButton: ( localize(
|
|
127
|
+
primaryButton: ( localize(7633, "&&More Information")),
|
|
128
|
+
cancelButton: ( localize(7634, "Close"))
|
|
129
129
|
});
|
|
130
130
|
if (confirmed) {
|
|
131
131
|
this.openerService.open(isWeb ? ( (URI.parse('https://aka.ms/vscode-web-extensions-guide'))) : ( (URI.parse('https://aka.ms/vscode-remote'))));
|
|
@@ -137,14 +137,14 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
137
137
|
type: 'error',
|
|
138
138
|
message: getErrorMessage(this.error),
|
|
139
139
|
buttons: [{
|
|
140
|
-
label: ( localize(
|
|
140
|
+
label: ( localize(7635, "Install Pre-Release")),
|
|
141
141
|
run: () => {
|
|
142
142
|
const installAction = this.instantiationService.createInstance(InstallAction, { installPreReleaseVersion: true });
|
|
143
143
|
installAction.extension = this.extension;
|
|
144
144
|
return installAction.run();
|
|
145
145
|
}
|
|
146
146
|
}],
|
|
147
|
-
cancelButton: ( localize(
|
|
147
|
+
cancelButton: ( localize(7636, "Cancel"))
|
|
148
148
|
});
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
@@ -156,30 +156,30 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
156
156
|
await this.dialogService.prompt({
|
|
157
157
|
type: 'error',
|
|
158
158
|
message: ( localize(
|
|
159
|
-
|
|
159
|
+
7637,
|
|
160
160
|
"{0} cannot verify the '{1}' extension. Are you sure you want to install it?",
|
|
161
161
|
this.productService.nameLong,
|
|
162
162
|
this.extension.displayName || this.extension.identifier.id
|
|
163
163
|
)),
|
|
164
164
|
buttons: [{
|
|
165
|
-
label: ( localize(
|
|
165
|
+
label: ( localize(7638, "Install Anyway")),
|
|
166
166
|
run: () => {
|
|
167
167
|
const installAction = this.instantiationService.createInstance(InstallAction, { donotVerifySignature: true });
|
|
168
168
|
installAction.extension = this.extension;
|
|
169
169
|
return installAction.run();
|
|
170
170
|
}
|
|
171
171
|
}],
|
|
172
|
-
cancelButton: ( localize(
|
|
172
|
+
cancelButton: ( localize(7636, "Cancel"))
|
|
173
173
|
});
|
|
174
174
|
return;
|
|
175
175
|
}
|
|
176
176
|
const operationMessage = this.installOperation === InstallOperation.Update ? ( localize(
|
|
177
|
-
|
|
177
|
+
7639,
|
|
178
178
|
"Error while updating '{0}' extension.",
|
|
179
179
|
this.extension.displayName || this.extension.identifier.id
|
|
180
180
|
))
|
|
181
181
|
: ( localize(
|
|
182
|
-
|
|
182
|
+
7640,
|
|
183
183
|
"Error while installing '{0}' extension.",
|
|
184
184
|
this.extension.displayName || this.extension.identifier.id
|
|
185
185
|
));
|
|
@@ -188,19 +188,19 @@ let PromptExtensionInstallFailureAction = class PromptExtensionInstallFailureAct
|
|
|
188
188
|
const downloadUrl = await this.getDownloadUrl();
|
|
189
189
|
if (downloadUrl) {
|
|
190
190
|
additionalMessage = ( localize(
|
|
191
|
-
|
|
191
|
+
7641,
|
|
192
192
|
"Please check the [log]({0}) for more details.",
|
|
193
193
|
`command:${showWindowLogActionId}`
|
|
194
194
|
));
|
|
195
195
|
promptChoices.push({
|
|
196
|
-
label: ( localize(
|
|
196
|
+
label: ( localize(7642, "Try Downloading Manually...")),
|
|
197
197
|
run: () => this.openerService.open(downloadUrl).then(() => {
|
|
198
198
|
this.notificationService.prompt(Severity$1.Info, ( localize(
|
|
199
|
-
|
|
199
|
+
7643,
|
|
200
200
|
'Once downloaded, please manually install the downloaded VSIX of \'{0}\'.',
|
|
201
201
|
this.extension.identifier.id
|
|
202
202
|
)), [{
|
|
203
|
-
label: ( localize(
|
|
203
|
+
label: ( localize(7644, "Install from VSIX...")),
|
|
204
204
|
run: () => this.commandService.executeCommand(SELECT_INSTALL_VSIX_EXTENSION_COMMAND_ID)
|
|
205
205
|
}]);
|
|
206
206
|
})
|
|
@@ -376,7 +376,7 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
376
376
|
this.updateLabel();
|
|
377
377
|
}
|
|
378
378
|
constructor(options, extensionsWorkbenchService, instantiationService, runtimeExtensionService, workbenchThemeService, labelService, dialogService, preferencesService, telemetryService, contextService) {
|
|
379
|
-
super('extensions.install', ( localize(
|
|
379
|
+
super('extensions.install', ( localize(7645, "Install")), InstallAction_1.CLASS, false);
|
|
380
380
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
381
381
|
this.instantiationService = instantiationService;
|
|
382
382
|
this.runtimeExtensionService = runtimeExtensionService;
|
|
@@ -430,7 +430,7 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
432
|
if (this.extension.deprecationInfo) {
|
|
433
|
-
let detail = ( localize(
|
|
433
|
+
let detail = ( localize(7646, "This extension is deprecated as it is no longer being maintained."));
|
|
434
434
|
let DeprecationChoice;
|
|
435
435
|
( ((function(DeprecationChoice) {
|
|
436
436
|
DeprecationChoice[DeprecationChoice["InstallAnyway"] = 0] = "InstallAnyway";
|
|
@@ -440,19 +440,19 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
440
440
|
})(DeprecationChoice || (DeprecationChoice = {}))));
|
|
441
441
|
const buttons = [
|
|
442
442
|
{
|
|
443
|
-
label: ( localize(
|
|
443
|
+
label: ( localize(7638, "Install Anyway")),
|
|
444
444
|
run: () => DeprecationChoice.InstallAnyway
|
|
445
445
|
}
|
|
446
446
|
];
|
|
447
447
|
if (this.extension.deprecationInfo.extension) {
|
|
448
448
|
detail = ( localize(
|
|
449
|
-
|
|
449
|
+
7647,
|
|
450
450
|
"This extension is deprecated. Use the {0} extension instead.",
|
|
451
451
|
this.extension.deprecationInfo.extension.displayName
|
|
452
452
|
));
|
|
453
453
|
const alternateExtension = this.extension.deprecationInfo.extension;
|
|
454
454
|
buttons.push({
|
|
455
|
-
label: ( localize(
|
|
455
|
+
label: ( localize(7648, "&&Open {0}", this.extension.deprecationInfo.extension.displayName)),
|
|
456
456
|
run: async () => {
|
|
457
457
|
const [extension] = await this.extensionsWorkbenchService.getExtensions([{ id: alternateExtension.id, preRelease: alternateExtension.preRelease }], CancellationToken.None);
|
|
458
458
|
await this.extensionsWorkbenchService.open(extension);
|
|
@@ -462,12 +462,12 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
462
462
|
}
|
|
463
463
|
else if (this.extension.deprecationInfo.settings) {
|
|
464
464
|
detail = ( localize(
|
|
465
|
-
|
|
465
|
+
7649,
|
|
466
466
|
"This extension is deprecated as this functionality is now built-in to VS Code."
|
|
467
467
|
));
|
|
468
468
|
const settings = this.extension.deprecationInfo.settings;
|
|
469
469
|
buttons.push({
|
|
470
|
-
label: ( localize(
|
|
470
|
+
label: ( localize(7650, "&&Configure Settings")),
|
|
471
471
|
run: async () => {
|
|
472
472
|
await this.preferencesService.openSettings({ query: ( (settings.map(setting => `@id:${setting}`))).join(' ') });
|
|
473
473
|
return DeprecationChoice.ConfigureSettings;
|
|
@@ -480,7 +480,7 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
480
480
|
const { result } = await this.dialogService.prompt({
|
|
481
481
|
type: Severity$1.Warning,
|
|
482
482
|
message: ( localize(
|
|
483
|
-
|
|
483
|
+
7651,
|
|
484
484
|
"Are you sure you want to install '{0}'?",
|
|
485
485
|
this.extension.displayName
|
|
486
486
|
)),
|
|
@@ -501,14 +501,14 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
501
501
|
}
|
|
502
502
|
this.extensionsWorkbenchService.open(this.extension, { showPreReleaseVersion: this.options.installPreReleaseVersion });
|
|
503
503
|
alert(( localize(
|
|
504
|
-
|
|
504
|
+
7652,
|
|
505
505
|
"Installing extension {0} started. An editor is now open with more details on this extension",
|
|
506
506
|
this.extension.displayName
|
|
507
507
|
)));
|
|
508
508
|
this.telemetryService.publicLog('extensions:action:install', { ...this.extension.telemetryData, actionId: this.id });
|
|
509
509
|
const extension = await this.install(this.extension);
|
|
510
510
|
if (extension?.local) {
|
|
511
|
-
alert(( localize(
|
|
511
|
+
alert(( localize(7653, "Installing extension {0} is completed.", this.extension.displayName)));
|
|
512
512
|
const runningExtension = await this.getRunningExtension(extension.local);
|
|
513
513
|
if (runningExtension && !(runningExtension.activationEvents && ( (runningExtension.activationEvents.some(activationEent => activationEent.startsWith('onLanguage')))))) {
|
|
514
514
|
const action = await this.getThemeAction(extension);
|
|
@@ -573,15 +573,15 @@ let InstallAction = class InstallAction extends ExtensionAction {
|
|
|
573
573
|
}
|
|
574
574
|
getLabel(primary) {
|
|
575
575
|
if (this.extension?.isWorkspaceScoped && this.extension.resourceExtension && this.contextService.isInsideWorkspace(this.extension.resourceExtension.location)) {
|
|
576
|
-
return ( localize(
|
|
576
|
+
return ( localize(7654, "Install Workspace Extension"));
|
|
577
577
|
}
|
|
578
578
|
if (this.options.installPreReleaseVersion && this.extension?.hasPreReleaseVersion) {
|
|
579
|
-
return primary ? ( localize(
|
|
579
|
+
return primary ? ( localize(7655, "Install Pre-Release")) : ( localize(7656, "Install Pre-Release Version"));
|
|
580
580
|
}
|
|
581
581
|
if (this.extension?.hasPreReleaseVersion) {
|
|
582
|
-
return primary ? ( localize(
|
|
582
|
+
return primary ? ( localize(7645, "Install")) : ( localize(7657, "Install Release Version"));
|
|
583
583
|
}
|
|
584
|
-
return ( localize(
|
|
584
|
+
return ( localize(7645, "Install"));
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
InstallAction = InstallAction_1 = ( (__decorate([
|
|
@@ -617,7 +617,7 @@ InstallDropdownAction = ( (__decorate([
|
|
|
617
617
|
( (__param(1, IExtensionsWorkbenchService)))
|
|
618
618
|
], InstallDropdownAction)));
|
|
619
619
|
class InstallingLabelAction extends ExtensionAction {
|
|
620
|
-
static { this.LABEL = ( localize(
|
|
620
|
+
static { this.LABEL = ( localize(7658, "Installing")); }
|
|
621
621
|
static { this.CLASS = `${ExtensionAction.LABEL_ACTION_CLASS} install installing`; }
|
|
622
622
|
constructor() {
|
|
623
623
|
super('extension.installing', InstallingLabelAction.LABEL, InstallingLabelAction.CLASS, false);
|
|
@@ -628,8 +628,8 @@ class InstallingLabelAction extends ExtensionAction {
|
|
|
628
628
|
}
|
|
629
629
|
let InstallInOtherServerAction = class InstallInOtherServerAction extends ExtensionAction {
|
|
630
630
|
static { InstallInOtherServerAction_1 = this; }
|
|
631
|
-
static { this.INSTALL_LABEL = ( localize(
|
|
632
|
-
static { this.INSTALLING_LABEL = ( localize(
|
|
631
|
+
static { this.INSTALL_LABEL = ( localize(7645, "Install")); }
|
|
632
|
+
static { this.INSTALLING_LABEL = ( localize(7658, "Installing")); }
|
|
633
633
|
static { this.Class = `${ExtensionAction.LABEL_ACTION_CLASS} prominent install-other-server`; }
|
|
634
634
|
static { this.InstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} install-other-server installing`; }
|
|
635
635
|
constructor(id, server, canInstallAnyWhere, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService) {
|
|
@@ -703,7 +703,7 @@ let InstallInOtherServerAction = class InstallInOtherServerAction extends Extens
|
|
|
703
703
|
}
|
|
704
704
|
this.extensionsWorkbenchService.open(this.extension);
|
|
705
705
|
alert(( localize(
|
|
706
|
-
|
|
706
|
+
7652,
|
|
707
707
|
"Installing extension {0} started. An editor is now open with more details on this extension",
|
|
708
708
|
this.extension.displayName
|
|
709
709
|
)));
|
|
@@ -722,7 +722,7 @@ let RemoteInstallAction = class RemoteInstallAction extends InstallInOtherServer
|
|
|
722
722
|
getInstallLabel() {
|
|
723
723
|
return this.extensionManagementServerService.remoteExtensionManagementServer
|
|
724
724
|
? ( localize(
|
|
725
|
-
|
|
725
|
+
7659,
|
|
726
726
|
"Install in {0}",
|
|
727
727
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
728
728
|
))
|
|
@@ -739,7 +739,7 @@ let LocalInstallAction = class LocalInstallAction extends InstallInOtherServerAc
|
|
|
739
739
|
super(`extensions.localinstall`, extensionManagementServerService.localExtensionManagementServer, false, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService);
|
|
740
740
|
}
|
|
741
741
|
getInstallLabel() {
|
|
742
|
-
return ( localize(
|
|
742
|
+
return ( localize(7660, "Install Locally"));
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
LocalInstallAction = ( (__decorate([
|
|
@@ -752,7 +752,7 @@ let WebInstallAction = class WebInstallAction extends InstallInOtherServerAction
|
|
|
752
752
|
super(`extensions.webInstall`, extensionManagementServerService.webExtensionManagementServer, false, extensionsWorkbenchService, extensionManagementServerService, extensionManifestPropertiesService);
|
|
753
753
|
}
|
|
754
754
|
getInstallLabel() {
|
|
755
|
-
return ( localize(
|
|
755
|
+
return ( localize(7661, "Install in Browser"));
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
WebInstallAction = ( (__decorate([
|
|
@@ -762,8 +762,8 @@ WebInstallAction = ( (__decorate([
|
|
|
762
762
|
], WebInstallAction)));
|
|
763
763
|
let UninstallAction = class UninstallAction extends ExtensionAction {
|
|
764
764
|
static { UninstallAction_1 = this; }
|
|
765
|
-
static { this.UninstallLabel = ( localize(
|
|
766
|
-
static { this.UninstallingLabel = ( localize(
|
|
765
|
+
static { this.UninstallLabel = ( localize(7662, "Uninstall")); }
|
|
766
|
+
static { this.UninstallingLabel = ( localize(7663, "Uninstalling")); }
|
|
767
767
|
static { this.UninstallClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall`; }
|
|
768
768
|
static { this.UnInstallingClass = `${ExtensionAction.LABEL_ACTION_CLASS} uninstall uninstalling`; }
|
|
769
769
|
constructor(extensionsWorkbenchService, dialogService) {
|
|
@@ -801,11 +801,11 @@ let UninstallAction = class UninstallAction extends ExtensionAction {
|
|
|
801
801
|
if (!this.extension) {
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
|
-
alert(( localize(
|
|
804
|
+
alert(( localize(7664, "Uninstalling extension {0} started.", this.extension.displayName)));
|
|
805
805
|
try {
|
|
806
806
|
await this.extensionsWorkbenchService.uninstall(this.extension);
|
|
807
807
|
alert(( localize(
|
|
808
|
-
|
|
808
|
+
7665,
|
|
809
809
|
"Please reload Visual Studio Code to complete the uninstallation of the extension {0}.",
|
|
810
810
|
this.extension.displayName
|
|
811
811
|
)));
|
|
@@ -826,7 +826,7 @@ let UpdateAction = class UpdateAction extends ExtensionAction {
|
|
|
826
826
|
static { this.EnabledClass = `${this.LABEL_ACTION_CLASS} prominent update`; }
|
|
827
827
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
828
828
|
constructor(verbose, extensionsWorkbenchService, dialogService, openerService, instantiationService) {
|
|
829
|
-
super(`extensions.update`, ( localize(
|
|
829
|
+
super(`extensions.update`, ( localize(7666, "Update")), UpdateAction_1.DisabledClass, false);
|
|
830
830
|
this.verbose = verbose;
|
|
831
831
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
832
832
|
this.dialogService = dialogService;
|
|
@@ -838,7 +838,7 @@ let UpdateAction = class UpdateAction extends ExtensionAction {
|
|
|
838
838
|
update() {
|
|
839
839
|
this.updateThrottler.queue(() => this.computeAndUpdateEnablement());
|
|
840
840
|
if (this.extension) {
|
|
841
|
-
this.label = this.verbose ? ( localize(
|
|
841
|
+
this.label = this.verbose ? ( localize(7667, "Update to v{0}", this.extension.latestVersion)) : ( localize(7666, "Update"));
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
async computeAndUpdateEnablement() {
|
|
@@ -863,16 +863,16 @@ let UpdateAction = class UpdateAction extends ExtensionAction {
|
|
|
863
863
|
if (consent) {
|
|
864
864
|
const { result } = await this.dialogService.prompt({
|
|
865
865
|
type: 'warning',
|
|
866
|
-
title: ( localize(
|
|
867
|
-
message: ( localize(
|
|
866
|
+
title: ( localize(7668, "Update {0} Extension", this.extension.displayName)),
|
|
867
|
+
message: ( localize(7669, "{0}\n\nWould you like to update the extension?", consent)),
|
|
868
868
|
buttons: [{
|
|
869
|
-
label: ( localize(
|
|
869
|
+
label: ( localize(7666, "Update")),
|
|
870
870
|
run: () => 'update'
|
|
871
871
|
}, {
|
|
872
|
-
label: ( localize(
|
|
872
|
+
label: ( localize(7670, "Review")),
|
|
873
873
|
run: () => 'review'
|
|
874
874
|
}, {
|
|
875
|
-
label: ( localize(
|
|
875
|
+
label: ( localize(7636, "Cancel")),
|
|
876
876
|
run: () => 'cancel'
|
|
877
877
|
}]
|
|
878
878
|
});
|
|
@@ -890,7 +890,7 @@ let UpdateAction = class UpdateAction extends ExtensionAction {
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
alert(( localize(
|
|
893
|
-
|
|
893
|
+
7671,
|
|
894
894
|
"Updating extension {0} to version {1} started.",
|
|
895
895
|
this.extension.displayName,
|
|
896
896
|
this.extension.latestVersion
|
|
@@ -901,7 +901,7 @@ let UpdateAction = class UpdateAction extends ExtensionAction {
|
|
|
901
901
|
try {
|
|
902
902
|
await this.extensionsWorkbenchService.install(extension, extension.local?.preRelease ? { installPreReleaseVersion: true } : undefined);
|
|
903
903
|
alert(( localize(
|
|
904
|
-
|
|
904
|
+
7672,
|
|
905
905
|
"Updating extension {0} to version {1} completed.",
|
|
906
906
|
extension.displayName,
|
|
907
907
|
extension.latestVersion
|
|
@@ -921,7 +921,7 @@ UpdateAction = UpdateAction_1 = ( (__decorate([
|
|
|
921
921
|
let ToggleAutoUpdateForExtensionAction = class ToggleAutoUpdateForExtensionAction extends ExtensionAction {
|
|
922
922
|
static { ToggleAutoUpdateForExtensionAction_1 = this; }
|
|
923
923
|
static { this.ID = 'workbench.extensions.action.toggleAutoUpdateForExtension'; }
|
|
924
|
-
static { this.LABEL = ( localize2(
|
|
924
|
+
static { this.LABEL = ( localize2(7673, "Auto Update")); }
|
|
925
925
|
static { this.EnabledClass = `${ExtensionAction.EXTENSION_ACTION_CLASS} auto-update`; }
|
|
926
926
|
static { this.DisabledClass = `${this.EnabledClass} hide`; }
|
|
927
927
|
constructor(extensionsWorkbenchService, extensionEnablementService, configurationService) {
|
|
@@ -961,10 +961,10 @@ let ToggleAutoUpdateForExtensionAction = class ToggleAutoUpdateForExtensionActio
|
|
|
961
961
|
const enableAutoUpdate = !this.extensionsWorkbenchService.isAutoUpdateEnabledFor(this.extension);
|
|
962
962
|
await this.extensionsWorkbenchService.updateAutoUpdateEnablementFor(this.extension, enableAutoUpdate);
|
|
963
963
|
if (enableAutoUpdate) {
|
|
964
|
-
alert(( localize(
|
|
964
|
+
alert(( localize(7674, "Enabled auto updates for", this.extension.displayName)));
|
|
965
965
|
}
|
|
966
966
|
else {
|
|
967
|
-
alert(( localize(
|
|
967
|
+
alert(( localize(7675, "Disabled auto updates for", this.extension.displayName)));
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
970
|
};
|
|
@@ -976,7 +976,7 @@ ToggleAutoUpdateForExtensionAction = ToggleAutoUpdateForExtensionAction_1 = ( (_
|
|
|
976
976
|
let ToggleAutoUpdatesForPublisherAction = class ToggleAutoUpdatesForPublisherAction extends ExtensionAction {
|
|
977
977
|
static { ToggleAutoUpdatesForPublisherAction_1 = this; }
|
|
978
978
|
static { this.ID = 'workbench.extensions.action.toggleAutoUpdatesForPublisher'; }
|
|
979
|
-
static { this.LABEL = ( localize(
|
|
979
|
+
static { this.LABEL = ( localize(7676, "Auto Update All (From Publisher)")); }
|
|
980
980
|
constructor(extensionsWorkbenchService) {
|
|
981
981
|
super(ToggleAutoUpdatesForPublisherAction_1.ID, ToggleAutoUpdatesForPublisherAction_1.LABEL);
|
|
982
982
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -987,17 +987,17 @@ let ToggleAutoUpdatesForPublisherAction = class ToggleAutoUpdatesForPublisherAct
|
|
|
987
987
|
return;
|
|
988
988
|
}
|
|
989
989
|
alert(( localize(
|
|
990
|
-
|
|
990
|
+
7677,
|
|
991
991
|
"Ignoring updates published by {0}.",
|
|
992
992
|
this.extension.publisherDisplayName
|
|
993
993
|
)));
|
|
994
994
|
const enableAutoUpdate = !this.extensionsWorkbenchService.isAutoUpdateEnabledFor(this.extension.publisher);
|
|
995
995
|
await this.extensionsWorkbenchService.updateAutoUpdateEnablementFor(this.extension.publisher, enableAutoUpdate);
|
|
996
996
|
if (enableAutoUpdate) {
|
|
997
|
-
alert(( localize(
|
|
997
|
+
alert(( localize(7674, "Enabled auto updates for", this.extension.displayName)));
|
|
998
998
|
}
|
|
999
999
|
else {
|
|
1000
|
-
alert(( localize(
|
|
1000
|
+
alert(( localize(7675, "Disabled auto updates for", this.extension.displayName)));
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
};
|
|
@@ -1009,7 +1009,7 @@ let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction ex
|
|
|
1009
1009
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} migrate`; }
|
|
1010
1010
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1011
1011
|
constructor(small, extensionsWorkbenchService) {
|
|
1012
|
-
super('extensionsAction.migrateDeprecatedExtension', ( localize(
|
|
1012
|
+
super('extensionsAction.migrateDeprecatedExtension', ( localize(7678, "Migrate")), MigrateDeprecatedExtensionAction_1.DisabledClass, false);
|
|
1013
1013
|
this.small = small;
|
|
1014
1014
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1015
1015
|
this.update();
|
|
@@ -1033,11 +1033,11 @@ let MigrateDeprecatedExtensionAction = class MigrateDeprecatedExtensionAction ex
|
|
|
1033
1033
|
this.enabled = true;
|
|
1034
1034
|
this.class = MigrateDeprecatedExtensionAction_1.EnabledClass;
|
|
1035
1035
|
this.tooltip = ( localize(
|
|
1036
|
-
|
|
1036
|
+
7679,
|
|
1037
1037
|
"Migrate to {0}",
|
|
1038
1038
|
this.extension.deprecationInfo.extension.displayName
|
|
1039
1039
|
));
|
|
1040
|
-
this.label = this.small ? ( localize(
|
|
1040
|
+
this.label = this.small ? ( localize(7680, "Migrate")) : this.tooltip;
|
|
1041
1041
|
}
|
|
1042
1042
|
async run() {
|
|
1043
1043
|
if (!this.extension?.deprecationInfo?.extension) {
|
|
@@ -1185,7 +1185,7 @@ let ManageExtensionAction = class ManageExtensionAction extends DropDownExtensio
|
|
|
1185
1185
|
super(ManageExtensionAction_1.ID, '', '', true, instantiationService);
|
|
1186
1186
|
this.extensionService = extensionService;
|
|
1187
1187
|
this.contextKeyService = contextKeyService;
|
|
1188
|
-
this.tooltip = ( localize(
|
|
1188
|
+
this.tooltip = ( localize(7681, "Manage"));
|
|
1189
1189
|
this.update();
|
|
1190
1190
|
}
|
|
1191
1191
|
async getActionGroups() {
|
|
@@ -1256,7 +1256,7 @@ class ExtensionEditorManageExtensionAction extends DropDownExtensionAction {
|
|
|
1256
1256
|
constructor(contextKeyService, instantiationService) {
|
|
1257
1257
|
super('extensionEditor.manageExtension', '', `${ExtensionAction.ICON_ACTION_CLASS} manage ${ThemeIcon.asClassName(manageExtensionIcon)}`, true, instantiationService);
|
|
1258
1258
|
this.contextKeyService = contextKeyService;
|
|
1259
|
-
this.tooltip = ( localize(
|
|
1259
|
+
this.tooltip = ( localize(7681, "Manage"));
|
|
1260
1260
|
}
|
|
1261
1261
|
update() { }
|
|
1262
1262
|
async run() {
|
|
@@ -1319,7 +1319,7 @@ MenuItemExtensionAction = ( (__decorate([
|
|
|
1319
1319
|
let TogglePreReleaseExtensionAction = class TogglePreReleaseExtensionAction extends ExtensionAction {
|
|
1320
1320
|
static { TogglePreReleaseExtensionAction_1 = this; }
|
|
1321
1321
|
static { this.ID = 'workbench.extensions.action.togglePreRlease'; }
|
|
1322
|
-
static { this.LABEL = ( localize(
|
|
1322
|
+
static { this.LABEL = ( localize(7682, "Pre-Release")); }
|
|
1323
1323
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} pre-release`; }
|
|
1324
1324
|
static { this.DisabledClass = `${this.EnabledClass} hide`; }
|
|
1325
1325
|
constructor(extensionsWorkbenchService) {
|
|
@@ -1354,13 +1354,13 @@ let TogglePreReleaseExtensionAction = class TogglePreReleaseExtensionAction exte
|
|
|
1354
1354
|
this.enabled = true;
|
|
1355
1355
|
this.class = TogglePreReleaseExtensionAction_1.EnabledClass;
|
|
1356
1356
|
if (this.extension.preRelease) {
|
|
1357
|
-
this.label = ( localize(
|
|
1358
|
-
this.tooltip = ( localize(
|
|
1357
|
+
this.label = ( localize(7683, "Switch to Release Version"));
|
|
1358
|
+
this.tooltip = ( localize(7684, "This will switch and enable updates to release versions"));
|
|
1359
1359
|
}
|
|
1360
1360
|
else {
|
|
1361
|
-
this.label = ( localize(
|
|
1361
|
+
this.label = ( localize(7685, "Switch to Pre-Release Version"));
|
|
1362
1362
|
this.tooltip = ( localize(
|
|
1363
|
-
|
|
1363
|
+
7686,
|
|
1364
1364
|
"This will switch to pre-release version and enable updates to latest version always"
|
|
1365
1365
|
));
|
|
1366
1366
|
}
|
|
@@ -1379,7 +1379,7 @@ TogglePreReleaseExtensionAction = TogglePreReleaseExtensionAction_1 = ( (__decor
|
|
|
1379
1379
|
let InstallAnotherVersionAction = class InstallAnotherVersionAction extends ExtensionAction {
|
|
1380
1380
|
static { InstallAnotherVersionAction_1 = this; }
|
|
1381
1381
|
static { this.ID = 'workbench.extensions.action.install.anotherVersion'; }
|
|
1382
|
-
static { this.LABEL = ( localize(
|
|
1382
|
+
static { this.LABEL = ( localize(7687, "Install Specific Version...")); }
|
|
1383
1383
|
constructor(extension, whenInstalled, extensionsWorkbenchService, extensionManagementService, extensionGalleryService, quickInputService, instantiationService, dialogService) {
|
|
1384
1384
|
super(InstallAnotherVersionAction_1.ID, InstallAnotherVersionAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1385
1385
|
this.whenInstalled = whenInstalled;
|
|
@@ -1408,20 +1408,20 @@ let InstallAnotherVersionAction = class InstallAnotherVersionAction extends Exte
|
|
|
1408
1408
|
const targetPlatform = this.extension.server ? await this.extension.server.extensionManagementService.getTargetPlatform() : await this.extensionManagementService.getTargetPlatform();
|
|
1409
1409
|
const allVersions = await this.extensionGalleryService.getAllCompatibleVersions(this.extension.identifier, this.extension.local?.preRelease ?? this.extension.gallery?.properties.isPreReleaseVersion ?? false, targetPlatform);
|
|
1410
1410
|
if (!allVersions.length) {
|
|
1411
|
-
await this.dialogService.info(( localize(
|
|
1411
|
+
await this.dialogService.info(( localize(7688, "This extension has no other versions.")));
|
|
1412
1412
|
return;
|
|
1413
1413
|
}
|
|
1414
1414
|
const picks = ( (allVersions.map((v, i) => {
|
|
1415
1415
|
return {
|
|
1416
1416
|
id: v.version,
|
|
1417
1417
|
label: v.version,
|
|
1418
|
-
description: `${fromNow(( (new Date(Date.parse(v.date)))), true)}${v.isPreReleaseVersion ? ` (${( localize(
|
|
1418
|
+
description: `${fromNow(( (new Date(Date.parse(v.date)))), true)}${v.isPreReleaseVersion ? ` (${( localize(7689, "pre-release"))})` : ''}${v.version === this.extension?.local?.manifest.version ? ` (${( localize(7690, "current"))})` : ''}`,
|
|
1419
1419
|
ariaLabel: `${v.isPreReleaseVersion ? 'Pre-Release version' : 'Release version'} ${v.version}`,
|
|
1420
1420
|
isPreReleaseVersion: v.isPreReleaseVersion
|
|
1421
1421
|
};
|
|
1422
1422
|
})));
|
|
1423
1423
|
const pick = await this.quickInputService.pick(picks, {
|
|
1424
|
-
placeHolder: ( localize(
|
|
1424
|
+
placeHolder: ( localize(7691, "Select Version to Install")),
|
|
1425
1425
|
matchOnDetail: true
|
|
1426
1426
|
});
|
|
1427
1427
|
if (pick) {
|
|
@@ -1449,12 +1449,12 @@ InstallAnotherVersionAction = InstallAnotherVersionAction_1 = ( (__decorate([
|
|
|
1449
1449
|
let EnableForWorkspaceAction = class EnableForWorkspaceAction extends ExtensionAction {
|
|
1450
1450
|
static { EnableForWorkspaceAction_1 = this; }
|
|
1451
1451
|
static { this.ID = 'extensions.enableForWorkspace'; }
|
|
1452
|
-
static { this.LABEL = ( localize(
|
|
1452
|
+
static { this.LABEL = ( localize(7692, "Enable (Workspace)")); }
|
|
1453
1453
|
constructor(extensionsWorkbenchService, extensionEnablementService) {
|
|
1454
1454
|
super(EnableForWorkspaceAction_1.ID, EnableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1455
1455
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1456
1456
|
this.extensionEnablementService = extensionEnablementService;
|
|
1457
|
-
this.tooltip = ( localize(
|
|
1457
|
+
this.tooltip = ( localize(7693, "Enable this extension only in this workspace"));
|
|
1458
1458
|
this.update();
|
|
1459
1459
|
}
|
|
1460
1460
|
update() {
|
|
@@ -1479,12 +1479,12 @@ EnableForWorkspaceAction = EnableForWorkspaceAction_1 = ( (__decorate([
|
|
|
1479
1479
|
let EnableGloballyAction = class EnableGloballyAction extends ExtensionAction {
|
|
1480
1480
|
static { EnableGloballyAction_1 = this; }
|
|
1481
1481
|
static { this.ID = 'extensions.enableGlobally'; }
|
|
1482
|
-
static { this.LABEL = ( localize(
|
|
1482
|
+
static { this.LABEL = ( localize(7694, "Enable")); }
|
|
1483
1483
|
constructor(extensionsWorkbenchService, extensionEnablementService) {
|
|
1484
1484
|
super(EnableGloballyAction_1.ID, EnableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1485
1485
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1486
1486
|
this.extensionEnablementService = extensionEnablementService;
|
|
1487
|
-
this.tooltip = ( localize(
|
|
1487
|
+
this.tooltip = ( localize(7695, "Enable this extension"));
|
|
1488
1488
|
this.update();
|
|
1489
1489
|
}
|
|
1490
1490
|
update() {
|
|
@@ -1509,14 +1509,14 @@ EnableGloballyAction = EnableGloballyAction_1 = ( (__decorate([
|
|
|
1509
1509
|
let DisableForWorkspaceAction = class DisableForWorkspaceAction extends ExtensionAction {
|
|
1510
1510
|
static { DisableForWorkspaceAction_1 = this; }
|
|
1511
1511
|
static { this.ID = 'extensions.disableForWorkspace'; }
|
|
1512
|
-
static { this.LABEL = ( localize(
|
|
1512
|
+
static { this.LABEL = ( localize(7696, "Disable (Workspace)")); }
|
|
1513
1513
|
constructor(workspaceContextService, extensionsWorkbenchService, extensionEnablementService, extensionService) {
|
|
1514
1514
|
super(DisableForWorkspaceAction_1.ID, DisableForWorkspaceAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1515
1515
|
this.workspaceContextService = workspaceContextService;
|
|
1516
1516
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1517
1517
|
this.extensionEnablementService = extensionEnablementService;
|
|
1518
1518
|
this.extensionService = extensionService;
|
|
1519
|
-
this.tooltip = ( localize(
|
|
1519
|
+
this.tooltip = ( localize(7697, "Disable this extension only in this workspace"));
|
|
1520
1520
|
this.update();
|
|
1521
1521
|
this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
|
|
1522
1522
|
}
|
|
@@ -1546,13 +1546,13 @@ DisableForWorkspaceAction = DisableForWorkspaceAction_1 = ( (__decorate([
|
|
|
1546
1546
|
let DisableGloballyAction = class DisableGloballyAction extends ExtensionAction {
|
|
1547
1547
|
static { DisableGloballyAction_1 = this; }
|
|
1548
1548
|
static { this.ID = 'extensions.disableGlobally'; }
|
|
1549
|
-
static { this.LABEL = ( localize(
|
|
1549
|
+
static { this.LABEL = ( localize(7698, "Disable")); }
|
|
1550
1550
|
constructor(extensionsWorkbenchService, extensionEnablementService, extensionService) {
|
|
1551
1551
|
super(DisableGloballyAction_1.ID, DisableGloballyAction_1.LABEL, ExtensionAction.LABEL_ACTION_CLASS);
|
|
1552
1552
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
1553
1553
|
this.extensionEnablementService = extensionEnablementService;
|
|
1554
1554
|
this.extensionService = extensionService;
|
|
1555
|
-
this.tooltip = ( localize(
|
|
1555
|
+
this.tooltip = ( localize(7699, "Disable this extension"));
|
|
1556
1556
|
this.update();
|
|
1557
1557
|
this._register(this.extensionService.onDidChangeExtensions(() => this.update()));
|
|
1558
1558
|
}
|
|
@@ -1639,10 +1639,10 @@ let ExtensionRuntimeStateAction = class ExtensionRuntimeStateAction extends Exte
|
|
|
1639
1639
|
this.enabled = true;
|
|
1640
1640
|
this.class = ExtensionRuntimeStateAction_1.EnabledClass;
|
|
1641
1641
|
this.tooltip = runtimeState.reason;
|
|
1642
|
-
this.label = runtimeState.action === ExtensionRuntimeActionType.ReloadWindow ? ( localize(
|
|
1643
|
-
: runtimeState.action === ExtensionRuntimeActionType.RestartExtensions ? ( localize(
|
|
1644
|
-
: runtimeState.action === ExtensionRuntimeActionType.QuitAndInstall ? ( localize(
|
|
1645
|
-
: runtimeState.action === ExtensionRuntimeActionType.ApplyUpdate || runtimeState.action === ExtensionRuntimeActionType.DownloadUpdate ? ( localize(
|
|
1642
|
+
this.label = runtimeState.action === ExtensionRuntimeActionType.ReloadWindow ? ( localize(7700, 'Reload Window'))
|
|
1643
|
+
: runtimeState.action === ExtensionRuntimeActionType.RestartExtensions ? ( localize(7701, 'Restart Extensions'))
|
|
1644
|
+
: runtimeState.action === ExtensionRuntimeActionType.QuitAndInstall ? ( localize(7702, 'Restart to Update'))
|
|
1645
|
+
: runtimeState.action === ExtensionRuntimeActionType.ApplyUpdate || runtimeState.action === ExtensionRuntimeActionType.DownloadUpdate ? ( localize(7703, 'Update {0}', this.productService.nameShort)) : '';
|
|
1646
1646
|
}
|
|
1647
1647
|
async run() {
|
|
1648
1648
|
const runtimeState = this.extension?.runtimeState;
|
|
@@ -1688,7 +1688,7 @@ function getQuickPickEntries(themes, currentTheme, extension, showCurrentTheme)
|
|
|
1688
1688
|
}
|
|
1689
1689
|
}
|
|
1690
1690
|
if (showCurrentTheme) {
|
|
1691
|
-
picks.push({ type: 'separator', label: ( localize(
|
|
1691
|
+
picks.push({ type: 'separator', label: ( localize(7690, "current")) });
|
|
1692
1692
|
picks.push({ label: currentTheme.label, id: currentTheme.id });
|
|
1693
1693
|
}
|
|
1694
1694
|
return picks;
|
|
@@ -1696,7 +1696,7 @@ function getQuickPickEntries(themes, currentTheme, extension, showCurrentTheme)
|
|
|
1696
1696
|
let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
|
|
1697
1697
|
static { SetColorThemeAction_1 = this; }
|
|
1698
1698
|
static { this.ID = 'workbench.extensions.action.setColorTheme'; }
|
|
1699
|
-
static { this.TITLE = ( localize2(
|
|
1699
|
+
static { this.TITLE = ( localize2(7704, 'Set Color Theme')); }
|
|
1700
1700
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1701
1701
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1702
1702
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -1725,7 +1725,7 @@ let SetColorThemeAction = class SetColorThemeAction extends ExtensionAction {
|
|
|
1725
1725
|
const delayer = ( (new Delayer(100)));
|
|
1726
1726
|
const picks = getQuickPickEntries(colorThemes, currentTheme, this.extension, showCurrentTheme);
|
|
1727
1727
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
1728
|
-
placeHolder: ( localize(
|
|
1728
|
+
placeHolder: ( localize(7705, "Select Color Theme")),
|
|
1729
1729
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setColorTheme(item.id, undefined)),
|
|
1730
1730
|
ignoreFocusLost
|
|
1731
1731
|
});
|
|
@@ -1741,7 +1741,7 @@ SetColorThemeAction = SetColorThemeAction_1 = ( (__decorate([
|
|
|
1741
1741
|
let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionAction {
|
|
1742
1742
|
static { SetFileIconThemeAction_1 = this; }
|
|
1743
1743
|
static { this.ID = 'workbench.extensions.action.setFileIconTheme'; }
|
|
1744
|
-
static { this.TITLE = ( localize2(
|
|
1744
|
+
static { this.TITLE = ( localize2(7706, 'Set File Icon Theme')); }
|
|
1745
1745
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1746
1746
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1747
1747
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -1770,7 +1770,7 @@ let SetFileIconThemeAction = class SetFileIconThemeAction extends ExtensionActio
|
|
|
1770
1770
|
const delayer = ( (new Delayer(100)));
|
|
1771
1771
|
const picks = getQuickPickEntries(fileIconThemes, currentTheme, this.extension, showCurrentTheme);
|
|
1772
1772
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
1773
|
-
placeHolder: ( localize(
|
|
1773
|
+
placeHolder: ( localize(7707, "Select File Icon Theme")),
|
|
1774
1774
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setFileIconTheme(item.id, undefined)),
|
|
1775
1775
|
ignoreFocusLost
|
|
1776
1776
|
});
|
|
@@ -1786,7 +1786,7 @@ SetFileIconThemeAction = SetFileIconThemeAction_1 = ( (__decorate([
|
|
|
1786
1786
|
let SetProductIconThemeAction = class SetProductIconThemeAction extends ExtensionAction {
|
|
1787
1787
|
static { SetProductIconThemeAction_1 = this; }
|
|
1788
1788
|
static { this.ID = 'workbench.extensions.action.setProductIconTheme'; }
|
|
1789
|
-
static { this.TITLE = ( localize2(
|
|
1789
|
+
static { this.TITLE = ( localize2(7708, 'Set Product Icon Theme')); }
|
|
1790
1790
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} theme`; }
|
|
1791
1791
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1792
1792
|
constructor(extensionService, workbenchThemeService, quickInputService, extensionEnablementService) {
|
|
@@ -1815,7 +1815,7 @@ let SetProductIconThemeAction = class SetProductIconThemeAction extends Extensio
|
|
|
1815
1815
|
const delayer = ( (new Delayer(100)));
|
|
1816
1816
|
const picks = getQuickPickEntries(productIconThemes, currentTheme, this.extension, showCurrentTheme);
|
|
1817
1817
|
const pickedTheme = await this.quickInputService.pick(picks, {
|
|
1818
|
-
placeHolder: ( localize(
|
|
1818
|
+
placeHolder: ( localize(7709, "Select Product Icon Theme")),
|
|
1819
1819
|
onDidFocus: item => delayer.trigger(() => this.workbenchThemeService.setProductIconTheme(item.id, undefined)),
|
|
1820
1820
|
ignoreFocusLost
|
|
1821
1821
|
});
|
|
@@ -1831,7 +1831,7 @@ SetProductIconThemeAction = SetProductIconThemeAction_1 = ( (__decorate([
|
|
|
1831
1831
|
let SetLanguageAction = class SetLanguageAction extends ExtensionAction {
|
|
1832
1832
|
static { SetLanguageAction_1 = this; }
|
|
1833
1833
|
static { this.ID = 'workbench.extensions.action.setDisplayLanguage'; }
|
|
1834
|
-
static { this.TITLE = ( localize2(
|
|
1834
|
+
static { this.TITLE = ( localize2(7710, 'Set Display Language')); }
|
|
1835
1835
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
|
|
1836
1836
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1837
1837
|
constructor(extensionsWorkbenchService) {
|
|
@@ -1864,7 +1864,7 @@ SetLanguageAction = SetLanguageAction_1 = ( (__decorate([
|
|
|
1864
1864
|
let ClearLanguageAction = class ClearLanguageAction extends ExtensionAction {
|
|
1865
1865
|
static { ClearLanguageAction_1 = this; }
|
|
1866
1866
|
static { this.ID = 'workbench.extensions.action.clearLanguage'; }
|
|
1867
|
-
static { this.TITLE = ( localize2(
|
|
1867
|
+
static { this.TITLE = ( localize2(7711, 'Clear Display Language')); }
|
|
1868
1868
|
static { this.EnabledClass = `${ExtensionAction.LABEL_ACTION_CLASS} language`; }
|
|
1869
1869
|
static { this.DisabledClass = `${this.EnabledClass} disabled`; }
|
|
1870
1870
|
constructor(extensionsWorkbenchService, localeService) {
|
|
@@ -1899,7 +1899,7 @@ ClearLanguageAction = ClearLanguageAction_1 = ( (__decorate([
|
|
|
1899
1899
|
let ShowRecommendedExtensionAction = class ShowRecommendedExtensionAction extends Action {
|
|
1900
1900
|
static { ShowRecommendedExtensionAction_1 = this; }
|
|
1901
1901
|
static { this.ID = 'workbench.extensions.action.showRecommendedExtension'; }
|
|
1902
|
-
static { this.LABEL = ( localize(
|
|
1902
|
+
static { this.LABEL = ( localize(7712, "Show Recommended Extension")); }
|
|
1903
1903
|
constructor(extensionId, paneCompositeService, extensionWorkbenchService) {
|
|
1904
1904
|
super(ShowRecommendedExtensionAction_1.ID, ShowRecommendedExtensionAction_1.LABEL, undefined, false);
|
|
1905
1905
|
this.paneCompositeService = paneCompositeService;
|
|
@@ -1925,7 +1925,7 @@ ShowRecommendedExtensionAction = ShowRecommendedExtensionAction_1 = ( (__decorat
|
|
|
1925
1925
|
let InstallRecommendedExtensionAction = class InstallRecommendedExtensionAction extends Action {
|
|
1926
1926
|
static { InstallRecommendedExtensionAction_1 = this; }
|
|
1927
1927
|
static { this.ID = 'workbench.extensions.action.installRecommendedExtension'; }
|
|
1928
|
-
static { this.LABEL = ( localize(
|
|
1928
|
+
static { this.LABEL = ( localize(7713, "Install Recommended Extension")); }
|
|
1929
1929
|
constructor(extensionId, paneCompositeService, instantiationService, extensionWorkbenchService) {
|
|
1930
1930
|
super(InstallRecommendedExtensionAction_1.ID, InstallRecommendedExtensionAction_1.LABEL, undefined, false);
|
|
1931
1931
|
this.paneCompositeService = paneCompositeService;
|
|
@@ -1964,7 +1964,7 @@ let IgnoreExtensionRecommendationAction = class IgnoreExtensionRecommendationAct
|
|
|
1964
1964
|
this.extension = extension;
|
|
1965
1965
|
this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
|
|
1966
1966
|
this.class = IgnoreExtensionRecommendationAction_1.Class;
|
|
1967
|
-
this.tooltip = ( localize(
|
|
1967
|
+
this.tooltip = ( localize(7714, "Do not recommend this extension again"));
|
|
1968
1968
|
this.enabled = true;
|
|
1969
1969
|
}
|
|
1970
1970
|
run() {
|
|
@@ -1984,7 +1984,7 @@ let UndoIgnoreExtensionRecommendationAction = class UndoIgnoreExtensionRecommend
|
|
|
1984
1984
|
this.extension = extension;
|
|
1985
1985
|
this.extensionRecommendationsManagementService = extensionRecommendationsManagementService;
|
|
1986
1986
|
this.class = UndoIgnoreExtensionRecommendationAction_1.Class;
|
|
1987
|
-
this.tooltip = ( localize(
|
|
1987
|
+
this.tooltip = ( localize(7715, "Undo"));
|
|
1988
1988
|
this.enabled = true;
|
|
1989
1989
|
}
|
|
1990
1990
|
run() {
|
|
@@ -1997,7 +1997,7 @@ UndoIgnoreExtensionRecommendationAction = UndoIgnoreExtensionRecommendationActio
|
|
|
1997
1997
|
], UndoIgnoreExtensionRecommendationAction)));
|
|
1998
1998
|
let SearchExtensionsAction = class SearchExtensionsAction extends Action {
|
|
1999
1999
|
constructor(searchValue, paneCompositeService) {
|
|
2000
|
-
super('extensions.searchExtensions', ( localize(
|
|
2000
|
+
super('extensions.searchExtensions', ( localize(7716, "Search Extensions")), undefined, true);
|
|
2001
2001
|
this.searchValue = searchValue;
|
|
2002
2002
|
this.paneCompositeService = paneCompositeService;
|
|
2003
2003
|
}
|
|
@@ -2030,7 +2030,7 @@ let AbstractConfigureRecommendedExtensionsAction = class AbstractConfigureRecomm
|
|
|
2030
2030
|
selection
|
|
2031
2031
|
}
|
|
2032
2032
|
})), error => Promise.reject(( (new Error(( localize(
|
|
2033
|
-
|
|
2033
|
+
7717,
|
|
2034
2034
|
"Unable to create 'extensions.json' file inside the '.vscode' folder ({0}).",
|
|
2035
2035
|
error
|
|
2036
2036
|
)))))));
|
|
@@ -2098,7 +2098,7 @@ AbstractConfigureRecommendedExtensionsAction = ( (__decorate([
|
|
|
2098
2098
|
], AbstractConfigureRecommendedExtensionsAction)));
|
|
2099
2099
|
let ConfigureWorkspaceRecommendedExtensionsAction = class ConfigureWorkspaceRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
|
2100
2100
|
static { this.ID = 'workbench.extensions.action.configureWorkspaceRecommendedExtensions'; }
|
|
2101
|
-
static { this.LABEL = ( localize(
|
|
2101
|
+
static { this.LABEL = ( localize(7718, "Configure Recommended Extensions (Workspace)")); }
|
|
2102
2102
|
constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService) {
|
|
2103
2103
|
super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
|
|
2104
2104
|
this._register(this.contextService.onDidChangeWorkbenchState(() => this.update(), this));
|
|
@@ -2127,7 +2127,7 @@ ConfigureWorkspaceRecommendedExtensionsAction = ( (__decorate([
|
|
|
2127
2127
|
], ConfigureWorkspaceRecommendedExtensionsAction)));
|
|
2128
2128
|
let ConfigureWorkspaceFolderRecommendedExtensionsAction = class ConfigureWorkspaceFolderRecommendedExtensionsAction extends AbstractConfigureRecommendedExtensionsAction {
|
|
2129
2129
|
static { this.ID = 'workbench.extensions.action.configureWorkspaceFolderRecommendedExtensions'; }
|
|
2130
|
-
static { this.LABEL = ( localize(
|
|
2130
|
+
static { this.LABEL = ( localize(7719, "Configure Recommended Extensions (Workspace Folder)")); }
|
|
2131
2131
|
constructor(id, label, fileService, textFileService, contextService, editorService, jsonEditingService, textModelResolverService, commandService) {
|
|
2132
2132
|
super(id, label, contextService, fileService, textFileService, editorService, jsonEditingService, textModelResolverService);
|
|
2133
2133
|
this.commandService = commandService;
|
|
@@ -2217,21 +2217,21 @@ let ExtensionStatusLabelAction = class ExtensionStatusLabelAction extends Action
|
|
|
2217
2217
|
};
|
|
2218
2218
|
if (currentStatus !== null) {
|
|
2219
2219
|
if (currentStatus === ExtensionState.Installing && this.status === ExtensionState.Installed) {
|
|
2220
|
-
return canAddExtension() ? this.initialStatus === ExtensionState.Installed && this.version !== currentVersion ? ( localize(
|
|
2220
|
+
return canAddExtension() ? this.initialStatus === ExtensionState.Installed && this.version !== currentVersion ? ( localize(7720, "Updated")) : ( localize(7721, "Installed")) : null;
|
|
2221
2221
|
}
|
|
2222
2222
|
if (currentStatus === ExtensionState.Uninstalling && this.status === ExtensionState.Uninstalled) {
|
|
2223
2223
|
this.initialStatus = this.status;
|
|
2224
|
-
return canRemoveExtension() ? ( localize(
|
|
2224
|
+
return canRemoveExtension() ? ( localize(7722, "Uninstalled")) : null;
|
|
2225
2225
|
}
|
|
2226
2226
|
}
|
|
2227
2227
|
if (currentEnablementState !== null) {
|
|
2228
2228
|
const currentlyEnabled = this.extensionEnablementService.isEnabledEnablementState(currentEnablementState);
|
|
2229
2229
|
const enabled = this.extensionEnablementService.isEnabledEnablementState(this.enablementState);
|
|
2230
2230
|
if (!currentlyEnabled && enabled) {
|
|
2231
|
-
return canAddExtension() ? ( localize(
|
|
2231
|
+
return canAddExtension() ? ( localize(7723, "Enabled")) : null;
|
|
2232
2232
|
}
|
|
2233
2233
|
if (currentlyEnabled && !enabled) {
|
|
2234
|
-
return canRemoveExtension() ? ( localize(
|
|
2234
|
+
return canRemoveExtension() ? ( localize(7724, "Disabled")) : null;
|
|
2235
2235
|
}
|
|
2236
2236
|
}
|
|
2237
2237
|
return null;
|
|
@@ -2263,7 +2263,7 @@ let ToggleSyncExtensionAction = class ToggleSyncExtensionAction extends DropDown
|
|
|
2263
2263
|
if (this.extension) {
|
|
2264
2264
|
const isIgnored = this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension);
|
|
2265
2265
|
this.class = isIgnored ? ToggleSyncExtensionAction_1.IGNORED_SYNC_CLASS : ToggleSyncExtensionAction_1.SYNC_CLASS;
|
|
2266
|
-
this.tooltip = isIgnored ? ( localize(
|
|
2266
|
+
this.tooltip = isIgnored ? ( localize(7725, "This extension is ignored during sync")) : ( localize(7726, "This extension is synced"));
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
2269
2269
|
async run() {
|
|
@@ -2272,7 +2272,7 @@ let ToggleSyncExtensionAction = class ToggleSyncExtensionAction extends DropDown
|
|
|
2272
2272
|
[
|
|
2273
2273
|
( (new Action(
|
|
2274
2274
|
'extensions.syncignore',
|
|
2275
|
-
this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension) ? ( localize(
|
|
2275
|
+
this.extensionsWorkbenchService.isExtensionIgnoredToSync(this.extension) ? ( localize(7727, "Sync this extension")) : ( localize(7728, "Do not sync this extension")),
|
|
2276
2276
|
undefined,
|
|
2277
2277
|
true,
|
|
2278
2278
|
() => this.extensionsWorkbenchService.toggleExtensionIgnoredToSync(this.extension)
|
|
@@ -2326,7 +2326,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
2328
|
if (this.extension.isMalicious) {
|
|
2329
|
-
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(
|
|
2329
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(7729, "This extension was reported to be problematic."))))) }, true);
|
|
2330
2330
|
return;
|
|
2331
2331
|
}
|
|
2332
2332
|
if (this.extension.deprecationInfo) {
|
|
@@ -2334,20 +2334,20 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2334
2334
|
const link = `[${this.extension.deprecationInfo.extension.displayName}](${( (URI.parse(
|
|
2335
2335
|
`command:extension.open?${encodeURIComponent(JSON.stringify([this.extension.deprecationInfo.extension.id]))}`
|
|
2336
2336
|
)))})`;
|
|
2337
|
-
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(
|
|
2337
|
+
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(7730, "This extension is deprecated. Use the {0} extension instead.", link))))) }, true);
|
|
2338
2338
|
}
|
|
2339
2339
|
else if (this.extension.deprecationInfo.settings) {
|
|
2340
|
-
const link = `[${( localize(
|
|
2340
|
+
const link = `[${( localize(7731, "settings"))}](${( (URI.parse(
|
|
2341
2341
|
`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify([( (this.extension.deprecationInfo.settings.map(setting => `@id:${setting}`))).join(' ')]))}`
|
|
2342
2342
|
)))})`;
|
|
2343
2343
|
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(
|
|
2344
|
-
|
|
2344
|
+
7732,
|
|
2345
2345
|
"This extension is deprecated as this functionality is now built-in to VS Code. Configure these {0} to use this functionality.",
|
|
2346
2346
|
link
|
|
2347
2347
|
))))) }, true);
|
|
2348
2348
|
}
|
|
2349
2349
|
else {
|
|
2350
|
-
const message = ( (new MarkdownString(( localize(
|
|
2350
|
+
const message = ( (new MarkdownString(( localize(7733, "This extension is deprecated as it is no longer being maintained.")))));
|
|
2351
2351
|
if (this.extension.deprecationInfo.additionalInfo) {
|
|
2352
2352
|
message.appendMarkdown(` ${this.extension.deprecationInfo.additionalInfo}`);
|
|
2353
2353
|
}
|
|
@@ -2364,7 +2364,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2364
2364
|
const markdown = ( (new MarkdownString()));
|
|
2365
2365
|
markdown.appendMarkdown(`${message} `);
|
|
2366
2366
|
markdown.appendMarkdown(( localize(
|
|
2367
|
-
|
|
2367
|
+
7734,
|
|
2368
2368
|
"Please [review the extension]({0}) and update it manually.",
|
|
2369
2369
|
this.extension.hasChangelog()
|
|
2370
2370
|
? ( (( (URI.parse(
|
|
@@ -2383,23 +2383,23 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2383
2383
|
if (this.extensionManagementServerService.localExtensionManagementServer || this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2384
2384
|
const targetPlatform = await (this.extensionManagementServerService.localExtensionManagementServer ? this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getTargetPlatform() : this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getTargetPlatform());
|
|
2385
2385
|
const message = ( (new MarkdownString(`${( localize(
|
|
2386
|
-
|
|
2386
|
+
7735,
|
|
2387
2387
|
"The '{0}' extension is not available in {1} for {2}.",
|
|
2388
2388
|
this.extension.displayName || this.extension.identifier.id,
|
|
2389
2389
|
this.productService.nameLong,
|
|
2390
2390
|
TargetPlatformToString(targetPlatform)
|
|
2391
|
-
))} [${( localize(
|
|
2391
|
+
))} [${( localize(7736, "Learn More"))}](https://aka.ms/vscode-platform-specific-extensions)`)));
|
|
2392
2392
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
2393
2393
|
return;
|
|
2394
2394
|
}
|
|
2395
2395
|
if (this.extensionManagementServerService.webExtensionManagementServer) {
|
|
2396
|
-
const productName = ( localize(
|
|
2396
|
+
const productName = ( localize(7631, "{0} for the Web", this.productService.nameLong));
|
|
2397
2397
|
const message = ( (new MarkdownString(`${( localize(
|
|
2398
|
-
|
|
2398
|
+
7737,
|
|
2399
2399
|
"The '{0}' extension is not available in {1}.",
|
|
2400
2400
|
this.extension.displayName || this.extension.identifier.id,
|
|
2401
2401
|
productName
|
|
2402
|
-
))} [${( localize(
|
|
2402
|
+
))} [${( localize(7738, "Learn Why"))}](https://aka.ms/vscode-web-extensions-guide)`)));
|
|
2403
2403
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
2404
2404
|
return;
|
|
2405
2405
|
}
|
|
@@ -2410,12 +2410,12 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2410
2410
|
return;
|
|
2411
2411
|
}
|
|
2412
2412
|
if (this.extension.enablementState === EnablementState.DisabledByEnvironment) {
|
|
2413
|
-
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2413
|
+
this.updateStatus({ message: ( (new MarkdownString(( localize(7739, "This extension is disabled by the environment."))))) }, true);
|
|
2414
2414
|
return;
|
|
2415
2415
|
}
|
|
2416
2416
|
if (this.extension.enablementState === EnablementState.EnabledByEnvironment) {
|
|
2417
2417
|
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2418
|
-
|
|
2418
|
+
7740,
|
|
2419
2419
|
"This extension is enabled because it is required in the current environment."
|
|
2420
2420
|
))))) }, true);
|
|
2421
2421
|
return;
|
|
@@ -2423,7 +2423,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2423
2423
|
if (this.extension.enablementState === EnablementState.DisabledByVirtualWorkspace) {
|
|
2424
2424
|
const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
|
|
2425
2425
|
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localize(
|
|
2426
|
-
|
|
2426
|
+
7741,
|
|
2427
2427
|
"This extension has been disabled because it does not support virtual workspaces."
|
|
2428
2428
|
))))) }, true);
|
|
2429
2429
|
return;
|
|
@@ -2433,7 +2433,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2433
2433
|
const details = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.virtualWorkspaces);
|
|
2434
2434
|
if (virtualSupportType === 'limited' || details) {
|
|
2435
2435
|
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(details ? escapeMarkdownSyntaxTokens(details) : ( localize(
|
|
2436
|
-
|
|
2436
|
+
7742,
|
|
2437
2437
|
"This extension has limited features because the current workspace is virtual."
|
|
2438
2438
|
))))) }, true);
|
|
2439
2439
|
return;
|
|
@@ -2445,7 +2445,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2445
2445
|
const untrustedDetails = getWorkspaceSupportTypeMessage(this.extension.local.manifest.capabilities?.untrustedWorkspaces);
|
|
2446
2446
|
this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
|
|
2447
2447
|
untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( localize(
|
|
2448
|
-
|
|
2448
|
+
7743,
|
|
2449
2449
|
"This extension has been disabled because the current workspace is not trusted."
|
|
2450
2450
|
))
|
|
2451
2451
|
))) }, true);
|
|
@@ -2458,7 +2458,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2458
2458
|
this.enabled = true;
|
|
2459
2459
|
this.updateStatus({ icon: trustIcon, message: ( (new MarkdownString(
|
|
2460
2460
|
untrustedDetails ? escapeMarkdownSyntaxTokens(untrustedDetails) : ( localize(
|
|
2461
|
-
|
|
2461
|
+
7744,
|
|
2462
2462
|
"This extension has limited features because the current workspace is not trusted."
|
|
2463
2463
|
))
|
|
2464
2464
|
))) }, true);
|
|
@@ -2474,10 +2474,10 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2474
2474
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
|
|
2475
2475
|
if (this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2476
2476
|
message = ( (new MarkdownString(`${( localize(
|
|
2477
|
-
|
|
2477
|
+
7745,
|
|
2478
2478
|
"This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in '{0}' to enable.",
|
|
2479
2479
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2480
|
-
))} [${( localize(
|
|
2480
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`)));
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
}
|
|
@@ -2485,26 +2485,26 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2485
2485
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
|
|
2486
2486
|
if (this.extensionManagementServerService.localExtensionManagementServer) {
|
|
2487
2487
|
message = ( (new MarkdownString(`${( localize(
|
|
2488
|
-
|
|
2488
|
+
7746,
|
|
2489
2489
|
"This extension is disabled in this workspace because it is defined to run in the Local Extension Host. Please install the extension locally to enable.",
|
|
2490
2490
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2491
|
-
))} [${( localize(
|
|
2491
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`)));
|
|
2492
2492
|
}
|
|
2493
2493
|
else if (isWeb) {
|
|
2494
2494
|
message = ( (new MarkdownString(`${( localize(
|
|
2495
|
-
|
|
2495
|
+
7747,
|
|
2496
2496
|
"This extension is disabled because it is defined to run only in {0} for the Desktop.",
|
|
2497
2497
|
this.productService.nameLong
|
|
2498
|
-
))} [${( localize(
|
|
2498
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`)));
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
2502
|
else if (this.extensionManagementServerService.webExtensionManagementServer === this.extension.server) {
|
|
2503
2503
|
message = ( (new MarkdownString(`${( localize(
|
|
2504
|
-
|
|
2504
|
+
7748,
|
|
2505
2505
|
"This extension is disabled because it is not supported in {0} for the Web.",
|
|
2506
2506
|
this.productService.nameLong
|
|
2507
|
-
))} [${( localize(
|
|
2507
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`)));
|
|
2508
2508
|
}
|
|
2509
2509
|
if (message) {
|
|
2510
2510
|
this.updateStatus({ icon: warningIcon, message }, true);
|
|
@@ -2516,7 +2516,7 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2516
2516
|
const features = ( (Registry.as(Extensions.ExtensionFeaturesRegistry))).getExtensionFeatures();
|
|
2517
2517
|
for (const feature of features) {
|
|
2518
2518
|
const status = this.extensionFeaturesManagementService.getAccessData(extensionId, feature.id)?.current?.status;
|
|
2519
|
-
const manageAccessLink = `[${( localize(
|
|
2519
|
+
const manageAccessLink = `[${( localize(7749, 'Manage Access'))}](${( (URI.parse(
|
|
2520
2520
|
`command:extension.open?${encodeURIComponent(JSON.stringify([this.extension.identifier.id, ExtensionEditorTab.Features, false, feature.id]))}`
|
|
2521
2521
|
)))})`;
|
|
2522
2522
|
if (status?.severity === Severity$1.Error) {
|
|
@@ -2535,12 +2535,12 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2535
2535
|
)))) {
|
|
2536
2536
|
const message = this.extension.server === this.extensionManagementServerService.localExtensionManagementServer
|
|
2537
2537
|
? ( (new MarkdownString(( localize(
|
|
2538
|
-
|
|
2538
|
+
7750,
|
|
2539
2539
|
"Install the language pack extension on '{0}' to enable it there also.",
|
|
2540
2540
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2541
2541
|
)))))
|
|
2542
2542
|
: ( (new MarkdownString(( localize(
|
|
2543
|
-
|
|
2543
|
+
7751,
|
|
2544
2544
|
"Install the language pack extension locally to enable it there also."
|
|
2545
2545
|
)))));
|
|
2546
2546
|
this.updateStatus({ icon: infoIcon, message }, true);
|
|
@@ -2552,34 +2552,34 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2552
2552
|
if (this.extension.server === this.extensionManagementServerService.localExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2553
2553
|
if (this.extensionManifestPropertiesService.prefersExecuteOnWorkspace(this.extension.local.manifest)) {
|
|
2554
2554
|
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localize(
|
|
2555
|
-
|
|
2555
|
+
7752,
|
|
2556
2556
|
"This extension is enabled in the Remote Extension Host because it prefers to run there."
|
|
2557
|
-
))} [${( localize(
|
|
2557
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`))) }, true);
|
|
2558
2558
|
}
|
|
2559
2559
|
return;
|
|
2560
2560
|
}
|
|
2561
2561
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.localExtensionManagementServer) {
|
|
2562
2562
|
if (this.extensionManifestPropertiesService.prefersExecuteOnUI(this.extension.local.manifest)) {
|
|
2563
2563
|
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localize(
|
|
2564
|
-
|
|
2564
|
+
7753,
|
|
2565
2565
|
"This extension is enabled in the Local Extension Host because it prefers to run there."
|
|
2566
|
-
))} [${( localize(
|
|
2566
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`))) }, true);
|
|
2567
2567
|
}
|
|
2568
2568
|
return;
|
|
2569
2569
|
}
|
|
2570
2570
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer && runningExtensionServer === this.extensionManagementServerService.webExtensionManagementServer) {
|
|
2571
2571
|
if (this.extensionManifestPropertiesService.canExecuteOnWeb(this.extension.local.manifest)) {
|
|
2572
2572
|
this.updateStatus({ icon: infoIcon, message: ( (new MarkdownString(`${( localize(
|
|
2573
|
-
|
|
2573
|
+
7754,
|
|
2574
2574
|
"This extension is enabled in the Web Worker Extension Host because it prefers to run there."
|
|
2575
|
-
))} [${( localize(
|
|
2575
|
+
))} [${( localize(7736, "Learn More"))}](https://code.visualstudio.com/api/advanced-topics/remote-extensions#architecture-and-extension-kinds)`))) }, true);
|
|
2576
2576
|
}
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
2580
|
if (this.extension.enablementState === EnablementState.DisabledByExtensionDependency) {
|
|
2581
2581
|
this.updateStatus({ icon: warningIcon, message: ( (new MarkdownString(( localize(
|
|
2582
|
-
|
|
2582
|
+
7755,
|
|
2583
2583
|
"This extension has been disabled because it depends on an extension that is disabled."
|
|
2584
2584
|
))))) }, true);
|
|
2585
2585
|
return;
|
|
@@ -2590,12 +2590,12 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2590
2590
|
)));
|
|
2591
2591
|
if (!this.extension.isWorkspaceScoped && isEnabled && isRunning) {
|
|
2592
2592
|
if (this.extension.enablementState === EnablementState.EnabledWorkspace) {
|
|
2593
|
-
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2593
|
+
this.updateStatus({ message: ( (new MarkdownString(( localize(7756, "This extension is enabled for this workspace by the user."))))) }, true);
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
if (this.extensionManagementServerService.localExtensionManagementServer && this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2597
2597
|
if (this.extension.server === this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2598
|
-
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2598
|
+
this.updateStatus({ message: ( (new MarkdownString(( localize(7757, "Extension is enabled on '{0}'", this.extension.server.label))))) }, true);
|
|
2599
2599
|
return;
|
|
2600
2600
|
}
|
|
2601
2601
|
}
|
|
@@ -2605,11 +2605,11 @@ let ExtensionStatusAction = class ExtensionStatusAction extends ExtensionAction
|
|
|
2605
2605
|
}
|
|
2606
2606
|
if (!isEnabled && !isRunning) {
|
|
2607
2607
|
if (this.extension.enablementState === EnablementState.DisabledGlobally) {
|
|
2608
|
-
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2608
|
+
this.updateStatus({ message: ( (new MarkdownString(( localize(7758, "This extension is disabled globally by the user."))))) }, true);
|
|
2609
2609
|
return;
|
|
2610
2610
|
}
|
|
2611
2611
|
if (this.extension.enablementState === EnablementState.DisabledWorkspace) {
|
|
2612
|
-
this.updateStatus({ message: ( (new MarkdownString(( localize(
|
|
2612
|
+
this.updateStatus({ message: ( (new MarkdownString(( localize(7759, "This extension is disabled for this workspace by the user."))))) }, true);
|
|
2613
2613
|
return;
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
@@ -2686,7 +2686,7 @@ ExtensionStatusAction = ExtensionStatusAction_1 = ( (__decorate([
|
|
|
2686
2686
|
let ReinstallAction = class ReinstallAction extends Action {
|
|
2687
2687
|
static { ReinstallAction_1 = this; }
|
|
2688
2688
|
static { this.ID = 'workbench.extensions.action.reinstall'; }
|
|
2689
|
-
static { this.LABEL = ( localize(
|
|
2689
|
+
static { this.LABEL = ( localize(7760, "Reinstall Extension...")); }
|
|
2690
2690
|
constructor(id = ReinstallAction_1.ID, label = ReinstallAction_1.LABEL, extensionsWorkbenchService, extensionManagementServerService, quickInputService, notificationService, hostService, instantiationService, extensionService) {
|
|
2691
2691
|
super(id, label);
|
|
2692
2692
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -2701,7 +2701,7 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
2701
2701
|
return this.extensionsWorkbenchService.local.filter(l => !l.isBuiltin && l.local).length > 0;
|
|
2702
2702
|
}
|
|
2703
2703
|
run() {
|
|
2704
|
-
return this.quickInputService.pick(this.getEntries(), { placeHolder: ( localize(
|
|
2704
|
+
return this.quickInputService.pick(this.getEntries(), { placeHolder: ( localize(7761, "Select Extension to Reinstall")) })
|
|
2705
2705
|
.then(pick => pick && this.reinstallExtension(pick.extension));
|
|
2706
2706
|
}
|
|
2707
2707
|
getEntries() {
|
|
@@ -2727,17 +2727,17 @@ let ReinstallAction = class ReinstallAction extends Action {
|
|
|
2727
2727
|
.then(extension => {
|
|
2728
2728
|
const requireReload = !(extension.local && this.extensionService.canAddExtension(toExtensionDescription(extension.local)));
|
|
2729
2729
|
const message = requireReload ? ( localize(
|
|
2730
|
-
|
|
2730
|
+
7762,
|
|
2731
2731
|
"Please reload Visual Studio Code to complete reinstalling the extension {0}.",
|
|
2732
2732
|
extension.identifier.id
|
|
2733
2733
|
))
|
|
2734
2734
|
: ( localize(
|
|
2735
|
-
|
|
2735
|
+
7763,
|
|
2736
2736
|
"Reinstalling the extension {0} is completed.",
|
|
2737
2737
|
extension.identifier.id
|
|
2738
2738
|
));
|
|
2739
2739
|
const actions = requireReload ? [{
|
|
2740
|
-
label: ( localize(
|
|
2740
|
+
label: ( localize(7764, "Reload Now")),
|
|
2741
2741
|
run: () => this.hostService.reload()
|
|
2742
2742
|
}] : [];
|
|
2743
2743
|
this.notificationService.prompt(Severity$1.Info, message, actions, { sticky: true });
|
|
@@ -2757,7 +2757,7 @@ ReinstallAction = ReinstallAction_1 = ( (__decorate([
|
|
|
2757
2757
|
let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExtensionAction extends Action {
|
|
2758
2758
|
static { InstallSpecificVersionOfExtensionAction_1 = this; }
|
|
2759
2759
|
static { this.ID = 'workbench.extensions.action.install.specificVersion'; }
|
|
2760
|
-
static { this.LABEL = ( localize(
|
|
2760
|
+
static { this.LABEL = ( localize(7765, "Install Specific Version of Extension...")); }
|
|
2761
2761
|
constructor(id = InstallSpecificVersionOfExtensionAction_1.ID, label = InstallSpecificVersionOfExtensionAction_1.LABEL, extensionsWorkbenchService, quickInputService, instantiationService, extensionEnablementService) {
|
|
2762
2762
|
super(id, label);
|
|
2763
2763
|
this.extensionsWorkbenchService = extensionsWorkbenchService;
|
|
@@ -2771,7 +2771,7 @@ let InstallSpecificVersionOfExtensionAction = class InstallSpecificVersionOfExte
|
|
|
2771
2771
|
);
|
|
2772
2772
|
}
|
|
2773
2773
|
async run() {
|
|
2774
|
-
const extensionPick = await this.quickInputService.pick(this.getExtensionEntries(), { placeHolder: ( localize(
|
|
2774
|
+
const extensionPick = await this.quickInputService.pick(this.getExtensionEntries(), { placeHolder: ( localize(7766, "Select Extension")), matchOnDetail: true });
|
|
2775
2775
|
if (extensionPick && extensionPick.extension) {
|
|
2776
2776
|
const action = this.instantiationService.createInstance(InstallAnotherVersionAction, extensionPick.extension, true);
|
|
2777
2777
|
await action.run();
|
|
@@ -2849,7 +2849,7 @@ let AbstractInstallExtensionsInServerAction = class AbstractInstallExtensionsInS
|
|
|
2849
2849
|
quickPick.busy = false;
|
|
2850
2850
|
if (localExtensionsToInstall.length) {
|
|
2851
2851
|
quickPick.title = this.getQuickPickTitle();
|
|
2852
|
-
quickPick.placeholder = ( localize(
|
|
2852
|
+
quickPick.placeholder = ( localize(7767, "Select extensions to install"));
|
|
2853
2853
|
quickPick.canSelectMany = true;
|
|
2854
2854
|
localExtensionsToInstall.sort((e1, e2) => e1.displayName.localeCompare(e2.displayName));
|
|
2855
2855
|
quickPick.items = ( (localExtensionsToInstall.map(
|
|
@@ -2861,7 +2861,7 @@ let AbstractInstallExtensionsInServerAction = class AbstractInstallExtensionsInS
|
|
|
2861
2861
|
quickPick.dispose();
|
|
2862
2862
|
this.notificationService.notify({
|
|
2863
2863
|
severity: Severity$1.Info,
|
|
2864
|
-
message: ( localize(
|
|
2864
|
+
message: ( localize(7768, "There are no extensions to install."))
|
|
2865
2865
|
});
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
@@ -2871,9 +2871,9 @@ let AbstractInstallExtensionsInServerAction = class AbstractInstallExtensionsInS
|
|
|
2871
2871
|
if (localExtensionsToInstall.length) {
|
|
2872
2872
|
await this.progressService.withProgress({
|
|
2873
2873
|
location: ProgressLocation.Notification,
|
|
2874
|
-
title: ( localize(
|
|
2874
|
+
title: ( localize(7769, "Installing Extensions..."))
|
|
2875
2875
|
}, () => this.installExtensions(localExtensionsToInstall));
|
|
2876
|
-
this.notificationService.info(( localize(
|
|
2876
|
+
this.notificationService.info(( localize(7770, "Successfully installed extensions.")));
|
|
2877
2877
|
}
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
@@ -2896,7 +2896,7 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
2896
2896
|
get label() {
|
|
2897
2897
|
if (this.extensionManagementServerService && this.extensionManagementServerService.remoteExtensionManagementServer) {
|
|
2898
2898
|
return ( localize(
|
|
2899
|
-
|
|
2899
|
+
7771,
|
|
2900
2900
|
"Install Local Extensions in '{0}'...",
|
|
2901
2901
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2902
2902
|
));
|
|
@@ -2905,7 +2905,7 @@ let InstallLocalExtensionsInRemoteAction = class InstallLocalExtensionsInRemoteA
|
|
|
2905
2905
|
}
|
|
2906
2906
|
getQuickPickTitle() {
|
|
2907
2907
|
return ( localize(
|
|
2908
|
-
|
|
2908
|
+
7772,
|
|
2909
2909
|
"Install Local Extensions in '{0}'",
|
|
2910
2910
|
this.extensionManagementServerService.remoteExtensionManagementServer.label
|
|
2911
2911
|
));
|
|
@@ -2970,10 +2970,10 @@ let InstallRemoteExtensionsInLocalAction = class InstallRemoteExtensionsInLocalA
|
|
|
2970
2970
|
this.logService = logService;
|
|
2971
2971
|
}
|
|
2972
2972
|
get label() {
|
|
2973
|
-
return ( localize(
|
|
2973
|
+
return ( localize(7773, "Install Remote Extensions Locally..."));
|
|
2974
2974
|
}
|
|
2975
2975
|
getQuickPickTitle() {
|
|
2976
|
-
return ( localize(
|
|
2976
|
+
return ( localize(7774, "Install Remote Extensions Locally"));
|
|
2977
2977
|
}
|
|
2978
2978
|
getExtensionsToInstall(local) {
|
|
2979
2979
|
return local.filter(extension => extension.type === ExtensionType.User && extension.server !== this.extensionManagementServerService.localExtensionManagementServer
|
|
@@ -3051,27 +3051,27 @@ registerColor('extensionButton.background', {
|
|
|
3051
3051
|
light: buttonBackground,
|
|
3052
3052
|
hcDark: null,
|
|
3053
3053
|
hcLight: null
|
|
3054
|
-
}, ( localize(
|
|
3054
|
+
}, ( localize(7775, "Button background color for extension actions.")));
|
|
3055
3055
|
registerColor('extensionButton.foreground', {
|
|
3056
3056
|
dark: buttonForeground,
|
|
3057
3057
|
light: buttonForeground,
|
|
3058
3058
|
hcDark: null,
|
|
3059
3059
|
hcLight: null
|
|
3060
|
-
}, ( localize(
|
|
3060
|
+
}, ( localize(7776, "Button foreground color for extension actions.")));
|
|
3061
3061
|
registerColor('extensionButton.hoverBackground', {
|
|
3062
3062
|
dark: buttonHoverBackground,
|
|
3063
3063
|
light: buttonHoverBackground,
|
|
3064
3064
|
hcDark: null,
|
|
3065
3065
|
hcLight: null
|
|
3066
|
-
}, ( localize(
|
|
3067
|
-
registerColor('extensionButton.separator', buttonSeparator, ( localize(
|
|
3066
|
+
}, ( localize(7777, "Button background hover color for extension actions.")));
|
|
3067
|
+
registerColor('extensionButton.separator', buttonSeparator, ( localize(7778, "Button separator color for extension actions")));
|
|
3068
3068
|
const extensionButtonProminentBackground = registerColor('extensionButton.prominentBackground', {
|
|
3069
3069
|
dark: buttonBackground,
|
|
3070
3070
|
light: buttonBackground,
|
|
3071
3071
|
hcDark: null,
|
|
3072
3072
|
hcLight: null
|
|
3073
3073
|
}, ( localize(
|
|
3074
|
-
|
|
3074
|
+
7779,
|
|
3075
3075
|
"Button background color for extension actions that stand out (e.g. install button)."
|
|
3076
3076
|
)));
|
|
3077
3077
|
registerColor('extensionButton.prominentForeground', {
|
|
@@ -3080,7 +3080,7 @@ registerColor('extensionButton.prominentForeground', {
|
|
|
3080
3080
|
hcDark: null,
|
|
3081
3081
|
hcLight: null
|
|
3082
3082
|
}, ( localize(
|
|
3083
|
-
|
|
3083
|
+
7780,
|
|
3084
3084
|
"Button foreground color for extension actions that stand out (e.g. install button)."
|
|
3085
3085
|
)));
|
|
3086
3086
|
registerColor('extensionButton.prominentHoverBackground', {
|
|
@@ -3089,7 +3089,7 @@ registerColor('extensionButton.prominentHoverBackground', {
|
|
|
3089
3089
|
hcDark: null,
|
|
3090
3090
|
hcLight: null
|
|
3091
3091
|
}, ( localize(
|
|
3092
|
-
|
|
3092
|
+
7781,
|
|
3093
3093
|
"Button background hover color for extension actions that stand out (e.g. install button)."
|
|
3094
3094
|
)));
|
|
3095
3095
|
registerThemingParticipant((theme, collector) => {
|