@codingame/monaco-vscode-api 1.83.5 → 1.83.6
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/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +786 -760
- package/monaco.js +1 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -226,12 +226,36 @@ let TabFocusMode = class TabFocusMode extends Disposable {
|
|
|
226
226
|
TabFocusMode = ( __decorate([
|
|
227
227
|
( __param(0, IConfigurationService))
|
|
228
228
|
], TabFocusMode));
|
|
229
|
-
const nlsSingleSelectionRange =
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
const
|
|
229
|
+
const nlsSingleSelectionRange = ( localizeWithPath(
|
|
230
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
231
|
+
'singleSelectionRange',
|
|
232
|
+
"Ln {0}, Col {1} ({2} selected)"
|
|
233
|
+
));
|
|
234
|
+
const nlsSingleSelection = ( localizeWithPath(
|
|
235
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
236
|
+
'singleSelection',
|
|
237
|
+
"Ln {0}, Col {1}"
|
|
238
|
+
));
|
|
239
|
+
const nlsMultiSelectionRange = ( localizeWithPath(
|
|
240
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
241
|
+
'multiSelectionRange',
|
|
242
|
+
"{0} selections ({1} characters selected)"
|
|
243
|
+
));
|
|
244
|
+
const nlsMultiSelection = ( localizeWithPath(
|
|
245
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
246
|
+
'multiSelection',
|
|
247
|
+
"{0} selections"
|
|
248
|
+
));
|
|
249
|
+
const nlsEOLLF = ( localizeWithPath(
|
|
250
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
251
|
+
'endOfLineLineFeed',
|
|
252
|
+
"LF"
|
|
253
|
+
));
|
|
254
|
+
const nlsEOLCRLF = ( localizeWithPath(
|
|
255
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
256
|
+
'endOfLineCarriageReturnLineFeed',
|
|
257
|
+
"CRLF"
|
|
258
|
+
));
|
|
235
259
|
let EditorStatus = class EditorStatus extends Disposable {
|
|
236
260
|
constructor(editorService, quickInputService, languageService, textFileService, statusbarService, instantiationService, configurationService) {
|
|
237
261
|
super();
|
|
@@ -278,10 +302,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
278
302
|
async showIndentationPicker() {
|
|
279
303
|
const activeTextEditorControl = getCodeEditor(this.editorService.activeTextEditorControl);
|
|
280
304
|
if (!activeTextEditorControl) {
|
|
281
|
-
return this.quickInputService.pick([{ label: localizeWithPath(
|
|
305
|
+
return this.quickInputService.pick([{ label: ( localizeWithPath(
|
|
306
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
307
|
+
'noEditor',
|
|
308
|
+
"No text editor active at this time"
|
|
309
|
+
)) }]);
|
|
282
310
|
}
|
|
283
311
|
if (this.editorService.activeEditor?.isReadonly()) {
|
|
284
|
-
return this.quickInputService.pick([{ label: localizeWithPath(
|
|
312
|
+
return this.quickInputService.pick([{ label: ( localizeWithPath(
|
|
313
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
314
|
+
'noWritableCodeEditor',
|
|
315
|
+
"The active code editor is read-only."
|
|
316
|
+
)) }]);
|
|
285
317
|
}
|
|
286
318
|
const picks = ( [
|
|
287
319
|
assertIsDefined(activeTextEditorControl.getAction(IndentUsingSpaces.ID)),
|
|
@@ -302,20 +334,44 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
302
334
|
}
|
|
303
335
|
};
|
|
304
336
|
}));
|
|
305
|
-
picks.splice(3, 0, { type: 'separator', label: localizeWithPath(
|
|
306
|
-
|
|
307
|
-
|
|
337
|
+
picks.splice(3, 0, { type: 'separator', label: ( localizeWithPath(
|
|
338
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
339
|
+
'indentConvert',
|
|
340
|
+
"convert file"
|
|
341
|
+
)) });
|
|
342
|
+
picks.unshift({ type: 'separator', label: ( localizeWithPath(
|
|
343
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
344
|
+
'indentView',
|
|
345
|
+
"change view"
|
|
346
|
+
)) });
|
|
347
|
+
const action = await this.quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
348
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
349
|
+
'pickAction',
|
|
350
|
+
"Select Action"
|
|
351
|
+
)), matchOnDetail: true });
|
|
308
352
|
return action?.run();
|
|
309
353
|
}
|
|
310
354
|
updateTabFocusModeElement(visible) {
|
|
311
355
|
if (visible) {
|
|
312
356
|
if (!this.tabFocusModeElement.value) {
|
|
313
|
-
const text = localizeWithPath(
|
|
357
|
+
const text = ( localizeWithPath(
|
|
358
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
359
|
+
'tabFocusModeEnabled',
|
|
360
|
+
"Tab Moves Focus"
|
|
361
|
+
));
|
|
314
362
|
this.tabFocusModeElement.value = this.statusbarService.addEntry({
|
|
315
|
-
name: localizeWithPath(
|
|
363
|
+
name: ( localizeWithPath(
|
|
364
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
365
|
+
'status.editor.tabFocusMode',
|
|
366
|
+
"Accessibility Mode"
|
|
367
|
+
)),
|
|
316
368
|
text,
|
|
317
369
|
ariaLabel: text,
|
|
318
|
-
tooltip: localizeWithPath(
|
|
370
|
+
tooltip: ( localizeWithPath(
|
|
371
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
372
|
+
'disableTabMode',
|
|
373
|
+
"Disable Accessibility Mode"
|
|
374
|
+
)),
|
|
319
375
|
command: 'editor.action.toggleTabFocusMode',
|
|
320
376
|
kind: 'prominent'
|
|
321
377
|
}, 'status.editor.tabFocusMode', 1 , 100.7);
|
|
@@ -328,12 +384,24 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
328
384
|
updateColumnSelectionModeElement(visible) {
|
|
329
385
|
if (visible) {
|
|
330
386
|
if (!this.columnSelectionModeElement.value) {
|
|
331
|
-
const text = localizeWithPath(
|
|
387
|
+
const text = ( localizeWithPath(
|
|
388
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
389
|
+
'columnSelectionModeEnabled',
|
|
390
|
+
"Column Selection"
|
|
391
|
+
));
|
|
332
392
|
this.columnSelectionModeElement.value = this.statusbarService.addEntry({
|
|
333
|
-
name: localizeWithPath(
|
|
393
|
+
name: ( localizeWithPath(
|
|
394
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
395
|
+
'status.editor.columnSelectionMode',
|
|
396
|
+
"Column Selection Mode"
|
|
397
|
+
)),
|
|
334
398
|
text,
|
|
335
399
|
ariaLabel: text,
|
|
336
|
-
tooltip: localizeWithPath(
|
|
400
|
+
tooltip: ( localizeWithPath(
|
|
401
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
402
|
+
'disableColumnSelectionMode',
|
|
403
|
+
"Disable Column Selection Mode"
|
|
404
|
+
)),
|
|
337
405
|
command: 'editor.action.toggleColumnSelection',
|
|
338
406
|
kind: 'prominent'
|
|
339
407
|
}, 'status.editor.columnSelectionMode', 1 , 100.8);
|
|
@@ -349,10 +417,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
349
417
|
return;
|
|
350
418
|
}
|
|
351
419
|
const props = {
|
|
352
|
-
name: localizeWithPath(
|
|
420
|
+
name: ( localizeWithPath(
|
|
421
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
422
|
+
'status.editor.selection',
|
|
423
|
+
"Editor Selection"
|
|
424
|
+
)),
|
|
353
425
|
text,
|
|
354
426
|
ariaLabel: text,
|
|
355
|
-
tooltip: localizeWithPath(
|
|
427
|
+
tooltip: ( localizeWithPath(
|
|
428
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
429
|
+
'gotoLine',
|
|
430
|
+
"Go to Line/Column"
|
|
431
|
+
)),
|
|
356
432
|
command: 'workbench.action.gotoLine'
|
|
357
433
|
};
|
|
358
434
|
this.updateElement(this.selectionElement, props, 'status.editor.selection', 1 , 100.5);
|
|
@@ -363,10 +439,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
363
439
|
return;
|
|
364
440
|
}
|
|
365
441
|
const props = {
|
|
366
|
-
name: localizeWithPath(
|
|
442
|
+
name: ( localizeWithPath(
|
|
443
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
444
|
+
'status.editor.indentation',
|
|
445
|
+
"Editor Indentation"
|
|
446
|
+
)),
|
|
367
447
|
text,
|
|
368
448
|
ariaLabel: text,
|
|
369
|
-
tooltip: localizeWithPath(
|
|
449
|
+
tooltip: ( localizeWithPath(
|
|
450
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
451
|
+
'selectIndentation',
|
|
452
|
+
"Select Indentation"
|
|
453
|
+
)),
|
|
370
454
|
command: 'changeEditorIndentation'
|
|
371
455
|
};
|
|
372
456
|
this.updateElement(this.indentationElement, props, 'status.editor.indentation', 1 , 100.4);
|
|
@@ -377,10 +461,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
377
461
|
return;
|
|
378
462
|
}
|
|
379
463
|
const props = {
|
|
380
|
-
name: localizeWithPath(
|
|
464
|
+
name: ( localizeWithPath(
|
|
465
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
466
|
+
'status.editor.encoding',
|
|
467
|
+
"Editor Encoding"
|
|
468
|
+
)),
|
|
381
469
|
text,
|
|
382
470
|
ariaLabel: text,
|
|
383
|
-
tooltip: localizeWithPath(
|
|
471
|
+
tooltip: ( localizeWithPath(
|
|
472
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
473
|
+
'selectEncoding',
|
|
474
|
+
"Select Encoding"
|
|
475
|
+
)),
|
|
384
476
|
command: 'workbench.action.editor.changeEncoding'
|
|
385
477
|
};
|
|
386
478
|
this.updateElement(this.encodingElement, props, 'status.editor.encoding', 1 , 100.3);
|
|
@@ -391,10 +483,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
391
483
|
return;
|
|
392
484
|
}
|
|
393
485
|
const props = {
|
|
394
|
-
name: localizeWithPath(
|
|
486
|
+
name: ( localizeWithPath(
|
|
487
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
488
|
+
'status.editor.eol',
|
|
489
|
+
"Editor End of Line"
|
|
490
|
+
)),
|
|
395
491
|
text,
|
|
396
492
|
ariaLabel: text,
|
|
397
|
-
tooltip: localizeWithPath(
|
|
493
|
+
tooltip: ( localizeWithPath(
|
|
494
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
495
|
+
'selectEOL',
|
|
496
|
+
"Select End of Line Sequence"
|
|
497
|
+
)),
|
|
398
498
|
command: 'workbench.action.editor.changeEOL'
|
|
399
499
|
};
|
|
400
500
|
this.updateElement(this.eolElement, props, 'status.editor.eol', 1 , 100.2);
|
|
@@ -405,10 +505,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
405
505
|
return;
|
|
406
506
|
}
|
|
407
507
|
const props = {
|
|
408
|
-
name: localizeWithPath(
|
|
508
|
+
name: ( localizeWithPath(
|
|
509
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
510
|
+
'status.editor.mode',
|
|
511
|
+
"Editor Language"
|
|
512
|
+
)),
|
|
409
513
|
text,
|
|
410
514
|
ariaLabel: text,
|
|
411
|
-
tooltip: localizeWithPath(
|
|
515
|
+
tooltip: ( localizeWithPath(
|
|
516
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
517
|
+
'selectLanguageMode',
|
|
518
|
+
"Select Language Mode"
|
|
519
|
+
)),
|
|
412
520
|
command: 'workbench.action.editor.changeLanguageMode'
|
|
413
521
|
};
|
|
414
522
|
this.updateElement(this.languageElement, props, 'status.editor.mode', 1 , 100.1);
|
|
@@ -419,10 +527,18 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
419
527
|
return;
|
|
420
528
|
}
|
|
421
529
|
const props = {
|
|
422
|
-
name: localizeWithPath(
|
|
530
|
+
name: ( localizeWithPath(
|
|
531
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
532
|
+
'status.editor.info',
|
|
533
|
+
"File Information"
|
|
534
|
+
)),
|
|
423
535
|
text,
|
|
424
536
|
ariaLabel: text,
|
|
425
|
-
tooltip: localizeWithPath(
|
|
537
|
+
tooltip: ( localizeWithPath(
|
|
538
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
539
|
+
'fileInfo',
|
|
540
|
+
"File Information"
|
|
541
|
+
))
|
|
426
542
|
};
|
|
427
543
|
this.updateElement(this.metadataElement, props, 'status.editor.info', 1 , 100);
|
|
428
544
|
}
|
|
@@ -576,9 +692,25 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
576
692
|
const modelOpts = model.getOptions();
|
|
577
693
|
update.indentation = (modelOpts.insertSpaces
|
|
578
694
|
? modelOpts.tabSize === modelOpts.indentSize
|
|
579
|
-
? localizeWithPath(
|
|
580
|
-
|
|
581
|
-
|
|
695
|
+
? ( localizeWithPath(
|
|
696
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
697
|
+
'spacesSize',
|
|
698
|
+
"Spaces: {0}",
|
|
699
|
+
modelOpts.indentSize
|
|
700
|
+
))
|
|
701
|
+
: ( localizeWithPath(
|
|
702
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
703
|
+
'spacesAndTabsSize',
|
|
704
|
+
"Spaces: {0} (Tab Size: {1})",
|
|
705
|
+
modelOpts.indentSize,
|
|
706
|
+
modelOpts.tabSize
|
|
707
|
+
))
|
|
708
|
+
: ( localizeWithPath(
|
|
709
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
710
|
+
{ key: 'tabSize', comment: ['Tab corresponds to the tab key'] },
|
|
711
|
+
"Tab Size: {0}",
|
|
712
|
+
modelOpts.tabSize
|
|
713
|
+
)));
|
|
582
714
|
}
|
|
583
715
|
}
|
|
584
716
|
this.updateState(update);
|
|
@@ -708,9 +840,17 @@ let ShowCurrentMarkerInStatusbarContribution = class ShowCurrentMarkerInStatusba
|
|
|
708
840
|
const line = splitLines(this.currentMarker.message)[0];
|
|
709
841
|
const text = `${this.getType(this.currentMarker)} ${line}`;
|
|
710
842
|
if (!this.statusBarEntryAccessor.value) {
|
|
711
|
-
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: localizeWithPath(
|
|
843
|
+
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: ( localizeWithPath(
|
|
844
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
845
|
+
'currentProblem',
|
|
846
|
+
"Current Problem"
|
|
847
|
+
)), text: '', ariaLabel: '' }, 'statusbar.currentProblem', 0 );
|
|
712
848
|
}
|
|
713
|
-
this.statusBarEntryAccessor.value.update({ name: localizeWithPath(
|
|
849
|
+
this.statusBarEntryAccessor.value.update({ name: ( localizeWithPath(
|
|
850
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
851
|
+
'currentProblem',
|
|
852
|
+
"Current Problem"
|
|
853
|
+
)), text, ariaLabel: text });
|
|
714
854
|
}
|
|
715
855
|
else {
|
|
716
856
|
this.statusBarEntryAccessor.clear();
|
|
@@ -804,7 +944,12 @@ let ShowLanguageExtensionsAction = class ShowLanguageExtensionsAction extends Ac
|
|
|
804
944
|
static { ShowLanguageExtensionsAction_1 = this; }
|
|
805
945
|
static { this.ID = 'workbench.action.showLanguageExtensions'; }
|
|
806
946
|
constructor(fileExtension, commandService, galleryService) {
|
|
807
|
-
super(ShowLanguageExtensionsAction_1.ID, localizeWithPath(
|
|
947
|
+
super(ShowLanguageExtensionsAction_1.ID, ( localizeWithPath(
|
|
948
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
949
|
+
'showLanguageExtensions',
|
|
950
|
+
"Search Marketplace Extensions for '{0}'...",
|
|
951
|
+
fileExtension
|
|
952
|
+
)));
|
|
808
953
|
this.fileExtension = fileExtension;
|
|
809
954
|
this.commandService = commandService;
|
|
810
955
|
this.enabled = galleryService.isEnabled();
|
|
@@ -822,7 +967,11 @@ class ChangeLanguageAction extends Action2 {
|
|
|
822
967
|
constructor() {
|
|
823
968
|
super({
|
|
824
969
|
id: ChangeLanguageAction.ID,
|
|
825
|
-
title: { value: localizeWithPath(
|
|
970
|
+
title: { value: ( localizeWithPath(
|
|
971
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
972
|
+
'changeMode',
|
|
973
|
+
"Change Language Mode"
|
|
974
|
+
)), original: 'Change Language Mode' },
|
|
826
975
|
f1: true,
|
|
827
976
|
keybinding: {
|
|
828
977
|
weight: 200 ,
|
|
@@ -843,7 +992,11 @@ class ChangeLanguageAction extends Action2 {
|
|
|
843
992
|
const telemetryService = accessor.get(ITelemetryService);
|
|
844
993
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
845
994
|
if (!activeTextEditorControl) {
|
|
846
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
995
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
996
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
997
|
+
'noEditor',
|
|
998
|
+
"No text editor active at this time"
|
|
999
|
+
)) }]);
|
|
847
1000
|
return;
|
|
848
1001
|
}
|
|
849
1002
|
const textModel = activeTextEditorControl.getModel();
|
|
@@ -864,10 +1017,20 @@ class ChangeLanguageAction extends Action2 {
|
|
|
864
1017
|
const extensions = languageService.getExtensions(languageId).join(' ');
|
|
865
1018
|
let description;
|
|
866
1019
|
if (currentLanguageName === languageName) {
|
|
867
|
-
description =
|
|
1020
|
+
description = ( localizeWithPath(
|
|
1021
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1022
|
+
'languageDescription',
|
|
1023
|
+
"({0}) - Configured Language",
|
|
1024
|
+
languageId
|
|
1025
|
+
));
|
|
868
1026
|
}
|
|
869
1027
|
else {
|
|
870
|
-
description =
|
|
1028
|
+
description = ( localizeWithPath(
|
|
1029
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1030
|
+
'languageDescriptionConfigured',
|
|
1031
|
+
"({0})",
|
|
1032
|
+
languageId
|
|
1033
|
+
));
|
|
871
1034
|
}
|
|
872
1035
|
return {
|
|
873
1036
|
label: languageName,
|
|
@@ -876,7 +1039,11 @@ class ChangeLanguageAction extends Action2 {
|
|
|
876
1039
|
description
|
|
877
1040
|
};
|
|
878
1041
|
}));
|
|
879
|
-
picks.unshift({ type: 'separator', label:
|
|
1042
|
+
picks.unshift({ type: 'separator', label: ( localizeWithPath(
|
|
1043
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1044
|
+
'languagesPicks',
|
|
1045
|
+
"languages (identifier)"
|
|
1046
|
+
)) });
|
|
880
1047
|
let configureLanguageAssociations;
|
|
881
1048
|
let configureLanguageSettings;
|
|
882
1049
|
let galleryAction;
|
|
@@ -886,16 +1053,34 @@ class ChangeLanguageAction extends Action2 {
|
|
|
886
1053
|
if (galleryAction.enabled) {
|
|
887
1054
|
picks.unshift(galleryAction);
|
|
888
1055
|
}
|
|
889
|
-
configureLanguageSettings = { label: localizeWithPath(
|
|
1056
|
+
configureLanguageSettings = { label: ( localizeWithPath(
|
|
1057
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1058
|
+
'configureModeSettings',
|
|
1059
|
+
"Configure '{0}' language based settings...",
|
|
1060
|
+
currentLanguageName
|
|
1061
|
+
)) };
|
|
890
1062
|
picks.unshift(configureLanguageSettings);
|
|
891
|
-
configureLanguageAssociations = { label: localizeWithPath(
|
|
1063
|
+
configureLanguageAssociations = { label: ( localizeWithPath(
|
|
1064
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1065
|
+
'configureAssociationsExt',
|
|
1066
|
+
"Configure File Association for '{0}'...",
|
|
1067
|
+
ext
|
|
1068
|
+
)) };
|
|
892
1069
|
picks.unshift(configureLanguageAssociations);
|
|
893
1070
|
}
|
|
894
1071
|
const autoDetectLanguage = {
|
|
895
|
-
label: localizeWithPath(
|
|
1072
|
+
label: ( localizeWithPath(
|
|
1073
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1074
|
+
'autoDetect',
|
|
1075
|
+
"Auto Detect"
|
|
1076
|
+
))
|
|
896
1077
|
};
|
|
897
1078
|
picks.unshift(autoDetectLanguage);
|
|
898
|
-
const pick = await quickInputService.pick(picks, { placeHolder: localizeWithPath(
|
|
1079
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
1080
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1081
|
+
'pickLanguage',
|
|
1082
|
+
"Select Language Mode"
|
|
1083
|
+
)), matchOnDescription: true });
|
|
899
1084
|
if (!pick) {
|
|
900
1085
|
return;
|
|
901
1086
|
}
|
|
@@ -977,11 +1162,20 @@ class ChangeLanguageAction extends Action2 {
|
|
|
977
1162
|
id: languageId,
|
|
978
1163
|
label: languageName,
|
|
979
1164
|
iconClasses: getIconClassesForLanguageId(languageId),
|
|
980
|
-
description: (languageId === currentAssociation) ? localizeWithPath(
|
|
1165
|
+
description: (languageId === currentAssociation) ? ( localizeWithPath(
|
|
1166
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1167
|
+
'currentAssociation',
|
|
1168
|
+
"Current Association"
|
|
1169
|
+
)) : undefined
|
|
981
1170
|
};
|
|
982
1171
|
}));
|
|
983
1172
|
setTimeout(async () => {
|
|
984
|
-
const language = await quickInputService.pick(picks, { placeHolder: localizeWithPath(
|
|
1173
|
+
const language = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
1174
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1175
|
+
'pickLanguageToConfigure',
|
|
1176
|
+
"Select Language Mode to Associate with '{0}'",
|
|
1177
|
+
extension || base
|
|
1178
|
+
)) });
|
|
985
1179
|
if (language) {
|
|
986
1180
|
const fileAssociationsConfig = configurationService.inspect(FILES_ASSOCIATIONS_CONFIG);
|
|
987
1181
|
let associationKey;
|
|
@@ -1006,7 +1200,11 @@ class ChangeEOLAction extends Action2 {
|
|
|
1006
1200
|
constructor() {
|
|
1007
1201
|
super({
|
|
1008
1202
|
id: 'workbench.action.editor.changeEOL',
|
|
1009
|
-
title: { value: localizeWithPath(
|
|
1203
|
+
title: { value: ( localizeWithPath(
|
|
1204
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1205
|
+
'changeEndOfLine',
|
|
1206
|
+
"Change End of Line Sequence"
|
|
1207
|
+
)), original: 'Change End of Line Sequence' },
|
|
1010
1208
|
f1: true
|
|
1011
1209
|
});
|
|
1012
1210
|
}
|
|
@@ -1015,11 +1213,19 @@ class ChangeEOLAction extends Action2 {
|
|
|
1015
1213
|
const quickInputService = accessor.get(IQuickInputService);
|
|
1016
1214
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1017
1215
|
if (!activeTextEditorControl) {
|
|
1018
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
1216
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
1217
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1218
|
+
'noEditor',
|
|
1219
|
+
"No text editor active at this time"
|
|
1220
|
+
)) }]);
|
|
1019
1221
|
return;
|
|
1020
1222
|
}
|
|
1021
1223
|
if (editorService.activeEditor?.isReadonly()) {
|
|
1022
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
1224
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
1225
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1226
|
+
'noWritableCodeEditor',
|
|
1227
|
+
"The active code editor is read-only."
|
|
1228
|
+
)) }]);
|
|
1023
1229
|
return;
|
|
1024
1230
|
}
|
|
1025
1231
|
let textModel = activeTextEditorControl.getModel();
|
|
@@ -1028,7 +1234,11 @@ class ChangeEOLAction extends Action2 {
|
|
|
1028
1234
|
{ label: nlsEOLCRLF, eol: 1 },
|
|
1029
1235
|
];
|
|
1030
1236
|
const selectedIndex = (textModel?.getEOL() === '\n') ? 0 : 1;
|
|
1031
|
-
const eol = await quickInputService.pick(EOLOptions, { placeHolder: localizeWithPath(
|
|
1237
|
+
const eol = await quickInputService.pick(EOLOptions, { placeHolder: ( localizeWithPath(
|
|
1238
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1239
|
+
'pickEndOfLine',
|
|
1240
|
+
"Select End of Line Sequence"
|
|
1241
|
+
)), activeItem: EOLOptions[selectedIndex] });
|
|
1032
1242
|
if (eol) {
|
|
1033
1243
|
const activeCodeEditor = getCodeEditor(editorService.activeTextEditorControl);
|
|
1034
1244
|
if (activeCodeEditor?.hasModel() && !editorService.activeEditor?.isReadonly()) {
|
|
@@ -1045,7 +1255,11 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1045
1255
|
constructor() {
|
|
1046
1256
|
super({
|
|
1047
1257
|
id: 'workbench.action.editor.changeEncoding',
|
|
1048
|
-
title: { value: localizeWithPath(
|
|
1258
|
+
title: { value: ( localizeWithPath(
|
|
1259
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1260
|
+
'changeEncoding',
|
|
1261
|
+
"Change File Encoding"
|
|
1262
|
+
)), original: 'Change File Encoding' },
|
|
1049
1263
|
f1: true
|
|
1050
1264
|
});
|
|
1051
1265
|
}
|
|
@@ -1057,21 +1271,41 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1057
1271
|
const textResourceConfigurationService = accessor.get(ITextResourceConfigurationService);
|
|
1058
1272
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1059
1273
|
if (!activeTextEditorControl) {
|
|
1060
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
1274
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
1275
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1276
|
+
'noEditor',
|
|
1277
|
+
"No text editor active at this time"
|
|
1278
|
+
)) }]);
|
|
1061
1279
|
return;
|
|
1062
1280
|
}
|
|
1063
1281
|
const activeEditorPane = editorService.activeEditorPane;
|
|
1064
1282
|
if (!activeEditorPane) {
|
|
1065
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
1283
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
1284
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1285
|
+
'noEditor',
|
|
1286
|
+
"No text editor active at this time"
|
|
1287
|
+
)) }]);
|
|
1066
1288
|
return;
|
|
1067
1289
|
}
|
|
1068
1290
|
const encodingSupport = toEditorWithEncodingSupport(activeEditorPane.input);
|
|
1069
1291
|
if (!encodingSupport) {
|
|
1070
|
-
await quickInputService.pick([{ label: localizeWithPath(
|
|
1292
|
+
await quickInputService.pick([{ label: ( localizeWithPath(
|
|
1293
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1294
|
+
'noFileEditor',
|
|
1295
|
+
"No file active at this time"
|
|
1296
|
+
)) }]);
|
|
1071
1297
|
return;
|
|
1072
1298
|
}
|
|
1073
|
-
const saveWithEncodingPick = { label: localizeWithPath(
|
|
1074
|
-
|
|
1299
|
+
const saveWithEncodingPick = { label: ( localizeWithPath(
|
|
1300
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1301
|
+
'saveWithEncoding',
|
|
1302
|
+
"Save with Encoding"
|
|
1303
|
+
)) };
|
|
1304
|
+
const reopenWithEncodingPick = { label: ( localizeWithPath(
|
|
1305
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1306
|
+
'reopenWithEncoding',
|
|
1307
|
+
"Reopen with Encoding"
|
|
1308
|
+
)) };
|
|
1075
1309
|
if (!Language.isDefaultVariant()) {
|
|
1076
1310
|
const saveWithEncodingAlias = 'Save with Encoding';
|
|
1077
1311
|
if (saveWithEncodingAlias !== saveWithEncodingPick.label) {
|
|
@@ -1090,7 +1324,11 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1090
1324
|
action = reopenWithEncodingPick;
|
|
1091
1325
|
}
|
|
1092
1326
|
else {
|
|
1093
|
-
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: localizeWithPath(
|
|
1327
|
+
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: ( localizeWithPath(
|
|
1328
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1329
|
+
'pickAction',
|
|
1330
|
+
"Select Action"
|
|
1331
|
+
)), matchOnDetail: true });
|
|
1094
1332
|
}
|
|
1095
1333
|
if (!action) {
|
|
1096
1334
|
return;
|
|
@@ -1137,10 +1375,22 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1137
1375
|
const items = picks.slice();
|
|
1138
1376
|
if (guessedEncoding && configuredEncoding !== guessedEncoding && SUPPORTED_ENCODINGS[guessedEncoding]) {
|
|
1139
1377
|
picks.unshift({ type: 'separator' });
|
|
1140
|
-
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: localizeWithPath(
|
|
1378
|
+
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: ( localizeWithPath(
|
|
1379
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1380
|
+
'guessedEncoding',
|
|
1381
|
+
"Guessed from content"
|
|
1382
|
+
)) });
|
|
1141
1383
|
}
|
|
1142
1384
|
const encoding = await quickInputService.pick(picks, {
|
|
1143
|
-
placeHolder: isReopenWithEncoding ?
|
|
1385
|
+
placeHolder: isReopenWithEncoding ? ( localizeWithPath(
|
|
1386
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1387
|
+
'pickEncodingForReopen',
|
|
1388
|
+
"Select File Encoding to Reopen File"
|
|
1389
|
+
)) : ( localizeWithPath(
|
|
1390
|
+
'vs/workbench/browser/parts/editor/editorStatus',
|
|
1391
|
+
'pickEncodingForSave',
|
|
1392
|
+
"Select File Encoding to Save with"
|
|
1393
|
+
)),
|
|
1144
1394
|
activeItem: items[typeof directMatchIndex === 'number' ? directMatchIndex : typeof aliasMatchIndex === 'number' ? aliasMatchIndex : -1]
|
|
1145
1395
|
});
|
|
1146
1396
|
if (!encoding) {
|
|
@@ -144,7 +144,11 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
|
|
|
144
144
|
if (this.input) {
|
|
145
145
|
return this.input.getName();
|
|
146
146
|
}
|
|
147
|
-
return localizeWithPath(
|
|
147
|
+
return ( localizeWithPath(
|
|
148
|
+
'vs/workbench/browser/parts/editor/sideBySideEditor',
|
|
149
|
+
'sideBySideEditor',
|
|
150
|
+
"Side by Side Editor"
|
|
151
|
+
));
|
|
148
152
|
}
|
|
149
153
|
async setInput(input, options, context, token) {
|
|
150
154
|
const oldInput = this.input;
|
|
@@ -18,7 +18,11 @@ class AbstractTextCodeEditor extends AbstractTextEditor {
|
|
|
18
18
|
if (this.input) {
|
|
19
19
|
return this.input.getName();
|
|
20
20
|
}
|
|
21
|
-
return localizeWithPath(
|
|
21
|
+
return ( localizeWithPath(
|
|
22
|
+
'vs/workbench/browser/parts/editor/textCodeEditor',
|
|
23
|
+
'textEditor',
|
|
24
|
+
"Text Editor"
|
|
25
|
+
));
|
|
22
26
|
}
|
|
23
27
|
createEditorControl(parent, initialOptions) {
|
|
24
28
|
this.editorControl = this._register(this.instantiationService.createInstance(CodeEditorWidget, parent, initialOptions, this.getCodeEditorWidgetOptions()));
|