@codingame/monaco-vscode-api 9.0.2 → 9.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/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +8 -8
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- 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/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- 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/features/hideUnchangedRegionsFeature.js +7 -7
- 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 +50 -50
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- 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/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- 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/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- 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/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- 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/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- 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/symbolIcons/browser/symbolIcons.js +33 -33
- 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/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +19 -19
- 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/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- 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/parts/editor/editorCommands.js +16 -16
- 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/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- 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/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- 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/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
- 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/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- 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/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +3 -3
- 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/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- 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/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +14 -14
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.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/notebookIcons.js +28 -28
- 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/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- 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/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
|
@@ -1,119 +1,119 @@
|
|
|
1
1
|
import { localize } from '../../nls.js';
|
|
2
2
|
var AccessibilityHelpNLS;
|
|
3
3
|
( ((function(AccessibilityHelpNLS) {
|
|
4
|
-
AccessibilityHelpNLS.accessibilityHelpTitle = ( localize(
|
|
5
|
-
AccessibilityHelpNLS.openingDocs = ( localize(
|
|
6
|
-
AccessibilityHelpNLS.readonlyDiffEditor = ( localize(
|
|
7
|
-
AccessibilityHelpNLS.editableDiffEditor = ( localize(
|
|
8
|
-
AccessibilityHelpNLS.readonlyEditor = ( localize(
|
|
9
|
-
AccessibilityHelpNLS.editableEditor = ( localize(
|
|
4
|
+
AccessibilityHelpNLS.accessibilityHelpTitle = ( localize(1234, "Accessibility Help"));
|
|
5
|
+
AccessibilityHelpNLS.openingDocs = ( localize(1235, "Opening the Accessibility documentation page."));
|
|
6
|
+
AccessibilityHelpNLS.readonlyDiffEditor = ( localize(1236, "You are in a read-only pane of a diff editor."));
|
|
7
|
+
AccessibilityHelpNLS.editableDiffEditor = ( localize(1237, "You are in a pane of a diff editor."));
|
|
8
|
+
AccessibilityHelpNLS.readonlyEditor = ( localize(1238, "You are in a read-only code editor."));
|
|
9
|
+
AccessibilityHelpNLS.editableEditor = ( localize(1239, "You are in a code editor."));
|
|
10
10
|
AccessibilityHelpNLS.changeConfigToOnMac = ( localize(
|
|
11
|
-
|
|
11
|
+
1240,
|
|
12
12
|
"Configure the application to be optimized for usage with a Screen Reader (Command+E)."
|
|
13
13
|
));
|
|
14
14
|
AccessibilityHelpNLS.changeConfigToOnWinLinux = ( localize(
|
|
15
|
-
|
|
15
|
+
1241,
|
|
16
16
|
"Configure the application to be optimized for usage with a Screen Reader (Control+E)."
|
|
17
17
|
));
|
|
18
18
|
AccessibilityHelpNLS.auto_on = ( localize(
|
|
19
|
-
|
|
19
|
+
1242,
|
|
20
20
|
"The application is configured to be optimized for usage with a Screen Reader."
|
|
21
21
|
));
|
|
22
22
|
AccessibilityHelpNLS.auto_off = ( localize(
|
|
23
|
-
|
|
23
|
+
1243,
|
|
24
24
|
"The application is configured to never be optimized for usage with a Screen Reader."
|
|
25
25
|
));
|
|
26
|
-
AccessibilityHelpNLS.screenReaderModeEnabled = ( localize(
|
|
27
|
-
AccessibilityHelpNLS.screenReaderModeDisabled = ( localize(
|
|
26
|
+
AccessibilityHelpNLS.screenReaderModeEnabled = ( localize(1244, "Screen Reader Optimized Mode enabled."));
|
|
27
|
+
AccessibilityHelpNLS.screenReaderModeDisabled = ( localize(1245, "Screen Reader Optimized Mode disabled."));
|
|
28
28
|
AccessibilityHelpNLS.tabFocusModeOnMsg = ( localize(
|
|
29
|
-
|
|
29
|
+
1246,
|
|
30
30
|
"Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior{0}.",
|
|
31
31
|
'<keybinding:editor.action.toggleTabFocusMode>'
|
|
32
32
|
));
|
|
33
33
|
AccessibilityHelpNLS.tabFocusModeOffMsg = ( localize(
|
|
34
|
-
|
|
34
|
+
1247,
|
|
35
35
|
"Pressing Tab in the current editor will insert the tab character. Toggle this behavior{0}.",
|
|
36
36
|
'<keybinding:editor.action.toggleTabFocusMode>'
|
|
37
37
|
));
|
|
38
38
|
AccessibilityHelpNLS.stickScroll = ( localize(
|
|
39
|
-
|
|
39
|
+
1248,
|
|
40
40
|
"Focus Sticky Scroll{0} to focus the currently nested scopes.",
|
|
41
41
|
'<keybinding:editor.action.focusStickyDebugConsole>'
|
|
42
42
|
));
|
|
43
43
|
AccessibilityHelpNLS.codeFolding = ( localize(
|
|
44
|
-
|
|
44
|
+
1249,
|
|
45
45
|
"Use code folding to collapse blocks of code and focus on the code you're interested in via the Toggle Folding Command{0}.",
|
|
46
46
|
'<keybinding:editor.toggleFold>'
|
|
47
47
|
));
|
|
48
48
|
AccessibilityHelpNLS.intellisense = ( localize(
|
|
49
|
-
|
|
49
|
+
1250,
|
|
50
50
|
"Use Intellisense to improve coding efficiency and reduce errors. Trigger suggestions{0}.",
|
|
51
51
|
'<keybinding:editor.action.triggerSuggest>'
|
|
52
52
|
));
|
|
53
53
|
AccessibilityHelpNLS.showOrFocusHover = ( localize(
|
|
54
|
-
|
|
54
|
+
1251,
|
|
55
55
|
"Show or focus the hover{0} to read information about the current symbol.",
|
|
56
56
|
'<keybinding:editor.action.showHover>'
|
|
57
57
|
));
|
|
58
58
|
AccessibilityHelpNLS.goToSymbol = ( localize(
|
|
59
|
-
|
|
59
|
+
1252,
|
|
60
60
|
"Go to Symbol{0} to quickly navigate between symbols in the current file.",
|
|
61
61
|
'<keybinding:workbench.action.gotoSymbol>'
|
|
62
62
|
));
|
|
63
|
-
AccessibilityHelpNLS.showAccessibilityHelpAction = ( localize(
|
|
63
|
+
AccessibilityHelpNLS.showAccessibilityHelpAction = ( localize(1253, "Show Accessibility Help"));
|
|
64
64
|
AccessibilityHelpNLS.listSignalSounds = ( localize(
|
|
65
|
-
|
|
65
|
+
1254,
|
|
66
66
|
"Run the command: List Signal Sounds for an overview of all sounds and their current status."
|
|
67
67
|
));
|
|
68
68
|
AccessibilityHelpNLS.listAlerts = ( localize(
|
|
69
|
-
|
|
69
|
+
1255,
|
|
70
70
|
"Run the command: List Signal Announcements for an overview of announcements and their current status."
|
|
71
71
|
));
|
|
72
72
|
AccessibilityHelpNLS.quickChat = ( localize(
|
|
73
|
-
|
|
73
|
+
1256,
|
|
74
74
|
"Toggle quick chat{0} to open or close a chat session.",
|
|
75
75
|
'<keybinding:workbench.action.quickchat.toggle>'
|
|
76
76
|
));
|
|
77
77
|
AccessibilityHelpNLS.startInlineChat = ( localize(
|
|
78
|
-
|
|
78
|
+
1257,
|
|
79
79
|
"Start inline chat{0} to create an in editor chat session.",
|
|
80
80
|
'<keybinding:inlineChat.start>'
|
|
81
81
|
));
|
|
82
82
|
AccessibilityHelpNLS.startDebugging = ( localize(
|
|
83
|
-
|
|
83
|
+
1258,
|
|
84
84
|
"The Debug: Start Debugging command{0} will start a debug session.",
|
|
85
85
|
'<keybinding:workbench.action.debug.start>'
|
|
86
86
|
));
|
|
87
87
|
AccessibilityHelpNLS.setBreakpoint = ( localize(
|
|
88
|
-
|
|
88
|
+
1259,
|
|
89
89
|
"The Debug: Inline Breakpoint command{0} will set or unset a breakpoint at the current cursor position in the active editor.",
|
|
90
90
|
'<keybinding:editor.debug.action.toggleInlineBreakpoint>'
|
|
91
91
|
));
|
|
92
92
|
AccessibilityHelpNLS.addToWatch = ( localize(
|
|
93
|
-
|
|
93
|
+
1260,
|
|
94
94
|
"The Debug: Add to Watch command{0} will add the selected text to the watch view.",
|
|
95
95
|
'<keybinding:editor.debug.action.selectionToWatch>'
|
|
96
96
|
));
|
|
97
97
|
AccessibilityHelpNLS.debugExecuteSelection = ( localize(
|
|
98
|
-
|
|
98
|
+
1261,
|
|
99
99
|
"The Debug: Execute Selection command{0} will execute the selected text in the debug console.",
|
|
100
100
|
'<keybinding:editor.debug.action.selectionToRepl>'
|
|
101
101
|
));
|
|
102
102
|
})(AccessibilityHelpNLS || (AccessibilityHelpNLS = {}))));
|
|
103
103
|
var InspectTokensNLS;
|
|
104
104
|
( ((function(InspectTokensNLS) {
|
|
105
|
-
InspectTokensNLS.inspectTokensAction = ( localize(
|
|
105
|
+
InspectTokensNLS.inspectTokensAction = ( localize(1262, "Developer: Inspect Tokens"));
|
|
106
106
|
})(InspectTokensNLS || (InspectTokensNLS = {}))));
|
|
107
107
|
var StandaloneCodeEditorNLS;
|
|
108
108
|
( ((function(StandaloneCodeEditorNLS) {
|
|
109
|
-
StandaloneCodeEditorNLS.editorViewAccessibleLabel = ( localize(
|
|
109
|
+
StandaloneCodeEditorNLS.editorViewAccessibleLabel = ( localize(1269, "Editor content"));
|
|
110
110
|
})(StandaloneCodeEditorNLS || (StandaloneCodeEditorNLS = {}))));
|
|
111
111
|
var ToggleHighContrastNLS;
|
|
112
112
|
( ((function(ToggleHighContrastNLS) {
|
|
113
|
-
ToggleHighContrastNLS.toggleHighContrast = ( localize(
|
|
113
|
+
ToggleHighContrastNLS.toggleHighContrast = ( localize(1270, "Toggle High Contrast Theme"));
|
|
114
114
|
})(ToggleHighContrastNLS || (ToggleHighContrastNLS = {}))));
|
|
115
115
|
var StandaloneServicesNLS;
|
|
116
116
|
( ((function(StandaloneServicesNLS) {
|
|
117
|
-
StandaloneServicesNLS.bulkEditServiceSummary = ( localize(
|
|
117
|
+
StandaloneServicesNLS.bulkEditServiceSummary = ( localize(1271, "Made {0} edits in {1} files"));
|
|
118
118
|
})(StandaloneServicesNLS || (StandaloneServicesNLS = {}))));
|
|
119
119
|
export { AccessibilityHelpNLS, InspectTokensNLS, StandaloneCodeEditorNLS, StandaloneServicesNLS, ToggleHighContrastNLS };
|
|
@@ -893,7 +893,7 @@ function _renderLine(input, sb) {
|
|
|
893
893
|
}
|
|
894
894
|
if (isOverflowing) {
|
|
895
895
|
sb.appendString('<span class="mtkoverflow">');
|
|
896
|
-
sb.appendString(( localize(
|
|
896
|
+
sb.appendString(( localize(9987, "Show more ({0})", renderOverflowingCharCount(overflowingCharCount))));
|
|
897
897
|
sb.appendString('</span>');
|
|
898
898
|
}
|
|
899
899
|
sb.appendString('</span>');
|
|
@@ -906,7 +906,7 @@ function to4CharHex(n) {
|
|
|
906
906
|
}
|
|
907
907
|
function renderOverflowingCharCount(n) {
|
|
908
908
|
if (n < 1024) {
|
|
909
|
-
return ( localize(
|
|
909
|
+
return ( localize(9988, "{0} chars", n));
|
|
910
910
|
}
|
|
911
911
|
if (n < 1024 * 1024) {
|
|
912
912
|
return `${(n / 1024).toFixed(1)} KB`;
|
|
@@ -34,12 +34,12 @@ let SelectionAnchorController = class SelectionAnchorController {
|
|
|
34
34
|
this.decorationId = accessor.addDecoration(Selection.fromPositions(position, position), {
|
|
35
35
|
description: 'selection-anchor',
|
|
36
36
|
stickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,
|
|
37
|
-
hoverMessage: ( (new MarkdownString())).appendText(( localize(
|
|
37
|
+
hoverMessage: ( (new MarkdownString())).appendText(( localize(1340, "Selection Anchor"))),
|
|
38
38
|
className: 'selection-anchor'
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
this.selectionAnchorSetContextKey.set(!!this.decorationId);
|
|
42
|
-
alert(( localize(
|
|
42
|
+
alert(( localize(1341, "Anchor set at {0}:{1}", position.lineNumber, position.column)));
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
goToSelectionAnchor() {
|
|
@@ -82,7 +82,7 @@ class SetSelectionAnchor extends EditorAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: 'editor.action.setSelectionAnchor',
|
|
85
|
-
label: ( localize(
|
|
85
|
+
label: ( localize(1342, "Set Selection Anchor")),
|
|
86
86
|
alias: 'Set Selection Anchor',
|
|
87
87
|
precondition: undefined,
|
|
88
88
|
kbOpts: {
|
|
@@ -100,7 +100,7 @@ class GoToSelectionAnchor extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'editor.action.goToSelectionAnchor',
|
|
103
|
-
label: ( localize(
|
|
103
|
+
label: ( localize(1343, "Go to Selection Anchor")),
|
|
104
104
|
alias: 'Go to Selection Anchor',
|
|
105
105
|
precondition: SelectionAnchorSet,
|
|
106
106
|
});
|
|
@@ -113,7 +113,7 @@ class SelectFromAnchorToCursor extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.action.selectFromAnchorToCursor',
|
|
116
|
-
label: ( localize(
|
|
116
|
+
label: ( localize(1344, "Select from Anchor to Cursor")),
|
|
117
117
|
alias: 'Select from Anchor to Cursor',
|
|
118
118
|
precondition: SelectionAnchorSet,
|
|
119
119
|
kbOpts: {
|
|
@@ -131,7 +131,7 @@ class CancelSelectionAnchor extends EditorAction {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
id: 'editor.action.cancelSelectionAnchor',
|
|
134
|
-
label: ( localize(
|
|
134
|
+
label: ( localize(1345, "Cancel Selection Anchor")),
|
|
135
135
|
alias: 'Cancel Selection Anchor',
|
|
136
136
|
precondition: SelectionAnchorSet,
|
|
137
137
|
kbOpts: {
|
|
@@ -25,12 +25,12 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
25
25
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
26
26
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
27
27
|
import { themeColorFromId } from '../../../../platform/theme/common/themeService.js';
|
|
28
|
-
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', ( localize(
|
|
28
|
+
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', ( localize(1346, 'Overview ruler marker color for matching brackets.')));
|
|
29
29
|
class JumpToBracketAction extends EditorAction {
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: 'editor.action.jumpToBracket',
|
|
33
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(1347, "Go to Bracket")),
|
|
34
34
|
alias: 'Go to Bracket',
|
|
35
35
|
precondition: undefined,
|
|
36
36
|
kbOpts: {
|
|
@@ -48,11 +48,11 @@ class SelectToBracketAction extends EditorAction {
|
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
50
50
|
id: 'editor.action.selectToBracket',
|
|
51
|
-
label: ( localize(
|
|
51
|
+
label: ( localize(1348, "Select to Bracket")),
|
|
52
52
|
alias: 'Select to Bracket',
|
|
53
53
|
precondition: undefined,
|
|
54
54
|
metadata: {
|
|
55
|
-
description: ( localize2(
|
|
55
|
+
description: ( localize2(1349, "Select the text inside and including the brackets or curly braces")),
|
|
56
56
|
args: [{
|
|
57
57
|
name: 'args',
|
|
58
58
|
schema: {
|
|
@@ -80,7 +80,7 @@ class RemoveBracketsAction extends EditorAction {
|
|
|
80
80
|
constructor() {
|
|
81
81
|
super({
|
|
82
82
|
id: 'editor.action.removeBrackets',
|
|
83
|
-
label: ( localize(
|
|
83
|
+
label: ( localize(1350, "Remove Brackets")),
|
|
84
84
|
alias: 'Remove Brackets',
|
|
85
85
|
precondition: undefined,
|
|
86
86
|
kbOpts: {
|
|
@@ -353,7 +353,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
353
353
|
group: '5_infile_nav',
|
|
354
354
|
command: {
|
|
355
355
|
id: 'editor.action.jumpToBracket',
|
|
356
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(1351, "Go to &&Bracket"))
|
|
357
357
|
},
|
|
358
358
|
order: 2
|
|
359
359
|
});
|
|
@@ -25,7 +25,7 @@ class MoveCaretLeftAction extends MoveCaretAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super(true, {
|
|
27
27
|
id: 'editor.action.moveCarretLeftAction',
|
|
28
|
-
label: ( localize(
|
|
28
|
+
label: ( localize(1352, "Move Selected Text Left")),
|
|
29
29
|
alias: 'Move Selected Text Left',
|
|
30
30
|
precondition: EditorContextKeys.writable
|
|
31
31
|
});
|
|
@@ -35,7 +35,7 @@ class MoveCaretRightAction extends MoveCaretAction {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
super(false, {
|
|
37
37
|
id: 'editor.action.moveCarretRightAction',
|
|
38
|
-
label: ( localize(
|
|
38
|
+
label: ( localize(1353, "Move Selected Text Right")),
|
|
39
39
|
alias: 'Move Selected Text Right',
|
|
40
40
|
precondition: EditorContextKeys.writable
|
|
41
41
|
});
|
|
@@ -10,7 +10,7 @@ class TransposeLettersAction extends EditorAction {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
super({
|
|
12
12
|
id: 'editor.action.transposeLetters',
|
|
13
|
-
label: ( localize(
|
|
13
|
+
label: ( localize(1363, "Transpose Letters")),
|
|
14
14
|
alias: 'Transpose Letters',
|
|
15
15
|
precondition: EditorContextKeys.writable,
|
|
16
16
|
kbOpts: {
|
|
@@ -34,23 +34,23 @@ const CutAction = supportsCut ? registerCommand(( (new MultiCommand({
|
|
|
34
34
|
menuOpts: [{
|
|
35
35
|
menuId: MenuId.MenubarEditMenu,
|
|
36
36
|
group: '2_ccp',
|
|
37
|
-
title: ( localize(
|
|
37
|
+
title: ( localize(1354, "Cu&&t")),
|
|
38
38
|
order: 1
|
|
39
39
|
}, {
|
|
40
40
|
menuId: MenuId.EditorContext,
|
|
41
41
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
42
|
-
title: ( localize(
|
|
42
|
+
title: ( localize(1355, "Cut")),
|
|
43
43
|
when: EditorContextKeys.writable,
|
|
44
44
|
order: 1,
|
|
45
45
|
}, {
|
|
46
46
|
menuId: MenuId.CommandPalette,
|
|
47
47
|
group: '',
|
|
48
|
-
title: ( localize(
|
|
48
|
+
title: ( localize(1355, "Cut")),
|
|
49
49
|
order: 1
|
|
50
50
|
}, {
|
|
51
51
|
menuId: MenuId.SimpleEditorContext,
|
|
52
52
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
53
|
-
title: ( localize(
|
|
53
|
+
title: ( localize(1355, "Cut")),
|
|
54
54
|
when: EditorContextKeys.writable,
|
|
55
55
|
order: 1,
|
|
56
56
|
}]
|
|
@@ -67,32 +67,32 @@ const CopyAction = supportsCopy ? registerCommand(( (new MultiCommand({
|
|
|
67
67
|
menuOpts: [{
|
|
68
68
|
menuId: MenuId.MenubarEditMenu,
|
|
69
69
|
group: '2_ccp',
|
|
70
|
-
title: ( localize(
|
|
70
|
+
title: ( localize(1356, "&&Copy")),
|
|
71
71
|
order: 2
|
|
72
72
|
}, {
|
|
73
73
|
menuId: MenuId.EditorContext,
|
|
74
74
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
75
|
-
title: ( localize(
|
|
75
|
+
title: ( localize(1357, "Copy")),
|
|
76
76
|
order: 2,
|
|
77
77
|
}, {
|
|
78
78
|
menuId: MenuId.CommandPalette,
|
|
79
79
|
group: '',
|
|
80
|
-
title: ( localize(
|
|
80
|
+
title: ( localize(1357, "Copy")),
|
|
81
81
|
order: 1
|
|
82
82
|
}, {
|
|
83
83
|
menuId: MenuId.SimpleEditorContext,
|
|
84
84
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
85
|
-
title: ( localize(
|
|
85
|
+
title: ( localize(1357, "Copy")),
|
|
86
86
|
order: 2,
|
|
87
87
|
}]
|
|
88
88
|
})))) : undefined;
|
|
89
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: ( localize2(
|
|
90
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: ( localize2(
|
|
91
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: ( localize2(
|
|
89
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: ( localize2(1358, "Copy As")), group: '2_ccp', order: 3 });
|
|
90
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: ( localize2(1358, "Copy As")), group: CLIPBOARD_CONTEXT_MENU_GROUP, order: 3 });
|
|
91
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: ( localize2(1359, "Share")), group: '11_share', order: -1, when: ( (ContextKeyExpr.and(
|
|
92
92
|
(ContextKeyExpr.notEquals('resourceScheme', 'output')),
|
|
93
93
|
EditorContextKeys.editorTextFocus
|
|
94
94
|
))) });
|
|
95
|
-
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: ( localize2(
|
|
95
|
+
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: ( localize2(1359, "Share")), group: '11_share', order: -1 });
|
|
96
96
|
const PasteAction = supportsPaste ? registerCommand(( (new MultiCommand({
|
|
97
97
|
id: 'editor.action.clipboardPasteAction',
|
|
98
98
|
precondition: undefined,
|
|
@@ -106,23 +106,23 @@ const PasteAction = supportsPaste ? registerCommand(( (new MultiCommand({
|
|
|
106
106
|
menuOpts: [{
|
|
107
107
|
menuId: MenuId.MenubarEditMenu,
|
|
108
108
|
group: '2_ccp',
|
|
109
|
-
title: ( localize(
|
|
109
|
+
title: ( localize(1360, "&&Paste")),
|
|
110
110
|
order: 4
|
|
111
111
|
}, {
|
|
112
112
|
menuId: MenuId.EditorContext,
|
|
113
113
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
114
|
-
title: ( localize(
|
|
114
|
+
title: ( localize(1361, "Paste")),
|
|
115
115
|
when: EditorContextKeys.writable,
|
|
116
116
|
order: 4,
|
|
117
117
|
}, {
|
|
118
118
|
menuId: MenuId.CommandPalette,
|
|
119
119
|
group: '',
|
|
120
|
-
title: ( localize(
|
|
120
|
+
title: ( localize(1361, "Paste")),
|
|
121
121
|
order: 1
|
|
122
122
|
}, {
|
|
123
123
|
menuId: MenuId.SimpleEditorContext,
|
|
124
124
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
125
|
-
title: ( localize(
|
|
125
|
+
title: ( localize(1361, "Paste")),
|
|
126
126
|
when: EditorContextKeys.writable,
|
|
127
127
|
order: 4,
|
|
128
128
|
}]
|
|
@@ -131,7 +131,7 @@ class ExecCommandCopyWithSyntaxHighlightingAction extends EditorAction {
|
|
|
131
131
|
constructor() {
|
|
132
132
|
super({
|
|
133
133
|
id: 'editor.action.clipboardCopyWithSyntaxHighlightingAction',
|
|
134
|
-
label: ( localize(
|
|
134
|
+
label: ( localize(1362, "Copy With Syntax Highlighting")),
|
|
135
135
|
alias: 'Copy With Syntax Highlighting',
|
|
136
136
|
precondition: undefined,
|
|
137
137
|
kbOpts: {
|
|
@@ -24,23 +24,23 @@ const argsSchema = {
|
|
|
24
24
|
properties: {
|
|
25
25
|
'kind': {
|
|
26
26
|
type: 'string',
|
|
27
|
-
description: ( localize(
|
|
27
|
+
description: ( localize(4980, "Kind of the code action to run.")),
|
|
28
28
|
},
|
|
29
29
|
'apply': {
|
|
30
30
|
type: 'string',
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(4981, "Controls when the returned actions are applied.")),
|
|
32
32
|
default: CodeActionAutoApply.IfSingle,
|
|
33
33
|
enum: [CodeActionAutoApply.First, CodeActionAutoApply.IfSingle, CodeActionAutoApply.Never],
|
|
34
34
|
enumDescriptions: [
|
|
35
|
-
( localize(
|
|
36
|
-
( localize(
|
|
37
|
-
( localize(
|
|
35
|
+
( localize(4982, "Always apply the first returned code action.")),
|
|
36
|
+
( localize(4983, "Apply the first returned code action if it is the only one.")),
|
|
37
|
+
( localize(4984, "Do not apply the returned code actions.")),
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
'preferred': {
|
|
41
41
|
type: 'boolean',
|
|
42
42
|
default: false,
|
|
43
|
-
description: ( localize(
|
|
43
|
+
description: ( localize(4985, "Controls if only preferred code actions should be returned.")),
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -54,7 +54,7 @@ class QuickFixAction extends EditorAction {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: quickFixCommandId,
|
|
57
|
-
label: ( localize(
|
|
57
|
+
label: ( localize(4986, "Quick Fix...")),
|
|
58
58
|
alias: 'Quick Fix...',
|
|
59
59
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider))),
|
|
60
60
|
kbOpts: {
|
|
@@ -65,7 +65,7 @@ class QuickFixAction extends EditorAction {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
run(_accessor, editor) {
|
|
68
|
-
return triggerCodeActionsForEditorSelection(editor, ( localize(
|
|
68
|
+
return triggerCodeActionsForEditorSelection(editor, ( localize(4987, "No code actions available")), undefined, undefined, CodeActionTriggerSource.QuickFix);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
class CodeActionCommand extends EditorCommand {
|
|
@@ -86,11 +86,11 @@ class CodeActionCommand extends EditorCommand {
|
|
|
86
86
|
});
|
|
87
87
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
88
88
|
? args.preferred
|
|
89
|
-
? ( localize(
|
|
90
|
-
: ( localize(
|
|
89
|
+
? ( localize(4988, "No preferred code actions for '{0}' available", userArgs.kind))
|
|
90
|
+
: ( localize(4989, "No code actions for '{0}' available", userArgs.kind))
|
|
91
91
|
: args.preferred
|
|
92
|
-
? ( localize(
|
|
93
|
-
: ( localize(
|
|
92
|
+
? ( localize(4990, "No preferred code actions available"))
|
|
93
|
+
: ( localize(4991, "No code actions available")), {
|
|
94
94
|
include: args.kind,
|
|
95
95
|
includeSourceActions: true,
|
|
96
96
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -101,7 +101,7 @@ class RefactorAction extends EditorAction {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: refactorCommandId,
|
|
104
|
-
label: ( localize(
|
|
104
|
+
label: ( localize(4992, "Refactor...")),
|
|
105
105
|
alias: 'Refactor...',
|
|
106
106
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider))),
|
|
107
107
|
kbOpts: {
|
|
@@ -133,11 +133,11 @@ class RefactorAction extends EditorAction {
|
|
|
133
133
|
});
|
|
134
134
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
135
135
|
? args.preferred
|
|
136
|
-
? ( localize(
|
|
137
|
-
: ( localize(
|
|
136
|
+
? ( localize(4993, "No preferred refactorings for '{0}' available", userArgs.kind))
|
|
137
|
+
: ( localize(4994, "No refactorings for '{0}' available", userArgs.kind))
|
|
138
138
|
: args.preferred
|
|
139
|
-
? ( localize(
|
|
140
|
-
: ( localize(
|
|
139
|
+
? ( localize(4995, "No preferred refactorings available"))
|
|
140
|
+
: ( localize(4996, "No refactorings available")), {
|
|
141
141
|
include: CodeActionKind.Refactor.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
142
142
|
onlyIncludePreferredActions: args.preferred
|
|
143
143
|
}, args.apply, CodeActionTriggerSource.Refactor);
|
|
@@ -147,7 +147,7 @@ class SourceAction extends EditorAction {
|
|
|
147
147
|
constructor() {
|
|
148
148
|
super({
|
|
149
149
|
id: sourceActionCommandId,
|
|
150
|
-
label: ( localize(
|
|
150
|
+
label: ( localize(4997, "Source Action...")),
|
|
151
151
|
alias: 'Source Action...',
|
|
152
152
|
precondition: ( (ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider))),
|
|
153
153
|
contextMenuOpts: {
|
|
@@ -171,11 +171,11 @@ class SourceAction extends EditorAction {
|
|
|
171
171
|
});
|
|
172
172
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
173
173
|
? args.preferred
|
|
174
|
-
? ( localize(
|
|
175
|
-
: ( localize(
|
|
174
|
+
? ( localize(4998, "No preferred source actions for '{0}' available", userArgs.kind))
|
|
175
|
+
: ( localize(4999, "No source actions for '{0}' available", userArgs.kind))
|
|
176
176
|
: args.preferred
|
|
177
|
-
? ( localize(
|
|
178
|
-
: ( localize(
|
|
177
|
+
? ( localize(5000, "No preferred source actions available"))
|
|
178
|
+
: ( localize(5001, "No source actions available")), {
|
|
179
179
|
include: CodeActionKind.Source.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
180
180
|
includeSourceActions: true,
|
|
181
181
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -186,7 +186,7 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: organizeImportsCommandId,
|
|
189
|
-
label: ( localize(
|
|
189
|
+
label: ( localize(5002, "Organize Imports")),
|
|
190
190
|
alias: 'Organize Imports',
|
|
191
191
|
precondition: ( (ContextKeyExpr.and(
|
|
192
192
|
EditorContextKeys.writable,
|
|
@@ -200,14 +200,14 @@ class OrganizeImportsAction extends EditorAction {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
run(_accessor, editor) {
|
|
203
|
-
return triggerCodeActionsForEditorSelection(editor, ( localize(
|
|
203
|
+
return triggerCodeActionsForEditorSelection(editor, ( localize(5003, "No organize imports action available")), { include: CodeActionKind.SourceOrganizeImports, includeSourceActions: true }, CodeActionAutoApply.IfSingle, CodeActionTriggerSource.OrganizeImports);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
class FixAllAction extends EditorAction {
|
|
207
207
|
constructor() {
|
|
208
208
|
super({
|
|
209
209
|
id: fixAllCommandId,
|
|
210
|
-
label: ( localize(
|
|
210
|
+
label: ( localize(5004, "Fix All")),
|
|
211
211
|
alias: 'Fix All',
|
|
212
212
|
precondition: ( (ContextKeyExpr.and(
|
|
213
213
|
EditorContextKeys.writable,
|
|
@@ -216,14 +216,14 @@ class FixAllAction extends EditorAction {
|
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
run(_accessor, editor) {
|
|
219
|
-
return triggerCodeActionsForEditorSelection(editor, ( localize(
|
|
219
|
+
return triggerCodeActionsForEditorSelection(editor, ( localize(5005, "No fix all action available")), { include: CodeActionKind.SourceFixAll, includeSourceActions: true }, CodeActionAutoApply.IfSingle, CodeActionTriggerSource.FixAll);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
class AutoFixAction extends EditorAction {
|
|
223
223
|
constructor() {
|
|
224
224
|
super({
|
|
225
225
|
id: autoFixCommandId,
|
|
226
|
-
label: ( localize(
|
|
226
|
+
label: ( localize(5006, "Auto Fix...")),
|
|
227
227
|
alias: 'Auto Fix...',
|
|
228
228
|
precondition: ( (ContextKeyExpr.and(
|
|
229
229
|
EditorContextKeys.writable,
|
|
@@ -240,7 +240,7 @@ class AutoFixAction extends EditorAction {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
run(_accessor, editor) {
|
|
243
|
-
return triggerCodeActionsForEditorSelection(editor, ( localize(
|
|
243
|
+
return triggerCodeActionsForEditorSelection(editor, ( localize(5007, "No auto fixes available")), {
|
|
244
244
|
include: CodeActionKind.QuickFix,
|
|
245
245
|
onlyIncludePreferredActions: true
|
|
246
246
|
}, CodeActionAutoApply.IfSingle, CodeActionTriggerSource.AutoFix);
|
|
@@ -21,7 +21,7 @@ registerEditorCommand(( (new CodeActionCommand())));
|
|
|
21
21
|
'editor.codeActionWidget.showHeaders': {
|
|
22
22
|
type: 'boolean',
|
|
23
23
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
24
|
-
description: ( localize(
|
|
24
|
+
description: ( localize(1364, "Enable/disable showing group headers in the Code Action menu.")),
|
|
25
25
|
default: true,
|
|
26
26
|
},
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ registerEditorCommand(( (new CodeActionCommand())));
|
|
|
33
33
|
type: 'boolean',
|
|
34
34
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
35
35
|
description: ( localize(
|
|
36
|
-
|
|
36
|
+
1365,
|
|
37
37
|
"Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."
|
|
38
38
|
)),
|
|
39
39
|
default: true,
|
|
@@ -47,7 +47,7 @@ registerEditorCommand(( (new CodeActionCommand())));
|
|
|
47
47
|
type: 'boolean',
|
|
48
48
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
49
49
|
markdownDescription: ( localize(
|
|
50
|
-
|
|
50
|
+
1366,
|
|
51
51
|
'Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.',
|
|
52
52
|
'`#editor.codeActionsOnSave#`',
|
|
53
53
|
'`#files.autoSave#`',
|
|
@@ -277,7 +277,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
277
277
|
if (diagnostic.startLineNumber && diagnostic.startColumn) {
|
|
278
278
|
const selectionText = this._editor.getModel()?.getWordAtPosition({ lineNumber: diagnostic.startLineNumber, column: diagnostic.startColumn })?.word;
|
|
279
279
|
status(( localize(
|
|
280
|
-
|
|
280
|
+
5008,
|
|
281
281
|
"Context: {0} at line {1} and column {2}.",
|
|
282
282
|
selectionText,
|
|
283
283
|
diagnostic.startLineNumber,
|
|
@@ -324,7 +324,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
324
324
|
if (options.includeDisabledActions && actions.validActions.length > 0 && actions.allActions.length !== actions.validActions.length) {
|
|
325
325
|
resultActions.push(this._showDisabled ? {
|
|
326
326
|
id: 'hideMoreActions',
|
|
327
|
-
label: ( localize(
|
|
327
|
+
label: ( localize(5009, 'Hide Disabled')),
|
|
328
328
|
enabled: true,
|
|
329
329
|
tooltip: '',
|
|
330
330
|
class: undefined,
|
|
@@ -334,7 +334,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
334
334
|
}
|
|
335
335
|
} : {
|
|
336
336
|
id: 'showMoreActions',
|
|
337
|
-
label: ( localize(
|
|
337
|
+
label: ( localize(5010, 'Show Disabled')),
|
|
338
338
|
enabled: true,
|
|
339
339
|
tooltip: '',
|
|
340
340
|
class: undefined,
|