monaco-editor-core 0.58.0 → 0.59.0-dev-20261124
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +3 -1
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
- package/esm/vs/editor/browser/view.js +3 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +246 -238
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
- package/esm/vs/editor/common/model/textModel.js +1 -0
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
- package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +11 -10
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +5 -0
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +5 -0
- package/package.json +3 -3
|
@@ -43,12 +43,12 @@ let SelectionAnchorController = class SelectionAnchorController {
|
|
|
43
43
|
this.decorationId = accessor.addDecoration(Selection.fromPositions(position, position), {
|
|
44
44
|
description: 'selection-anchor',
|
|
45
45
|
stickiness: 1 /* TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges */,
|
|
46
|
-
hoverMessage: new MarkdownString().appendText(localize(
|
|
46
|
+
hoverMessage: new MarkdownString().appendText(localize(857, "Selection Anchor")),
|
|
47
47
|
className: 'selection-anchor'
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
this.selectionAnchorSetContextKey.set(!!this.decorationId);
|
|
51
|
-
alert(localize(
|
|
51
|
+
alert(localize(858, "Anchor set at {0}:{1}", position.lineNumber, position.column));
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
goToSelectionAnchor() {
|
|
@@ -91,7 +91,7 @@ class SetSelectionAnchor extends EditorAction {
|
|
|
91
91
|
constructor() {
|
|
92
92
|
super({
|
|
93
93
|
id: 'editor.action.setSelectionAnchor',
|
|
94
|
-
label: localize2(
|
|
94
|
+
label: localize2(859, "Set Selection Anchor"),
|
|
95
95
|
precondition: undefined,
|
|
96
96
|
kbOpts: {
|
|
97
97
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -108,7 +108,7 @@ class GoToSelectionAnchor extends EditorAction {
|
|
|
108
108
|
constructor() {
|
|
109
109
|
super({
|
|
110
110
|
id: 'editor.action.goToSelectionAnchor',
|
|
111
|
-
label: localize2(
|
|
111
|
+
label: localize2(860, "Go to Selection Anchor"),
|
|
112
112
|
precondition: SelectionAnchorSet,
|
|
113
113
|
});
|
|
114
114
|
}
|
|
@@ -120,7 +120,7 @@ class SelectFromAnchorToCursor extends EditorAction {
|
|
|
120
120
|
constructor() {
|
|
121
121
|
super({
|
|
122
122
|
id: 'editor.action.selectFromAnchorToCursor',
|
|
123
|
-
label: localize2(
|
|
123
|
+
label: localize2(861, "Select from Anchor to Cursor"),
|
|
124
124
|
precondition: SelectionAnchorSet,
|
|
125
125
|
kbOpts: {
|
|
126
126
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -137,7 +137,7 @@ class CancelSelectionAnchor extends EditorAction {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'editor.action.cancelSelectionAnchor',
|
|
140
|
-
label: localize2(
|
|
140
|
+
label: localize2(862, "Cancel Selection Anchor"),
|
|
141
141
|
precondition: SelectionAnchorSet,
|
|
142
142
|
kbOpts: {
|
|
143
143
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -17,12 +17,12 @@ import { MenuId, MenuRegistry } from '../../../../platform/actions/common/action
|
|
|
17
17
|
import { registerColor } from '../../../../platform/theme/common/colorRegistry.js';
|
|
18
18
|
import { registerThemingParticipant, themeColorFromId } from '../../../../platform/theme/common/themeService.js';
|
|
19
19
|
import { editorBracketMatchForeground } from '../../../common/core/editorColorRegistry.js';
|
|
20
|
-
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', nls.localize(
|
|
20
|
+
const overviewRulerBracketMatchForeground = registerColor('editorOverviewRuler.bracketMatchForeground', '#A0A0A0', nls.localize(863, 'Overview ruler marker color for matching brackets.'));
|
|
21
21
|
class JumpToBracketAction extends EditorAction {
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: 'editor.action.jumpToBracket',
|
|
25
|
-
label: nls.localize2(
|
|
25
|
+
label: nls.localize2(865, "Go to Bracket"),
|
|
26
26
|
precondition: undefined,
|
|
27
27
|
kbOpts: {
|
|
28
28
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -39,10 +39,10 @@ class SelectToBracketAction extends EditorAction {
|
|
|
39
39
|
constructor() {
|
|
40
40
|
super({
|
|
41
41
|
id: 'editor.action.selectToBracket',
|
|
42
|
-
label: nls.localize2(
|
|
42
|
+
label: nls.localize2(866, "Select to Bracket"),
|
|
43
43
|
precondition: undefined,
|
|
44
44
|
metadata: {
|
|
45
|
-
description: nls.localize2(
|
|
45
|
+
description: nls.localize2(867, "Select the text inside and including the brackets or curly braces"),
|
|
46
46
|
args: [{
|
|
47
47
|
name: 'args',
|
|
48
48
|
schema: {
|
|
@@ -70,7 +70,7 @@ class RemoveBracketsAction extends EditorAction {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: 'editor.action.removeBrackets',
|
|
73
|
-
label: nls.localize2(
|
|
73
|
+
label: nls.localize2(868, "Remove Brackets"),
|
|
74
74
|
precondition: undefined,
|
|
75
75
|
kbOpts: {
|
|
76
76
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -343,7 +343,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
343
343
|
group: '5_infile_nav',
|
|
344
344
|
command: {
|
|
345
345
|
id: 'editor.action.jumpToBracket',
|
|
346
|
-
title: nls.localize(
|
|
346
|
+
title: nls.localize(864, "Go to &&Bracket")
|
|
347
347
|
},
|
|
348
348
|
order: 2
|
|
349
349
|
});
|
|
@@ -29,7 +29,7 @@ class MoveCaretLeftAction extends MoveCaretAction {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super(true, {
|
|
31
31
|
id: 'editor.action.moveCarretLeftAction',
|
|
32
|
-
label: nls.localize2(
|
|
32
|
+
label: nls.localize2(869, "Move Selected Text Left"),
|
|
33
33
|
precondition: EditorContextKeys.writable
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -38,7 +38,7 @@ class MoveCaretRightAction extends MoveCaretAction {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super(false, {
|
|
40
40
|
id: 'editor.action.moveCarretRightAction',
|
|
41
|
-
label: nls.localize2(
|
|
41
|
+
label: nls.localize2(870, "Move Selected Text Right"),
|
|
42
42
|
precondition: EditorContextKeys.writable
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -12,7 +12,7 @@ class TransposeLettersAction extends EditorAction {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
super({
|
|
14
14
|
id: 'editor.action.transposeLetters',
|
|
15
|
-
label: nls.localize2(
|
|
15
|
+
label: nls.localize2(871, "Transpose Letters"),
|
|
16
16
|
precondition: EditorContextKeys.writable,
|
|
17
17
|
kbOpts: {
|
|
18
18
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -41,23 +41,23 @@ export const CutAction = supportsCut ? registerCommand(new MultiCommand({
|
|
|
41
41
|
menuOpts: [{
|
|
42
42
|
menuId: MenuId.MenubarEditMenu,
|
|
43
43
|
group: '2_ccp',
|
|
44
|
-
title: nls.localize(
|
|
44
|
+
title: nls.localize(872, "Cu&&t"),
|
|
45
45
|
order: 1
|
|
46
46
|
}, {
|
|
47
47
|
menuId: MenuId.EditorContext,
|
|
48
48
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
49
|
-
title: nls.localize(
|
|
49
|
+
title: nls.localize(873, "Cut"),
|
|
50
50
|
when: EditorContextKeys.writable,
|
|
51
51
|
order: 1,
|
|
52
52
|
}, {
|
|
53
53
|
menuId: MenuId.CommandPalette,
|
|
54
54
|
group: '',
|
|
55
|
-
title: nls.localize(
|
|
55
|
+
title: nls.localize(874, "Cut"),
|
|
56
56
|
order: 1
|
|
57
57
|
}, {
|
|
58
58
|
menuId: MenuId.SimpleEditorContext,
|
|
59
59
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
60
|
-
title: nls.localize(
|
|
60
|
+
title: nls.localize(875, "Cut"),
|
|
61
61
|
when: EditorContextKeys.writable,
|
|
62
62
|
order: 1,
|
|
63
63
|
}]
|
|
@@ -76,29 +76,29 @@ export const CopyAction = supportsCopy ? registerCommand(new MultiCommand({
|
|
|
76
76
|
menuOpts: [{
|
|
77
77
|
menuId: MenuId.MenubarEditMenu,
|
|
78
78
|
group: '2_ccp',
|
|
79
|
-
title: nls.localize(
|
|
79
|
+
title: nls.localize(876, "&&Copy"),
|
|
80
80
|
order: 2
|
|
81
81
|
}, {
|
|
82
82
|
menuId: MenuId.EditorContext,
|
|
83
83
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
84
|
-
title: nls.localize(
|
|
84
|
+
title: nls.localize(877, "Copy"),
|
|
85
85
|
order: 2,
|
|
86
86
|
}, {
|
|
87
87
|
menuId: MenuId.CommandPalette,
|
|
88
88
|
group: '',
|
|
89
|
-
title: nls.localize(
|
|
89
|
+
title: nls.localize(878, "Copy"),
|
|
90
90
|
order: 1
|
|
91
91
|
}, {
|
|
92
92
|
menuId: MenuId.SimpleEditorContext,
|
|
93
93
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
94
|
-
title: nls.localize(
|
|
94
|
+
title: nls.localize(879, "Copy"),
|
|
95
95
|
order: 2,
|
|
96
96
|
}]
|
|
97
97
|
})) : undefined;
|
|
98
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: nls.localize2(
|
|
99
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: nls.localize2(
|
|
100
|
-
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: nls.localize2(
|
|
101
|
-
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: nls.localize2(
|
|
98
|
+
MenuRegistry.appendMenuItem(MenuId.MenubarEditMenu, { submenu: MenuId.MenubarCopy, title: nls.localize2(884, "Copy As"), group: '2_ccp', order: 3 });
|
|
99
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextCopy, title: nls.localize2(885, "Copy As"), group: CLIPBOARD_CONTEXT_MENU_GROUP, order: 3 });
|
|
100
|
+
MenuRegistry.appendMenuItem(MenuId.EditorContext, { submenu: MenuId.EditorContextShare, title: nls.localize2(886, "Share"), group: '11_share', order: -1, when: ContextKeyExpr.and(ContextKeyExpr.notEquals('resourceScheme', 'output'), EditorContextKeys.editorTextFocus) });
|
|
101
|
+
MenuRegistry.appendMenuItem(MenuId.ExplorerContext, { submenu: MenuId.ExplorerContextShare, title: nls.localize2(887, "Share"), group: '11_share', order: -1 });
|
|
102
102
|
export const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
103
103
|
id: 'editor.action.clipboardPasteAction',
|
|
104
104
|
precondition: undefined,
|
|
@@ -114,23 +114,23 @@ export const PasteAction = supportsPaste ? registerCommand(new MultiCommand({
|
|
|
114
114
|
menuOpts: [{
|
|
115
115
|
menuId: MenuId.MenubarEditMenu,
|
|
116
116
|
group: '2_ccp',
|
|
117
|
-
title: nls.localize(
|
|
117
|
+
title: nls.localize(880, "&&Paste"),
|
|
118
118
|
order: 4
|
|
119
119
|
}, {
|
|
120
120
|
menuId: MenuId.EditorContext,
|
|
121
121
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
122
|
-
title: nls.localize(
|
|
122
|
+
title: nls.localize(881, "Paste"),
|
|
123
123
|
when: EditorContextKeys.writable,
|
|
124
124
|
order: 4,
|
|
125
125
|
}, {
|
|
126
126
|
menuId: MenuId.CommandPalette,
|
|
127
127
|
group: '',
|
|
128
|
-
title: nls.localize(
|
|
128
|
+
title: nls.localize(882, "Paste"),
|
|
129
129
|
order: 1
|
|
130
130
|
}, {
|
|
131
131
|
menuId: MenuId.SimpleEditorContext,
|
|
132
132
|
group: CLIPBOARD_CONTEXT_MENU_GROUP,
|
|
133
|
-
title: nls.localize(
|
|
133
|
+
title: nls.localize(883, "Paste"),
|
|
134
134
|
when: EditorContextKeys.writable,
|
|
135
135
|
order: 4,
|
|
136
136
|
}]
|
|
@@ -139,7 +139,7 @@ class ExecCommandCopyWithSyntaxHighlightingAction extends EditorAction {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'editor.action.clipboardCopyWithSyntaxHighlightingAction',
|
|
142
|
-
label: nls.localize2(
|
|
142
|
+
label: nls.localize2(888, "Copy with Syntax Highlighting"),
|
|
143
143
|
precondition: undefined,
|
|
144
144
|
kbOpts: {
|
|
145
145
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -252,7 +252,7 @@ export async function applyCodeAction(accessor, item, codeActionReason, options,
|
|
|
252
252
|
const message = asMessage(err);
|
|
253
253
|
notificationService.error(typeof message === 'string'
|
|
254
254
|
? message
|
|
255
|
-
: nls.localize(
|
|
255
|
+
: nls.localize(889, "An unknown error occurred while applying the code action"));
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
// ensure the start sound and end sound do not overlap
|
|
@@ -23,23 +23,23 @@ const argsSchema = {
|
|
|
23
23
|
properties: {
|
|
24
24
|
'kind': {
|
|
25
25
|
type: 'string',
|
|
26
|
-
description: nls.localize(
|
|
26
|
+
description: nls.localize(890, "Kind of the code action to run."),
|
|
27
27
|
},
|
|
28
28
|
'apply': {
|
|
29
29
|
type: 'string',
|
|
30
|
-
description: nls.localize(
|
|
30
|
+
description: nls.localize(891, "Controls when the returned actions are applied."),
|
|
31
31
|
default: "ifSingle" /* CodeActionAutoApply.IfSingle */,
|
|
32
32
|
enum: ["first" /* CodeActionAutoApply.First */, "ifSingle" /* CodeActionAutoApply.IfSingle */, "never" /* CodeActionAutoApply.Never */],
|
|
33
33
|
enumDescriptions: [
|
|
34
|
-
nls.localize(
|
|
35
|
-
nls.localize(
|
|
36
|
-
nls.localize(
|
|
34
|
+
nls.localize(892, "Always apply the first returned code action."),
|
|
35
|
+
nls.localize(893, "Apply the first returned code action if it is the only one."),
|
|
36
|
+
nls.localize(894, "Do not apply the returned code actions."),
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
'preferred': {
|
|
40
40
|
type: 'boolean',
|
|
41
41
|
default: false,
|
|
42
|
-
description: nls.localize(
|
|
42
|
+
description: nls.localize(895, "Controls if only preferred code actions should be returned."),
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
@@ -53,7 +53,7 @@ export class QuickFixAction extends EditorAction2 {
|
|
|
53
53
|
constructor() {
|
|
54
54
|
super({
|
|
55
55
|
id: quickFixCommandId,
|
|
56
|
-
title: nls.localize2(
|
|
56
|
+
title: nls.localize2(912, "Quick Fix..."),
|
|
57
57
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
58
58
|
icon: Codicon.lightBulb,
|
|
59
59
|
f1: true,
|
|
@@ -71,7 +71,7 @@ export class QuickFixAction extends EditorAction2 {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
runEditorCommand(_accessor, editor) {
|
|
74
|
-
return triggerCodeActionsForEditorSelection(editor, nls.localize(
|
|
74
|
+
return triggerCodeActionsForEditorSelection(editor, nls.localize(896, "No code actions available"), undefined, undefined, CodeActionTriggerSource.QuickFix);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
export class CodeActionCommand extends EditorCommand {
|
|
@@ -92,11 +92,11 @@ export class CodeActionCommand extends EditorCommand {
|
|
|
92
92
|
});
|
|
93
93
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
94
94
|
? args.preferred
|
|
95
|
-
? nls.localize(
|
|
96
|
-
: nls.localize(
|
|
95
|
+
? nls.localize(897, "No preferred code actions for '{0}' available", userArgs.kind)
|
|
96
|
+
: nls.localize(898, "No code actions for '{0}' available", userArgs.kind)
|
|
97
97
|
: args.preferred
|
|
98
|
-
? nls.localize(
|
|
99
|
-
: nls.localize(
|
|
98
|
+
? nls.localize(899, "No preferred code actions available")
|
|
99
|
+
: nls.localize(900, "No code actions available"), {
|
|
100
100
|
include: args.kind,
|
|
101
101
|
includeSourceActions: true,
|
|
102
102
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -107,7 +107,7 @@ export class RefactorAction extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: refactorCommandId,
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(913, "Refactor..."),
|
|
111
111
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
112
112
|
kbOpts: {
|
|
113
113
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -135,11 +135,11 @@ export class RefactorAction extends EditorAction {
|
|
|
135
135
|
});
|
|
136
136
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
137
137
|
? args.preferred
|
|
138
|
-
? nls.localize(
|
|
139
|
-
: nls.localize(
|
|
138
|
+
? nls.localize(901, "No preferred refactorings for '{0}' available", userArgs.kind)
|
|
139
|
+
: nls.localize(902, "No refactorings for '{0}' available", userArgs.kind)
|
|
140
140
|
: args.preferred
|
|
141
|
-
? nls.localize(
|
|
142
|
-
: nls.localize(
|
|
141
|
+
? nls.localize(903, "No preferred refactorings available")
|
|
142
|
+
: nls.localize(904, "No refactorings available"), {
|
|
143
143
|
include: CodeActionKind.Refactor.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
144
144
|
onlyIncludePreferredActions: args.preferred
|
|
145
145
|
}, args.apply, CodeActionTriggerSource.Refactor);
|
|
@@ -149,7 +149,7 @@ export class SourceAction extends EditorAction {
|
|
|
149
149
|
constructor() {
|
|
150
150
|
super({
|
|
151
151
|
id: sourceActionCommandId,
|
|
152
|
-
label: nls.localize2(
|
|
152
|
+
label: nls.localize2(914, "Source Action..."),
|
|
153
153
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasCodeActionsProvider),
|
|
154
154
|
contextMenuOpts: {
|
|
155
155
|
group: '1_modification',
|
|
@@ -169,11 +169,11 @@ export class SourceAction extends EditorAction {
|
|
|
169
169
|
});
|
|
170
170
|
return triggerCodeActionsForEditorSelection(editor, typeof userArgs?.kind === 'string'
|
|
171
171
|
? args.preferred
|
|
172
|
-
? nls.localize(
|
|
173
|
-
: nls.localize(
|
|
172
|
+
? nls.localize(905, "No preferred source actions for '{0}' available", userArgs.kind)
|
|
173
|
+
: nls.localize(906, "No source actions for '{0}' available", userArgs.kind)
|
|
174
174
|
: args.preferred
|
|
175
|
-
? nls.localize(
|
|
176
|
-
: nls.localize(
|
|
175
|
+
? nls.localize(907, "No preferred source actions available")
|
|
176
|
+
: nls.localize(908, "No source actions available"), {
|
|
177
177
|
include: CodeActionKind.Source.contains(args.kind) ? args.kind : HierarchicalKind.None,
|
|
178
178
|
includeSourceActions: true,
|
|
179
179
|
onlyIncludePreferredActions: args.preferred,
|
|
@@ -184,7 +184,7 @@ export class OrganizeImportsAction extends EditorAction {
|
|
|
184
184
|
constructor() {
|
|
185
185
|
super({
|
|
186
186
|
id: organizeImportsCommandId,
|
|
187
|
-
label: nls.localize2(
|
|
187
|
+
label: nls.localize2(915, "Organize Imports"),
|
|
188
188
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceOrganizeImports)),
|
|
189
189
|
kbOpts: {
|
|
190
190
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -192,31 +192,31 @@ export class OrganizeImportsAction extends EditorAction {
|
|
|
192
192
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
193
193
|
},
|
|
194
194
|
metadata: {
|
|
195
|
-
description: nls.localize2(
|
|
195
|
+
description: nls.localize2(916, "Organize imports in the current file. Also called 'Optimize Imports' by some tools")
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
run(_accessor, editor) {
|
|
200
|
-
return triggerCodeActionsForEditorSelection(editor, nls.localize(
|
|
200
|
+
return triggerCodeActionsForEditorSelection(editor, nls.localize(909, "No organize imports action available"), { include: CodeActionKind.SourceOrganizeImports, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.OrganizeImports);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
export class FixAllAction extends EditorAction {
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: fixAllCommandId,
|
|
207
|
-
label: nls.localize2(
|
|
207
|
+
label: nls.localize2(917, "Fix All"),
|
|
208
208
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.SourceFixAll))
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
run(_accessor, editor) {
|
|
212
|
-
return triggerCodeActionsForEditorSelection(editor, nls.localize(
|
|
212
|
+
return triggerCodeActionsForEditorSelection(editor, nls.localize(910, "No fix all action available"), { include: CodeActionKind.SourceFixAll, includeSourceActions: true }, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.FixAll);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
export class AutoFixAction extends EditorAction {
|
|
216
216
|
constructor() {
|
|
217
217
|
super({
|
|
218
218
|
id: autoFixCommandId,
|
|
219
|
-
label: nls.localize2(
|
|
219
|
+
label: nls.localize2(918, "Auto Fix..."),
|
|
220
220
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, contextKeyForSupportedActions(CodeActionKind.QuickFix)),
|
|
221
221
|
kbOpts: {
|
|
222
222
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -229,7 +229,7 @@ export class AutoFixAction extends EditorAction {
|
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
231
|
run(_accessor, editor) {
|
|
232
|
-
return triggerCodeActionsForEditorSelection(editor, nls.localize(
|
|
232
|
+
return triggerCodeActionsForEditorSelection(editor, nls.localize(911, "No auto fixes available"), {
|
|
233
233
|
include: CodeActionKind.QuickFix,
|
|
234
234
|
onlyIncludePreferredActions: true
|
|
235
235
|
}, "ifSingle" /* CodeActionAutoApply.IfSingle */, CodeActionTriggerSource.AutoFix);
|
|
@@ -26,7 +26,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
26
26
|
'editor.codeActionWidget.showHeaders': {
|
|
27
27
|
type: 'boolean',
|
|
28
28
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
29
|
-
description: nls.localize(
|
|
29
|
+
description: nls.localize(919, "Enable/disable showing group headers in the Code Action menu."),
|
|
30
30
|
default: true,
|
|
31
31
|
},
|
|
32
32
|
}
|
|
@@ -37,7 +37,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
37
37
|
'editor.codeActionWidget.includeNearbyQuickFixes': {
|
|
38
38
|
type: 'boolean',
|
|
39
39
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
40
|
-
description: nls.localize(
|
|
40
|
+
description: nls.localize(920, "Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),
|
|
41
41
|
default: true,
|
|
42
42
|
},
|
|
43
43
|
}
|
|
@@ -48,7 +48,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
48
48
|
'editor.codeActions.triggerOnFocusChange': {
|
|
49
49
|
type: 'boolean',
|
|
50
50
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
51
|
-
markdownDescription: nls.localize(
|
|
51
|
+
markdownDescription: nls.localize(921, 'Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.', '`#editor.codeActionsOnSave#`', '`#files.autoSave#`', '`afterDelay`', '`always`'),
|
|
52
52
|
default: false,
|
|
53
53
|
},
|
|
54
54
|
}
|
|
@@ -287,7 +287,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
287
287
|
const diagnostic = diagnostics[0];
|
|
288
288
|
if (diagnostic.startLineNumber && diagnostic.startColumn) {
|
|
289
289
|
const selectionText = this._editor.getModel()?.getWordAtPosition({ lineNumber: diagnostic.startLineNumber, column: diagnostic.startColumn })?.word;
|
|
290
|
-
aria.status(localize(
|
|
290
|
+
aria.status(localize(922, "Context: {0} at line {1} and column {2}.", selectionText, diagnostic.startLineNumber, diagnostic.startColumn));
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
}
|
|
@@ -330,7 +330,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
330
330
|
if (options.includeDisabledActions && actions.validActions.length > 0 && actions.allActions.length !== actions.validActions.length) {
|
|
331
331
|
resultActions.push(this._showDisabled ? {
|
|
332
332
|
id: 'hideMoreActions',
|
|
333
|
-
label: localize(
|
|
333
|
+
label: localize(923, 'Hide Disabled'),
|
|
334
334
|
enabled: true,
|
|
335
335
|
tooltip: '',
|
|
336
336
|
class: undefined,
|
|
@@ -340,7 +340,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
340
340
|
}
|
|
341
341
|
} : {
|
|
342
342
|
id: 'showMoreActions',
|
|
343
|
-
label: localize(
|
|
343
|
+
label: localize(924, 'Show Disabled'),
|
|
344
344
|
enabled: true,
|
|
345
345
|
tooltip: '',
|
|
346
346
|
class: undefined,
|
|
@@ -8,15 +8,15 @@ import { CodeActionKind } from '../common/types.js';
|
|
|
8
8
|
import '../../symbolIcons/browser/symbolIcons.js'; // The codicon symbol colors are defined here and must be loaded to get colors
|
|
9
9
|
import { localize } from '../../../../nls.js';
|
|
10
10
|
import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
11
|
-
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(
|
|
11
|
+
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(925, 'More Actions...') });
|
|
12
12
|
const codeActionGroups = Object.freeze([
|
|
13
|
-
{ kind: CodeActionKind.QuickFix, title: localize(
|
|
14
|
-
{ kind: CodeActionKind.RefactorExtract, title: localize(
|
|
15
|
-
{ kind: CodeActionKind.RefactorInline, title: localize(
|
|
16
|
-
{ kind: CodeActionKind.RefactorRewrite, title: localize(
|
|
17
|
-
{ kind: CodeActionKind.RefactorMove, title: localize(
|
|
18
|
-
{ kind: CodeActionKind.SurroundWith, title: localize(
|
|
19
|
-
{ kind: CodeActionKind.Source, title: localize(
|
|
13
|
+
{ kind: CodeActionKind.QuickFix, title: localize(926, 'Quick Fix') },
|
|
14
|
+
{ kind: CodeActionKind.RefactorExtract, title: localize(927, 'Extract'), icon: Codicon.wrench },
|
|
15
|
+
{ kind: CodeActionKind.RefactorInline, title: localize(928, 'Inline'), icon: Codicon.wrench },
|
|
16
|
+
{ kind: CodeActionKind.RefactorRewrite, title: localize(929, 'Rewrite'), icon: Codicon.wrench },
|
|
17
|
+
{ kind: CodeActionKind.RefactorMove, title: localize(930, 'Move'), icon: Codicon.wrench },
|
|
18
|
+
{ kind: CodeActionKind.SurroundWith, title: localize(931, 'Surround With'), icon: Codicon.surroundWith },
|
|
19
|
+
{ kind: CodeActionKind.Source, title: localize(932, 'Source Action'), icon: Codicon.symbolFile },
|
|
20
20
|
uncategorizedCodeActionGroup,
|
|
21
21
|
]);
|
|
22
22
|
export function toMenuItems(inputCodeActions, showHeaders, keybindingResolver) {
|
|
@@ -29,11 +29,11 @@ import * as nls from '../../../../nls.js';
|
|
|
29
29
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
30
30
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
31
31
|
import { Range } from '../../../common/core/range.js';
|
|
32
|
-
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(
|
|
33
|
-
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(
|
|
34
|
-
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(
|
|
35
|
-
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(
|
|
36
|
-
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(
|
|
32
|
+
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(933, 'Icon which spawns code actions menu from the gutter when there is no space in the editor.'));
|
|
33
|
+
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(934, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'));
|
|
34
|
+
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(935, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'));
|
|
35
|
+
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(936, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
36
|
+
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(937, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
37
37
|
var LightBulbState;
|
|
38
38
|
(function (LightBulbState) {
|
|
39
39
|
LightBulbState.Hidden = { type: 0 /* Type.Hidden */ };
|
|
@@ -76,16 +76,16 @@ export function computeLightBulbInfo(actions, trigger, preferredKbLabel, quickFi
|
|
|
76
76
|
}
|
|
77
77
|
let title;
|
|
78
78
|
if (autoRun) {
|
|
79
|
-
title = nls.localize(
|
|
79
|
+
title = nls.localize(938, "Run: {0}", actions.validActions[0].action.title);
|
|
80
80
|
}
|
|
81
81
|
else if (actions.hasAutoFix && preferredKbLabel) {
|
|
82
|
-
title = nls.localize(
|
|
82
|
+
title = nls.localize(939, "Show Code Actions. Preferred Quick Fix Available ({0})", preferredKbLabel);
|
|
83
83
|
}
|
|
84
84
|
else if (!actions.hasAutoFix && quickFixKbLabel) {
|
|
85
|
-
title = nls.localize(
|
|
85
|
+
title = nls.localize(940, "Show Code Actions ({0})", quickFixKbLabel);
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
|
-
title = nls.localize(
|
|
88
|
+
title = nls.localize(941, "Show Code Actions");
|
|
89
89
|
}
|
|
90
90
|
return { actions, trigger, icon, autoRun, title, isGutter: forGutter };
|
|
91
91
|
}
|
|
@@ -405,7 +405,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
405
405
|
super({
|
|
406
406
|
id: 'codelens.showLensesInCurrentLine',
|
|
407
407
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
408
|
-
label: localize2(
|
|
408
|
+
label: localize2(943, "Show CodeLens Commands for Current Line"),
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
async run(accessor, editor) {
|
|
@@ -440,7 +440,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
440
440
|
}
|
|
441
441
|
const item = await quickInputService.pick(items, {
|
|
442
442
|
canPickMany: false,
|
|
443
|
-
placeHolder: localize(
|
|
443
|
+
placeHolder: localize(942, "Select a command")
|
|
444
444
|
});
|
|
445
445
|
if (!item) {
|
|
446
446
|
// Nothing picked
|
package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js
CHANGED
|
@@ -22,7 +22,7 @@ export class CloseButton extends Disposable {
|
|
|
22
22
|
const innerDiv = document.createElement('div');
|
|
23
23
|
innerDiv.classList.add('close-button-inner-div');
|
|
24
24
|
dom.append(this._button, innerDiv);
|
|
25
|
-
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(
|
|
25
|
+
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(944, 'Icon to close the color picker')))));
|
|
26
26
|
closeButton.classList.add('close-icon');
|
|
27
27
|
this._register(dom.addDisposableListener(this._button, dom.EventType.CLICK, () => {
|
|
28
28
|
this._onClicked.fire();
|
|
@@ -22,7 +22,7 @@ export class ColorPickerHeader extends Disposable {
|
|
|
22
22
|
dom.append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
|
|
23
23
|
this._pickedColorPresentation = dom.append(this._pickedColorNode, document.createElement('span'));
|
|
24
24
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
25
|
-
const tooltip = localize(
|
|
25
|
+
const tooltip = localize(945, "Click to toggle color options (rgb/hsl/hex)");
|
|
26
26
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
27
27
|
this._originalColorNode = dom.append(this._domNode, $('.original-color'));
|
|
28
28
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js
CHANGED
|
@@ -127,7 +127,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
127
127
|
return new RenderedHoverParts([renderedHoverPart]);
|
|
128
128
|
}
|
|
129
129
|
getAccessibleContent(hoverPart) {
|
|
130
|
-
return nls.localize(
|
|
130
|
+
return nls.localize(946, 'There is a color picker here.');
|
|
131
131
|
}
|
|
132
132
|
handleResize() {
|
|
133
133
|
this._colorPicker?.layout();
|
|
@@ -12,15 +12,15 @@ export class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
14
14
|
title: {
|
|
15
|
-
...localize2(
|
|
16
|
-
mnemonicTitle: localize(
|
|
15
|
+
...localize2(948, "Show or Focus Standalone Color Picker"),
|
|
16
|
+
mnemonicTitle: localize(947, "&&Show or Focus Standalone Color Picker"),
|
|
17
17
|
},
|
|
18
18
|
precondition: undefined,
|
|
19
19
|
menu: [
|
|
20
20
|
{ id: MenuId.CommandPalette },
|
|
21
21
|
],
|
|
22
22
|
metadata: {
|
|
23
|
-
description: localize2(
|
|
23
|
+
description: localize2(949, "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."),
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'editor.action.hideColorPicker',
|
|
35
|
-
label: localize2(
|
|
35
|
+
label: localize2(950, "Hide the Color Picker"),
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,7 +44,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
44
44
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
45
45
|
},
|
|
46
46
|
metadata: {
|
|
47
|
-
description: localize2(
|
|
47
|
+
description: localize2(951, "Hide the standalone color picker."),
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
59
|
-
label: localize2(
|
|
59
|
+
label: localize2(952, "Insert Color with Standalone Color Picker"),
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
68
68
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
69
69
|
},
|
|
70
70
|
metadata: {
|
|
71
|
-
description: localize2(
|
|
71
|
+
description: localize2(953, "Insert hex/rgb/hsl colors with the focused standalone color picker."),
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|