@codingame/monaco-vscode-api 11.0.2 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.d.ts +1 -1
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- 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/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- 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/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- 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/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- 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/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -137,7 +137,7 @@ let ExplorerFindProvider = class ExplorerFindProvider {
|
|
|
137
137
|
this.progressService = progressService;
|
|
138
138
|
this.explorerService = explorerService;
|
|
139
139
|
this.toggles = [explorerFuzzyMatch];
|
|
140
|
-
this.placeholder = ( localize(
|
|
140
|
+
this.placeholder = ( localize(10267, "Type to search files"));
|
|
141
141
|
}
|
|
142
142
|
async *getFindResults(pattern, sessionId, token, toggleStates) {
|
|
143
143
|
const isFuzzyMatch = toggleStates.find(t => t.id === explorerFuzzyMatch.id)?.isChecked;
|
|
@@ -298,7 +298,7 @@ let ExplorerView = class ExplorerView extends ViewPane {
|
|
|
298
298
|
const setHeader = () => {
|
|
299
299
|
titleElement.textContent = this.name;
|
|
300
300
|
this.updateTitle(this.name);
|
|
301
|
-
this.ariaHeaderLabel = ( localize(
|
|
301
|
+
this.ariaHeaderLabel = ( localize(10268, "Explorer Section: {0}", this.name));
|
|
302
302
|
titleElement.setAttribute('aria-label', this.ariaHeaderLabel);
|
|
303
303
|
};
|
|
304
304
|
this._register(this.contextService.onDidChangeWorkspaceName(setHeader));
|
|
@@ -890,7 +890,7 @@ registerAction2(class extends Action2 {
|
|
|
890
890
|
constructor() {
|
|
891
891
|
super({
|
|
892
892
|
id: 'workbench.files.action.createFileFromExplorer',
|
|
893
|
-
title: ( localize(
|
|
893
|
+
title: ( localize(10269, "New File...")),
|
|
894
894
|
f1: false,
|
|
895
895
|
icon: Codicon.newFile,
|
|
896
896
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -911,7 +911,7 @@ registerAction2(class extends Action2 {
|
|
|
911
911
|
constructor() {
|
|
912
912
|
super({
|
|
913
913
|
id: 'workbench.files.action.createFolderFromExplorer',
|
|
914
|
-
title: ( localize(
|
|
914
|
+
title: ( localize(10270, "New Folder...")),
|
|
915
915
|
f1: false,
|
|
916
916
|
icon: Codicon.newFolder,
|
|
917
917
|
precondition: ExplorerResourceNotReadonlyContext,
|
|
@@ -932,7 +932,7 @@ registerAction2(class extends Action2 {
|
|
|
932
932
|
constructor() {
|
|
933
933
|
super({
|
|
934
934
|
id: 'workbench.files.action.refreshFilesExplorer',
|
|
935
|
-
title: ( localize2(
|
|
935
|
+
title: ( localize2(10271, "Refresh Explorer")),
|
|
936
936
|
f1: true,
|
|
937
937
|
icon: Codicon.refresh,
|
|
938
938
|
menu: {
|
|
@@ -942,7 +942,7 @@ registerAction2(class extends Action2 {
|
|
|
942
942
|
order: 30
|
|
943
943
|
},
|
|
944
944
|
metadata: {
|
|
945
|
-
description: ( localize2(
|
|
945
|
+
description: ( localize2(10272, "Forces a refresh of the Explorer."))
|
|
946
946
|
}
|
|
947
947
|
});
|
|
948
948
|
}
|
|
@@ -957,7 +957,7 @@ registerAction2(class extends Action2 {
|
|
|
957
957
|
constructor() {
|
|
958
958
|
super({
|
|
959
959
|
id: 'workbench.files.action.collapseExplorerFolders',
|
|
960
|
-
title: ( localize2(
|
|
960
|
+
title: ( localize2(10273, "Collapse Folders in Explorer")),
|
|
961
961
|
f1: true,
|
|
962
962
|
icon: Codicon.collapseAll,
|
|
963
963
|
menu: {
|
|
@@ -967,7 +967,7 @@ registerAction2(class extends Action2 {
|
|
|
967
967
|
order: 40
|
|
968
968
|
},
|
|
969
969
|
metadata: {
|
|
970
|
-
description: ( localize2(
|
|
970
|
+
description: ( localize2(10274, "Folds all folders in the Explorer."))
|
|
971
971
|
}
|
|
972
972
|
});
|
|
973
973
|
}
|
|
@@ -30,8 +30,8 @@ let DefaultFoldingRangeProvider = class DefaultFoldingRangeProvider extends Disp
|
|
|
30
30
|
DefaultFoldingRangeProvider_1.extensionItemLabels.length = 0;
|
|
31
31
|
DefaultFoldingRangeProvider_1.extensionDescriptions.length = 0;
|
|
32
32
|
DefaultFoldingRangeProvider_1.extensionIds.push(null);
|
|
33
|
-
DefaultFoldingRangeProvider_1.extensionItemLabels.push(( localize(
|
|
34
|
-
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(
|
|
33
|
+
DefaultFoldingRangeProvider_1.extensionItemLabels.push(( localize(692, 'All')));
|
|
34
|
+
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(693, "All active folding range providers")));
|
|
35
35
|
const languageExtensions = [];
|
|
36
36
|
const otherExtensions = [];
|
|
37
37
|
for (const extension of this._extensionService.extensions) {
|
|
@@ -73,7 +73,7 @@ DefaultFoldingRangeProvider = DefaultFoldingRangeProvider_1 = ( (__decorate([
|
|
|
73
73
|
properties: {
|
|
74
74
|
[DefaultFoldingRangeProvider.configName]: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
694,
|
|
77
77
|
"Defines a default folding range provider that takes precedence over all other folding range providers. Must be the identifier of an extension contributing a folding range provider."
|
|
78
78
|
)),
|
|
79
79
|
type: ['string', 'null'],
|
|
@@ -79,8 +79,8 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
79
79
|
DefaultFormatter_1.extensionItemLabels.length = 0;
|
|
80
80
|
DefaultFormatter_1.extensionDescriptions.length = 0;
|
|
81
81
|
DefaultFormatter_1.extensionIds.push(null);
|
|
82
|
-
DefaultFormatter_1.extensionItemLabels.push(( localize(
|
|
83
|
-
DefaultFormatter_1.extensionDescriptions.push(( localize(
|
|
82
|
+
DefaultFormatter_1.extensionItemLabels.push(( localize(4577, 'None')));
|
|
83
|
+
DefaultFormatter_1.extensionDescriptions.push(( localize(4578, "None")));
|
|
84
84
|
for (const extension of extensions) {
|
|
85
85
|
if (extension.main || extension.browser) {
|
|
86
86
|
DefaultFormatter_1.extensionIds.push(extension.identifier.value);
|
|
@@ -107,13 +107,13 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
107
107
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
108
108
|
const detail = kind === 1
|
|
109
109
|
? ( localize(
|
|
110
|
-
|
|
110
|
+
4579,
|
|
111
111
|
"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",
|
|
112
112
|
extension.displayName || extension.name,
|
|
113
113
|
langName
|
|
114
114
|
))
|
|
115
115
|
: ( localize(
|
|
116
|
-
|
|
116
|
+
4580,
|
|
117
117
|
"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",
|
|
118
118
|
extension.displayName || extension.name,
|
|
119
119
|
langName
|
|
@@ -127,12 +127,12 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
127
127
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
128
128
|
const message = !defaultFormatterId
|
|
129
129
|
? ( localize(
|
|
130
|
-
|
|
130
|
+
4581,
|
|
131
131
|
"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",
|
|
132
132
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
133
133
|
))
|
|
134
134
|
: ( localize(
|
|
135
|
-
|
|
135
|
+
4582,
|
|
136
136
|
"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",
|
|
137
137
|
defaultFormatterId
|
|
138
138
|
));
|
|
@@ -145,16 +145,16 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
145
145
|
}
|
|
146
146
|
if (mode !== 2 ) {
|
|
147
147
|
const { confirmed } = await this._dialogService.confirm({
|
|
148
|
-
message: ( localize(
|
|
148
|
+
message: ( localize(4583, "Configure Default Formatter")),
|
|
149
149
|
detail: formatterOrMessage,
|
|
150
|
-
primaryButton: ( localize(
|
|
150
|
+
primaryButton: ( localize(4584, "&&Configure..."))
|
|
151
151
|
});
|
|
152
152
|
if (confirmed) {
|
|
153
153
|
return this._pickAndPersistDefaultFormatter(formatter, document);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
else {
|
|
157
|
-
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(
|
|
157
|
+
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(4585, "Configure...")), run: () => this._pickAndPersistDefaultFormatter(formatter, document) }], { priority: NotificationPriority.SILENT });
|
|
158
158
|
}
|
|
159
159
|
return undefined;
|
|
160
160
|
}
|
|
@@ -168,7 +168,7 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
168
168
|
})));
|
|
169
169
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
170
170
|
const pick = await this._quickInputService.pick(picks, { placeHolder: ( localize(
|
|
171
|
-
|
|
171
|
+
4586,
|
|
172
172
|
"Select a default formatter for '{0}' files",
|
|
173
173
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
174
174
|
)) });
|
|
@@ -201,14 +201,14 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
201
201
|
if (typeof result !== 'string') {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(
|
|
204
|
+
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(4587, "Configure...")) };
|
|
205
205
|
this._languageStatusStore.add(CommandsRegistry.registerCommand(command.id, () => this._pickAndPersistDefaultFormatter(formatter, document)));
|
|
206
206
|
this._languageStatusStore.add(this._languageStatusService.addStatus({
|
|
207
207
|
id: 'formatter.conflict',
|
|
208
|
-
name: ( localize(
|
|
208
|
+
name: ( localize(4588, "Formatter Conflicts")),
|
|
209
209
|
selector: { language: document.getLanguageId(), pattern: document.uri.fsPath },
|
|
210
210
|
severity: Severity$1.Error,
|
|
211
|
-
label: ( localize(
|
|
211
|
+
label: ( localize(4589, "Formatting")),
|
|
212
212
|
detail: result,
|
|
213
213
|
busy: false,
|
|
214
214
|
source: '',
|
|
@@ -236,7 +236,7 @@ DefaultFormatter = DefaultFormatter_1 = ( (__decorate([
|
|
|
236
236
|
properties: {
|
|
237
237
|
[DefaultFormatter.configName]: {
|
|
238
238
|
description: ( localize(
|
|
239
|
-
|
|
239
|
+
4590,
|
|
240
240
|
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
241
241
|
)),
|
|
242
242
|
type: ['string', 'null'],
|
|
@@ -269,7 +269,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
269
269
|
const pick = {
|
|
270
270
|
index,
|
|
271
271
|
label: provider.displayName || '',
|
|
272
|
-
description: isDefault ? ( localize(
|
|
272
|
+
description: isDefault ? ( localize(4591, "(default)")) : undefined,
|
|
273
273
|
};
|
|
274
274
|
if (isDefault) {
|
|
275
275
|
defaultFormatterPick = pick;
|
|
@@ -277,10 +277,10 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
277
277
|
return pick;
|
|
278
278
|
})));
|
|
279
279
|
const configurePick = {
|
|
280
|
-
label: ( localize(
|
|
280
|
+
label: ( localize(4592, "Configure Default Formatter..."))
|
|
281
281
|
};
|
|
282
282
|
const pick = await quickPickService.pick([...picks, { type: 'separator' }, configurePick], {
|
|
283
|
-
placeHolder: ( localize(
|
|
283
|
+
placeHolder: ( localize(4593, "Select a formatter")),
|
|
284
284
|
activeItem: defaultFormatterPick
|
|
285
285
|
});
|
|
286
286
|
if (!pick) {
|
|
@@ -289,7 +289,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
289
289
|
else if (pick === configurePick) {
|
|
290
290
|
const langName = languageService.getLanguageName(model.getLanguageId()) || model.getLanguageId();
|
|
291
291
|
const pick = await quickPickService.pick(picks, { placeHolder: ( localize(
|
|
292
|
-
|
|
292
|
+
4586,
|
|
293
293
|
"Select a default formatter for '{0}' files",
|
|
294
294
|
DefaultFormatter._maybeQuotes(langName)
|
|
295
295
|
)) });
|
|
@@ -306,7 +306,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
306
306
|
constructor() {
|
|
307
307
|
super({
|
|
308
308
|
id: 'editor.action.formatDocument.multiple',
|
|
309
|
-
label: ( localize(
|
|
309
|
+
label: ( localize(4594, "Format Document With...")),
|
|
310
310
|
alias: 'Format Document...',
|
|
311
311
|
precondition: ( (ContextKeyExpr.and(
|
|
312
312
|
EditorContextKeys.writable,
|
|
@@ -338,7 +338,7 @@ registerEditorAction(class FormatSelectionMultipleAction extends EditorAction {
|
|
|
338
338
|
constructor() {
|
|
339
339
|
super({
|
|
340
340
|
id: 'editor.action.formatSelection.multiple',
|
|
341
|
-
label: ( localize(
|
|
341
|
+
label: ( localize(4595, "Format Selection With...")),
|
|
342
342
|
alias: 'Format Code...',
|
|
343
343
|
precondition: ( (ContextKeyExpr.and(
|
|
344
344
|
(ContextKeyExpr.and(EditorContextKeys.writable)),
|
|
@@ -12,7 +12,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: 'editor.action.formatDocument.none',
|
|
15
|
-
label: ( localize(
|
|
15
|
+
label: ( localize(4596, "Format Document")),
|
|
16
16
|
alias: 'Format Document',
|
|
17
17
|
precondition: ( (ContextKeyExpr.and(
|
|
18
18
|
EditorContextKeys.writable,
|
|
@@ -44,14 +44,14 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
44
44
|
return commandService.executeCommand('editor.action.formatDocument');
|
|
45
45
|
}
|
|
46
46
|
else if (model.isTooLargeForSyncing()) {
|
|
47
|
-
notificationService.warn(( localize(
|
|
47
|
+
notificationService.warn(( localize(4597, "This file cannot be formatted because it is too large")));
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
const langName = model.getLanguageId();
|
|
51
|
-
const message = ( localize(
|
|
51
|
+
const message = ( localize(4598, "There is no formatter for '{0}' files installed.", langName));
|
|
52
52
|
const { confirmed } = await dialogService.confirm({
|
|
53
53
|
message,
|
|
54
|
-
primaryButton: ( localize(
|
|
54
|
+
primaryButton: ( localize(4599, "&&Install Formatter..."))
|
|
55
55
|
});
|
|
56
56
|
if (confirmed) {
|
|
57
57
|
extensionsWorkbenchService.openSearch(`category:formatters ${langName}`);
|
|
@@ -18,7 +18,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'editor.action.formatChanges',
|
|
21
|
-
label: ( localize(
|
|
21
|
+
label: ( localize(4576, "Format Modified Lines")),
|
|
22
22
|
alias: 'Format Modified Lines',
|
|
23
23
|
precondition: ( (ContextKeyExpr.and(
|
|
24
24
|
EditorContextKeys.writable,
|
|
@@ -21,7 +21,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
21
21
|
static { this.IsReading = ( (new RawContextKey(
|
|
22
22
|
'isReadingLineWithInlayHints',
|
|
23
23
|
false,
|
|
24
|
-
{ type: 'boolean', description: ( localize(
|
|
24
|
+
{ type: 'boolean', description: ( localize(695, "Whether the current line and its inlay hints are currently focused")) }
|
|
25
25
|
))); }
|
|
26
26
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
27
27
|
static get(editor) {
|
|
@@ -36,7 +36,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
36
36
|
this._ariaElement.style.position = 'fixed';
|
|
37
37
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
38
38
|
this._ariaElement.tabIndex = 0;
|
|
39
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
39
|
+
this._ariaElement.setAttribute('aria-description', ( localize(696, "Code with Inlay Hint Information")));
|
|
40
40
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
41
41
|
}
|
|
42
42
|
dispose() {
|
|
@@ -136,7 +136,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
136
136
|
constructor() {
|
|
137
137
|
super({
|
|
138
138
|
id: 'inlayHints.startReadingLineWithHint',
|
|
139
|
-
title: ( localize2(
|
|
139
|
+
title: ( localize2(697, "Read Line With Inline Hints")),
|
|
140
140
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
141
141
|
f1: true
|
|
142
142
|
});
|
|
@@ -150,7 +150,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
150
150
|
constructor() {
|
|
151
151
|
super({
|
|
152
152
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
153
|
-
title: ( localize2(
|
|
153
|
+
title: ( localize2(698, "Stop Inlay Hints Reading")),
|
|
154
154
|
precondition: InlayHintsAccessibility.IsReading,
|
|
155
155
|
f1: true,
|
|
156
156
|
keybinding: {
|
|
@@ -227,14 +227,14 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
227
227
|
delete options.position;
|
|
228
228
|
}
|
|
229
229
|
const widgetPosition = this._showWidget(options.headless ?? session?.headless, true, initPosition);
|
|
230
|
-
let errorMessage = ( localize(
|
|
230
|
+
let errorMessage = ( localize(5714, "Failed to start editor chat"));
|
|
231
231
|
if (!session) {
|
|
232
232
|
const createSessionCts = ( (new CancellationTokenSource()));
|
|
233
233
|
const msgListener = Event.once(this._messages.event)(m => {
|
|
234
234
|
this._log('state=_createSession) message received', m);
|
|
235
235
|
if (m === 32 ) {
|
|
236
236
|
options.autoSend = true;
|
|
237
|
-
this._ui.value.widget.updateInfo(( localize(
|
|
237
|
+
this._ui.value.widget.updateInfo(( localize(5715, "Getting ready...")));
|
|
238
238
|
}
|
|
239
239
|
else {
|
|
240
240
|
createSessionCts.cancel();
|
|
@@ -553,7 +553,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
553
553
|
let newPosition;
|
|
554
554
|
if (response.result?.errorDetails) ;
|
|
555
555
|
else if (response.response.value.length === 0) {
|
|
556
|
-
const status = ( localize(
|
|
556
|
+
const status = ( localize(5716, "No results, please refine your input and try again"));
|
|
557
557
|
this._ui.value.widget.updateStatus(status, { classes: ['warn'] });
|
|
558
558
|
}
|
|
559
559
|
else {
|
|
@@ -587,7 +587,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
587
587
|
await this._strategy.apply();
|
|
588
588
|
}
|
|
589
589
|
catch (err) {
|
|
590
|
-
this._dialogService.error(( localize(
|
|
590
|
+
this._dialogService.error(( localize(5717, "Failed to apply changes.", toErrorMessage(err))));
|
|
591
591
|
this._log('FAILED to apply changes');
|
|
592
592
|
this._log(err);
|
|
593
593
|
}
|
|
@@ -607,7 +607,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
607
607
|
undoCancelEdits = this._strategy.cancel();
|
|
608
608
|
}
|
|
609
609
|
catch (err) {
|
|
610
|
-
this._dialogService.error(( localize(
|
|
610
|
+
this._dialogService.error(( localize(5718, "Failed to discard changes.", toErrorMessage(err))));
|
|
611
611
|
this._log('FAILED to discard changes');
|
|
612
612
|
this._log(err);
|
|
613
613
|
}
|
|
@@ -733,7 +733,7 @@ let InlineChatController = InlineChatController_1 = class InlineChatController {
|
|
|
733
733
|
if (!this._session) {
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
const status = ( localize(
|
|
736
|
+
const status = ( localize(5719, "Accept or discard changes to continue saving."));
|
|
737
737
|
this._ui.value.widget.updateStatus(status, { classes: ['warn'] });
|
|
738
738
|
if (this._ui.value.position) {
|
|
739
739
|
this._editor.revealLineInCenterIfOutsideViewport(this._ui.value.position.lineNumber);
|
|
@@ -198,7 +198,7 @@ let InlineChatZoneWidget = class InlineChatZoneWidget extends ZoneWidget {
|
|
|
198
198
|
this.widget.reset();
|
|
199
199
|
this.widget.chatWidget.setVisible(false);
|
|
200
200
|
super.hide();
|
|
201
|
-
status(( localize(
|
|
201
|
+
status(( localize(10341, 'Closed inline chat widget')));
|
|
202
202
|
scrollState.restore(this.editor);
|
|
203
203
|
}
|
|
204
204
|
};
|
|
@@ -10,8 +10,8 @@ class ListResizeColumnAction extends Action2 {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'list.resizeColumn',
|
|
13
|
-
title: { value: ( localize(
|
|
14
|
-
category: { value: ( localize(
|
|
13
|
+
title: { value: ( localize(4600, "Resize Column")), original: 'Resize Column' },
|
|
14
|
+
category: { value: ( localize(4601, "List")), original: 'List' },
|
|
15
15
|
precondition: WorkbenchListFocusContextKey,
|
|
16
16
|
f1: true
|
|
17
17
|
});
|
|
@@ -16,14 +16,14 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
16
16
|
items.push({ label, index });
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(
|
|
19
|
+
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(10032, "Select the column to resize, type to filter.")) });
|
|
20
20
|
if (!column) {
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
const value = await this._quickInputService.input({
|
|
24
|
-
placeHolder: ( localize(
|
|
24
|
+
placeHolder: ( localize(10033, "i.e. 20, 60, 100...")),
|
|
25
25
|
prompt: ( localize(
|
|
26
|
-
|
|
26
|
+
10034,
|
|
27
27
|
"Please enter a width in percentage for the '{0}' column.",
|
|
28
28
|
column.label
|
|
29
29
|
)),
|
|
@@ -38,11 +38,11 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
38
38
|
async _validateColumnResizeValue(input) {
|
|
39
39
|
const percentage = Number.parseInt(input);
|
|
40
40
|
if (input && !Number.isInteger(percentage)) {
|
|
41
|
-
return ( localize(
|
|
41
|
+
return ( localize(10035, "Please enter an integer."));
|
|
42
42
|
}
|
|
43
43
|
else if (percentage < 0 || percentage > 100) {
|
|
44
44
|
return ( localize(
|
|
45
|
-
|
|
45
|
+
10036,
|
|
46
46
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
47
47
|
));
|
|
48
48
|
}
|
|
@@ -76,7 +76,7 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
|
|
|
76
76
|
return capabilities;
|
|
77
77
|
}
|
|
78
78
|
getName() {
|
|
79
|
-
return ( localize(
|
|
79
|
+
return ( localize(7809, "Merging: {0}", super.getName()));
|
|
80
80
|
}
|
|
81
81
|
async resolve() {
|
|
82
82
|
if (!this._inputModel) {
|
|
@@ -49,12 +49,12 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
|
49
49
|
this.activityBadge = this._register(( (new MutableDisposable())));
|
|
50
50
|
this._register(( (Registry.as(Extensions.ViewsRegistry))).registerViewWelcomeContent(TUNNEL_VIEW_ID, {
|
|
51
51
|
content: this.environmentService.remoteAuthority ? ( localize(
|
|
52
|
-
|
|
52
|
+
8927,
|
|
53
53
|
"No forwarded ports. Forward a port to access your running services locally.\n[Forward a Port]({0})",
|
|
54
54
|
`command:${ForwardPortAction.INLINE_ID}`
|
|
55
55
|
))
|
|
56
56
|
: ( localize(
|
|
57
|
-
|
|
57
|
+
8928,
|
|
58
58
|
"No forwarded ports. Forward a port to access your locally running services over the internet.\n[Forward a Port]({0})",
|
|
59
59
|
`command:${ForwardPortAction.INLINE_ID}`
|
|
60
60
|
)),
|
|
@@ -65,7 +65,7 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
|
65
65
|
async getViewContainer() {
|
|
66
66
|
return ( (Registry.as(Extensions.ViewContainersRegistry))).registerViewContainer({
|
|
67
67
|
id: TUNNEL_VIEW_CONTAINER_ID,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(8929, "Ports")),
|
|
69
69
|
icon: portsViewIcon,
|
|
70
70
|
ctorDescriptor: ( (new SyncDescriptor(
|
|
71
71
|
ViewPaneContainer,
|
|
@@ -127,7 +127,7 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
|
127
127
|
this.activityBadge.value = this.activityService.showViewActivity(TUNNEL_VIEW_ID, {
|
|
128
128
|
badge: ( (new NumberBadge(
|
|
129
129
|
this.remoteExplorerService.tunnelModel.forwarded.size,
|
|
130
|
-
n => n === 1 ? ( localize(
|
|
130
|
+
n => n === 1 ? ( localize(8930, "1 forwarded port")) : ( localize(8931, "{0} forwarded ports", n))
|
|
131
131
|
)))
|
|
132
132
|
});
|
|
133
133
|
}
|
|
@@ -145,19 +145,19 @@ let ForwardedPortsView = class ForwardedPortsView extends Disposable {
|
|
|
145
145
|
const count = this.remoteExplorerService.tunnelModel.forwarded.size + this.remoteExplorerService.tunnelModel.detected.size;
|
|
146
146
|
const text = `${count}`;
|
|
147
147
|
if (count === 0) {
|
|
148
|
-
tooltip = ( localize(
|
|
148
|
+
tooltip = ( localize(8932, "No Ports Forwarded"));
|
|
149
149
|
}
|
|
150
150
|
else {
|
|
151
151
|
const allTunnels = Array.from(( (this.remoteExplorerService.tunnelModel.forwarded.values())));
|
|
152
152
|
allTunnels.push(...Array.from(( (this.remoteExplorerService.tunnelModel.detected.values()))));
|
|
153
153
|
tooltip = ( localize(
|
|
154
|
-
|
|
154
|
+
8933,
|
|
155
155
|
"Forwarded Ports: {0}",
|
|
156
156
|
( (allTunnels.map(forwarded => forwarded.remotePort))).join(', ')
|
|
157
157
|
));
|
|
158
158
|
}
|
|
159
159
|
return {
|
|
160
|
-
name: ( localize(
|
|
160
|
+
name: ( localize(8934, "Forwarded Ports")),
|
|
161
161
|
text: `$(radio-tower) ${text}`,
|
|
162
162
|
ariaLabel: tooltip,
|
|
163
163
|
tooltip,
|
|
@@ -262,19 +262,19 @@ let AutomaticPortForwarding = class AutomaticPortForwarding extends Disposable {
|
|
|
262
262
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_HYBRID);
|
|
263
263
|
this.notificationService.notify({
|
|
264
264
|
message: ( localize(
|
|
265
|
-
|
|
265
|
+
8935,
|
|
266
266
|
"Over 20 ports have been automatically forwarded. The `process` based automatic port forwarding has been switched to `hybrid` in settings. Some ports may no longer be detected."
|
|
267
267
|
)),
|
|
268
268
|
severity: Severity$1.Warning,
|
|
269
269
|
actions: {
|
|
270
270
|
primary: [
|
|
271
|
-
( (new Action('switchBack', ( localize(
|
|
271
|
+
( (new Action('switchBack', ( localize(8936, "Undo")), undefined, true, async () => {
|
|
272
272
|
await this.configurationService.updateValue(PORT_AUTO_SOURCE_SETTING, PORT_AUTO_SOURCE_SETTING_PROCESS);
|
|
273
273
|
await this.configurationService.updateValue(PORT_AUTO_FALLBACK_SETTING, 0, 5 );
|
|
274
274
|
this.portListener?.dispose();
|
|
275
275
|
this.portListener = undefined;
|
|
276
276
|
}))),
|
|
277
|
-
( (new Action('showPortSourceSetting', ( localize(
|
|
277
|
+
( (new Action('showPortSourceSetting', ( localize(8937, "Show Setting")), undefined, true, async () => {
|
|
278
278
|
await this.preferencesService.openSettings({
|
|
279
279
|
query: 'remote.autoForwardPortsSource'
|
|
280
280
|
});
|
|
@@ -486,14 +486,14 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
486
486
|
const properties = await this.remoteExplorerService.tunnelModel.getAttributes([{ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }], false);
|
|
487
487
|
const label = properties?.get(tunnel.tunnelRemotePort)?.label;
|
|
488
488
|
return ( localize(
|
|
489
|
-
|
|
489
|
+
8938,
|
|
490
490
|
"Your application{0} running on port {1} is available. ",
|
|
491
491
|
label ? ` (${label})` : '',
|
|
492
492
|
tunnel.tunnelRemotePort
|
|
493
493
|
));
|
|
494
494
|
}
|
|
495
495
|
linkMessage() {
|
|
496
|
-
return ( localize(
|
|
496
|
+
return ( localize(8939, "[See all forwarded ports]({0})", `command:${TunnelPanel.ID}.focus`));
|
|
497
497
|
}
|
|
498
498
|
async showNotification(tunnel) {
|
|
499
499
|
if (!(await this.hostService.hadLastFocus())) {
|
|
@@ -507,7 +507,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
507
507
|
}
|
|
508
508
|
if ((tunnel.tunnelLocalPort !== tunnel.tunnelRemotePort) && this.tunnelService.canElevate && this.tunnelService.isPortPrivileged(tunnel.tunnelRemotePort)) {
|
|
509
509
|
message += ( localize(
|
|
510
|
-
|
|
510
|
+
8940,
|
|
511
511
|
"You'll need to run as superuser to use port {0} locally. ",
|
|
512
512
|
tunnel.tunnelRemotePort
|
|
513
513
|
));
|
|
@@ -527,7 +527,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
527
527
|
}
|
|
528
528
|
makePublicChoice(tunnel) {
|
|
529
529
|
return {
|
|
530
|
-
label: ( localize(
|
|
530
|
+
label: ( localize(8941, "Make Public")),
|
|
531
531
|
run: async () => {
|
|
532
532
|
const oldTunnelDetails = mapHasAddressLocalhostOrAllInterfaces(this.remoteExplorerService.tunnelModel.forwarded, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
533
533
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
@@ -558,7 +558,7 @@ class OnAutoForwardedAction extends Disposable {
|
|
|
558
558
|
}
|
|
559
559
|
elevateChoice(tunnel) {
|
|
560
560
|
return {
|
|
561
|
-
label: ( localize(
|
|
561
|
+
label: ( localize(8942, "Use Port {0} as Sudo...", tunnel.tunnelRemotePort)),
|
|
562
562
|
run: async () => {
|
|
563
563
|
await this.remoteExplorerService.close({ host: tunnel.tunnelRemoteHost, port: tunnel.tunnelRemotePort }, TunnelCloseReason.Other);
|
|
564
564
|
const newTunnel = await this.remoteExplorerService.forward({
|
|
@@ -2,22 +2,22 @@ import { localize } from '../../../../nls.js';
|
|
|
2
2
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
3
3
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
4
4
|
|
|
5
|
-
const getStartedIcon = registerIcon('remote-explorer-get-started', Codicon.star, ( localize(
|
|
6
|
-
const documentationIcon = registerIcon('remote-explorer-documentation', Codicon.book, ( localize(
|
|
7
|
-
registerIcon('remote-explorer-feedback', Codicon.twitter, ( localize(
|
|
8
|
-
const reviewIssuesIcon = registerIcon('remote-explorer-review-issues', Codicon.issues, ( localize(
|
|
9
|
-
const reportIssuesIcon = registerIcon('remote-explorer-report-issues', Codicon.comment, ( localize(
|
|
10
|
-
const remoteExplorerViewIcon = registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( localize(
|
|
11
|
-
const portsViewIcon = registerIcon('ports-view-icon', Codicon.plug, ( localize(
|
|
12
|
-
registerIcon('ports-view-icon', Codicon.plug, ( localize(
|
|
13
|
-
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( localize(
|
|
14
|
-
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( localize(
|
|
15
|
-
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( localize(
|
|
16
|
-
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( localize(
|
|
17
|
-
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( localize(
|
|
18
|
-
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( localize(
|
|
19
|
-
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( localize(
|
|
20
|
-
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( localize(
|
|
21
|
-
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( localize(
|
|
5
|
+
const getStartedIcon = registerIcon('remote-explorer-get-started', Codicon.star, ( localize(11114, 'Getting started icon in the remote explorer view.')));
|
|
6
|
+
const documentationIcon = registerIcon('remote-explorer-documentation', Codicon.book, ( localize(11115, 'Documentation icon in the remote explorer view.')));
|
|
7
|
+
registerIcon('remote-explorer-feedback', Codicon.twitter, ( localize(11116, 'Feedback icon in the remote explorer view.')));
|
|
8
|
+
const reviewIssuesIcon = registerIcon('remote-explorer-review-issues', Codicon.issues, ( localize(11117, 'Review issue icon in the remote explorer view.')));
|
|
9
|
+
const reportIssuesIcon = registerIcon('remote-explorer-report-issues', Codicon.comment, ( localize(11118, 'Report issue icon in the remote explorer view.')));
|
|
10
|
+
const remoteExplorerViewIcon = registerIcon('remote-explorer-view-icon', Codicon.remoteExplorer, ( localize(11119, 'View icon of the remote explorer view.')));
|
|
11
|
+
const portsViewIcon = registerIcon('ports-view-icon', Codicon.plug, ( localize(11120, 'View icon of the remote ports view.')));
|
|
12
|
+
registerIcon('ports-view-icon', Codicon.plug, ( localize(11121, 'Icon representing a remote port.')));
|
|
13
|
+
const privatePortIcon = registerIcon('private-ports-view-icon', Codicon.lock, ( localize(11122, 'Icon representing a private remote port.')));
|
|
14
|
+
const forwardPortIcon = registerIcon('ports-forward-icon', Codicon.plus, ( localize(11123, 'Icon for the forward action.')));
|
|
15
|
+
const stopForwardIcon = registerIcon('ports-stop-forward-icon', Codicon.x, ( localize(11124, 'Icon for the stop forwarding action.')));
|
|
16
|
+
const openBrowserIcon = registerIcon('ports-open-browser-icon', Codicon.globe, ( localize(11125, 'Icon for the open browser action.')));
|
|
17
|
+
const openPreviewIcon = registerIcon('ports-open-preview-icon', Codicon.openPreview, ( localize(11126, 'Icon for the open preview action.')));
|
|
18
|
+
const copyAddressIcon = registerIcon('ports-copy-address-icon', Codicon.clippy, ( localize(11127, 'Icon for the copy local address action.')));
|
|
19
|
+
const labelPortIcon = registerIcon('ports-label-icon', Codicon.tag, ( localize(11128, 'Icon for the label port action.')));
|
|
20
|
+
const forwardedPortWithoutProcessIcon = registerIcon('ports-forwarded-without-process-icon', Codicon.circleOutline, ( localize(11129, 'Icon for forwarded ports that don\'t have a running process.')));
|
|
21
|
+
const forwardedPortWithProcessIcon = registerIcon('ports-forwarded-with-process-icon', Codicon.circleFilled, ( localize(11130, 'Icon for forwarded ports that do have a running process.')));
|
|
22
22
|
|
|
23
23
|
export { copyAddressIcon, documentationIcon, forwardPortIcon, forwardedPortWithProcessIcon, forwardedPortWithoutProcessIcon, getStartedIcon, labelPortIcon, openBrowserIcon, openPreviewIcon, portsViewIcon, privatePortIcon, remoteExplorerViewIcon, reportIssuesIcon, reviewIssuesIcon, stopForwardIcon };
|