monaco-editor-core 0.55.0-dev-20251028 → 0.55.0-dev-20251030
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 +14 -0
- package/esm/vs/base/browser/markdownRenderer.js +53 -1
- package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/common/codiconsLibrary.js +6 -3
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/glob.js +41 -31
- package/esm/vs/base/common/glob.js.map +1 -1
- package/esm/vs/base/common/htmlContent.js +5 -1
- package/esm/vs/base/common/htmlContent.js.map +1 -1
- package/esm/vs/base/common/network.js +2 -6
- package/esm/vs/base/common/network.js.map +1 -1
- package/esm/vs/base/common/strings.js +8 -6
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/editor/browser/editorExtensions.js +5 -0
- package/esm/vs/editor/browser/editorExtensions.js.map +1 -1
- package/esm/vs/editor/browser/triggerInlineEditCommandsRegistry.js +17 -0
- package/esm/vs/editor/browser/triggerInlineEditCommandsRegistry.js.map +1 -0
- package/esm/vs/editor/common/textModelEditSource.js +1 -0
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +2 -1
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -0
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +16 -12
- package/esm/vs/editor/contrib/comment/browser/comment.js.map +1 -1
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +7 -5
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js.map +1 -1
- 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/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
- 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 +17 -6
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +6 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +36 -0
- 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 +51 -0
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js.map +1 -0
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +25 -9
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +8 -5
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +29 -27
- package/esm/vs/editor/contrib/indentation/browser/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 +20 -20
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +3 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +4 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- 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/components/gutterIndicatorView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- 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 +87 -62
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js.map +1 -1
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- 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/gotoLineQuickAccess.js +8 -8
- 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 +13 -12
- package/esm/vs/editor/contrib/rename/browser/rename.js.map +1 -1
- 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 +4 -4
- 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 +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- 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 +27 -24
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
- 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 +9 -9
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js.map +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/actions.js +2 -0
- package/esm/vs/platform/actions/common/actions.js.map +1 -1
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- 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 +9 -9
- 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 +2 -2
- package/esm/vs/platform/hover/browser/hoverWidget.js.map +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- 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 +7 -7
- 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/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- 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 +9 -9
- 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/package.json +2 -2
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { KeyChord } from '../../../../base/common/keyCodes.js';
|
|
6
|
+
import * as nls from '../../../../nls.js';
|
|
7
|
+
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
8
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
6
9
|
import { CoreEditingCommands } from '../../../browser/coreCommands.js';
|
|
7
10
|
import { EditorAction, registerEditorAction } from '../../../browser/editorExtensions.js';
|
|
8
11
|
import { ReplaceCommand, ReplaceCommandThatPreservesSelection, ReplaceCommandThatSelectsText } from '../../../common/commands/replaceCommand.js';
|
|
9
12
|
import { TrimTrailingWhitespaceCommand } from '../../../common/commands/trimTrailingWhitespaceCommand.js';
|
|
10
|
-
import { TypeOperations } from '../../../common/cursor/cursorTypeOperations.js';
|
|
11
|
-
import { EnterOperation } from '../../../common/cursor/cursorTypeEditOperations.js';
|
|
12
13
|
import { EditOperation } from '../../../common/core/editOperation.js';
|
|
13
14
|
import { Position } from '../../../common/core/position.js';
|
|
14
15
|
import { Range } from '../../../common/core/range.js';
|
|
15
16
|
import { Selection } from '../../../common/core/selection.js';
|
|
17
|
+
import { EnterOperation } from '../../../common/cursor/cursorTypeEditOperations.js';
|
|
18
|
+
import { TypeOperations } from '../../../common/cursor/cursorTypeOperations.js';
|
|
16
19
|
import { EditorContextKeys } from '../../../common/editorContextKeys.js';
|
|
20
|
+
import { ILanguageConfigurationService } from '../../../common/languages/languageConfigurationRegistry.js';
|
|
17
21
|
import { CopyLinesCommand } from './copyLinesCommand.js';
|
|
18
22
|
import { MoveLinesCommand } from './moveLinesCommand.js';
|
|
19
23
|
import { SortLinesCommand } from './sortLinesCommand.js';
|
|
20
|
-
import * as nls from '../../../../nls.js';
|
|
21
|
-
import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
22
|
-
import { ILanguageConfigurationService } from '../../../common/languages/languageConfigurationRegistry.js';
|
|
23
|
-
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.js';
|
|
24
24
|
// copy lines
|
|
25
25
|
class AbstractCopyLinesAction extends EditorAction {
|
|
26
26
|
constructor(down, opts) {
|
|
@@ -63,7 +63,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super(false, {
|
|
65
65
|
id: 'editor.action.copyLinesUpAction',
|
|
66
|
-
label: nls.localize2(
|
|
66
|
+
label: nls.localize2(1248, "Copy Line Up"),
|
|
67
67
|
precondition: EditorContextKeys.writable,
|
|
68
68
|
kbOpts: {
|
|
69
69
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -74,9 +74,10 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
74
74
|
menuOpts: {
|
|
75
75
|
menuId: MenuId.MenubarSelectionMenu,
|
|
76
76
|
group: '2_line',
|
|
77
|
-
title: nls.localize(
|
|
77
|
+
title: nls.localize(1243, "&&Copy Line Up"),
|
|
78
78
|
order: 1
|
|
79
|
-
}
|
|
79
|
+
},
|
|
80
|
+
canTriggerInlineEdits: true,
|
|
80
81
|
});
|
|
81
82
|
}
|
|
82
83
|
}
|
|
@@ -84,7 +85,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
84
85
|
constructor() {
|
|
85
86
|
super(true, {
|
|
86
87
|
id: 'editor.action.copyLinesDownAction',
|
|
87
|
-
label: nls.localize2(
|
|
88
|
+
label: nls.localize2(1249, "Copy Line Down"),
|
|
88
89
|
precondition: EditorContextKeys.writable,
|
|
89
90
|
kbOpts: {
|
|
90
91
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -95,9 +96,10 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
95
96
|
menuOpts: {
|
|
96
97
|
menuId: MenuId.MenubarSelectionMenu,
|
|
97
98
|
group: '2_line',
|
|
98
|
-
title: nls.localize(
|
|
99
|
+
title: nls.localize(1244, "Co&&py Line Down"),
|
|
99
100
|
order: 2
|
|
100
|
-
}
|
|
101
|
+
},
|
|
102
|
+
canTriggerInlineEdits: true,
|
|
101
103
|
});
|
|
102
104
|
}
|
|
103
105
|
}
|
|
@@ -105,14 +107,15 @@ export class DuplicateSelectionAction extends EditorAction {
|
|
|
105
107
|
constructor() {
|
|
106
108
|
super({
|
|
107
109
|
id: 'editor.action.duplicateSelection',
|
|
108
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(1250, "Duplicate Selection"),
|
|
109
111
|
precondition: EditorContextKeys.writable,
|
|
110
112
|
menuOpts: {
|
|
111
113
|
menuId: MenuId.MenubarSelectionMenu,
|
|
112
114
|
group: '2_line',
|
|
113
|
-
title: nls.localize(
|
|
115
|
+
title: nls.localize(1245, "&&Duplicate Selection"),
|
|
114
116
|
order: 5
|
|
115
|
-
}
|
|
117
|
+
},
|
|
118
|
+
canTriggerInlineEdits: true,
|
|
116
119
|
});
|
|
117
120
|
}
|
|
118
121
|
run(accessor, editor, args) {
|
|
@@ -159,7 +162,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
159
162
|
constructor() {
|
|
160
163
|
super(false, {
|
|
161
164
|
id: 'editor.action.moveLinesUpAction',
|
|
162
|
-
label: nls.localize2(
|
|
165
|
+
label: nls.localize2(1251, "Move Line Up"),
|
|
163
166
|
precondition: EditorContextKeys.writable,
|
|
164
167
|
kbOpts: {
|
|
165
168
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -170,9 +173,10 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
170
173
|
menuOpts: {
|
|
171
174
|
menuId: MenuId.MenubarSelectionMenu,
|
|
172
175
|
group: '2_line',
|
|
173
|
-
title: nls.localize(
|
|
176
|
+
title: nls.localize(1246, "Mo&&ve Line Up"),
|
|
174
177
|
order: 3
|
|
175
|
-
}
|
|
178
|
+
},
|
|
179
|
+
canTriggerInlineEdits: true,
|
|
176
180
|
});
|
|
177
181
|
}
|
|
178
182
|
}
|
|
@@ -180,7 +184,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
180
184
|
constructor() {
|
|
181
185
|
super(true, {
|
|
182
186
|
id: 'editor.action.moveLinesDownAction',
|
|
183
|
-
label: nls.localize2(
|
|
187
|
+
label: nls.localize2(1252, "Move Line Down"),
|
|
184
188
|
precondition: EditorContextKeys.writable,
|
|
185
189
|
kbOpts: {
|
|
186
190
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -191,9 +195,10 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
191
195
|
menuOpts: {
|
|
192
196
|
menuId: MenuId.MenubarSelectionMenu,
|
|
193
197
|
group: '2_line',
|
|
194
|
-
title: nls.localize(
|
|
198
|
+
title: nls.localize(1247, "Move &&Line Down"),
|
|
195
199
|
order: 4
|
|
196
|
-
}
|
|
200
|
+
},
|
|
201
|
+
canTriggerInlineEdits: true,
|
|
197
202
|
});
|
|
198
203
|
}
|
|
199
204
|
}
|
|
@@ -230,8 +235,9 @@ export class SortLinesAscendingAction extends AbstractSortLinesAction {
|
|
|
230
235
|
constructor() {
|
|
231
236
|
super(false, {
|
|
232
237
|
id: 'editor.action.sortLinesAscending',
|
|
233
|
-
label: nls.localize2(
|
|
234
|
-
precondition: EditorContextKeys.writable
|
|
238
|
+
label: nls.localize2(1253, "Sort Lines Ascending"),
|
|
239
|
+
precondition: EditorContextKeys.writable,
|
|
240
|
+
canTriggerInlineEdits: true,
|
|
235
241
|
});
|
|
236
242
|
}
|
|
237
243
|
}
|
|
@@ -239,8 +245,9 @@ export class SortLinesDescendingAction extends AbstractSortLinesAction {
|
|
|
239
245
|
constructor() {
|
|
240
246
|
super(true, {
|
|
241
247
|
id: 'editor.action.sortLinesDescending',
|
|
242
|
-
label: nls.localize2(
|
|
243
|
-
precondition: EditorContextKeys.writable
|
|
248
|
+
label: nls.localize2(1254, "Sort Lines Descending"),
|
|
249
|
+
precondition: EditorContextKeys.writable,
|
|
250
|
+
canTriggerInlineEdits: true,
|
|
244
251
|
});
|
|
245
252
|
}
|
|
246
253
|
}
|
|
@@ -248,8 +255,9 @@ export class DeleteDuplicateLinesAction extends EditorAction {
|
|
|
248
255
|
constructor() {
|
|
249
256
|
super({
|
|
250
257
|
id: 'editor.action.removeDuplicateLines',
|
|
251
|
-
label: nls.localize2(
|
|
252
|
-
precondition: EditorContextKeys.writable
|
|
258
|
+
label: nls.localize2(1255, "Delete Duplicate Lines"),
|
|
259
|
+
precondition: EditorContextKeys.writable,
|
|
260
|
+
canTriggerInlineEdits: true,
|
|
253
261
|
});
|
|
254
262
|
}
|
|
255
263
|
run(_accessor, editor) {
|
|
@@ -297,8 +305,9 @@ export class ReverseLinesAction extends EditorAction {
|
|
|
297
305
|
constructor() {
|
|
298
306
|
super({
|
|
299
307
|
id: 'editor.action.reverseLines',
|
|
300
|
-
label: nls.localize2(
|
|
301
|
-
precondition: EditorContextKeys.writable
|
|
308
|
+
label: nls.localize2(1256, "Reverse lines"),
|
|
309
|
+
precondition: EditorContextKeys.writable,
|
|
310
|
+
canTriggerInlineEdits: true
|
|
302
311
|
});
|
|
303
312
|
}
|
|
304
313
|
run(_accessor, editor) {
|
|
@@ -363,7 +372,7 @@ export class TrimTrailingWhitespaceAction extends EditorAction {
|
|
|
363
372
|
constructor() {
|
|
364
373
|
super({
|
|
365
374
|
id: TrimTrailingWhitespaceAction.ID,
|
|
366
|
-
label: nls.localize2(
|
|
375
|
+
label: nls.localize2(1257, "Trim Trailing Whitespace"),
|
|
367
376
|
precondition: EditorContextKeys.writable,
|
|
368
377
|
kbOpts: {
|
|
369
378
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -397,13 +406,14 @@ export class DeleteLinesAction extends EditorAction {
|
|
|
397
406
|
constructor() {
|
|
398
407
|
super({
|
|
399
408
|
id: 'editor.action.deleteLines',
|
|
400
|
-
label: nls.localize2(
|
|
409
|
+
label: nls.localize2(1258, "Delete Line"),
|
|
401
410
|
precondition: EditorContextKeys.writable,
|
|
402
411
|
kbOpts: {
|
|
403
412
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
404
413
|
primary: 2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 41 /* KeyCode.KeyK */,
|
|
405
414
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
406
|
-
}
|
|
415
|
+
},
|
|
416
|
+
canTriggerInlineEdits: true,
|
|
407
417
|
});
|
|
408
418
|
}
|
|
409
419
|
run(_accessor, editor) {
|
|
@@ -485,13 +495,14 @@ export class IndentLinesAction extends EditorAction {
|
|
|
485
495
|
constructor() {
|
|
486
496
|
super({
|
|
487
497
|
id: 'editor.action.indentLines',
|
|
488
|
-
label: nls.localize2(
|
|
498
|
+
label: nls.localize2(1259, "Indent Line"),
|
|
489
499
|
precondition: EditorContextKeys.writable,
|
|
490
500
|
kbOpts: {
|
|
491
501
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
492
502
|
primary: 2048 /* KeyMod.CtrlCmd */ | 94 /* KeyCode.BracketRight */,
|
|
493
503
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
494
|
-
}
|
|
504
|
+
},
|
|
505
|
+
canTriggerInlineEdits: true,
|
|
495
506
|
});
|
|
496
507
|
}
|
|
497
508
|
run(_accessor, editor) {
|
|
@@ -508,13 +519,14 @@ class OutdentLinesAction extends EditorAction {
|
|
|
508
519
|
constructor() {
|
|
509
520
|
super({
|
|
510
521
|
id: 'editor.action.outdentLines',
|
|
511
|
-
label: nls.localize2(
|
|
522
|
+
label: nls.localize2(1260, "Outdent Line"),
|
|
512
523
|
precondition: EditorContextKeys.writable,
|
|
513
524
|
kbOpts: {
|
|
514
525
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
515
526
|
primary: 2048 /* KeyMod.CtrlCmd */ | 92 /* KeyCode.BracketLeft */,
|
|
516
527
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
517
|
-
}
|
|
528
|
+
},
|
|
529
|
+
canTriggerInlineEdits: true,
|
|
518
530
|
});
|
|
519
531
|
}
|
|
520
532
|
run(_accessor, editor) {
|
|
@@ -526,13 +538,14 @@ export class InsertLineBeforeAction extends EditorAction {
|
|
|
526
538
|
constructor() {
|
|
527
539
|
super({
|
|
528
540
|
id: InsertLineBeforeAction.ID,
|
|
529
|
-
label: nls.localize2(
|
|
541
|
+
label: nls.localize2(1261, "Insert Line Above"),
|
|
530
542
|
precondition: EditorContextKeys.writable,
|
|
531
543
|
kbOpts: {
|
|
532
544
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
533
545
|
primary: 2048 /* KeyMod.CtrlCmd */ | 1024 /* KeyMod.Shift */ | 3 /* KeyCode.Enter */,
|
|
534
546
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
535
|
-
}
|
|
547
|
+
},
|
|
548
|
+
canTriggerInlineEdits: true,
|
|
536
549
|
});
|
|
537
550
|
}
|
|
538
551
|
run(_accessor, editor) {
|
|
@@ -549,13 +562,14 @@ export class InsertLineAfterAction extends EditorAction {
|
|
|
549
562
|
constructor() {
|
|
550
563
|
super({
|
|
551
564
|
id: InsertLineAfterAction.ID,
|
|
552
|
-
label: nls.localize2(
|
|
565
|
+
label: nls.localize2(1262, "Insert Line Below"),
|
|
553
566
|
precondition: EditorContextKeys.writable,
|
|
554
567
|
kbOpts: {
|
|
555
568
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
556
569
|
primary: 2048 /* KeyMod.CtrlCmd */ | 3 /* KeyCode.Enter */,
|
|
557
570
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
558
|
-
}
|
|
571
|
+
},
|
|
572
|
+
canTriggerInlineEdits: true,
|
|
559
573
|
});
|
|
560
574
|
}
|
|
561
575
|
run(_accessor, editor) {
|
|
@@ -600,14 +614,15 @@ export class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
600
614
|
constructor() {
|
|
601
615
|
super({
|
|
602
616
|
id: 'deleteAllLeft',
|
|
603
|
-
label: nls.localize2(
|
|
617
|
+
label: nls.localize2(1263, "Delete All Left"),
|
|
604
618
|
precondition: EditorContextKeys.writable,
|
|
605
619
|
kbOpts: {
|
|
606
620
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
607
621
|
primary: 0,
|
|
608
622
|
mac: { primary: 2048 /* KeyMod.CtrlCmd */ | 1 /* KeyCode.Backspace */ },
|
|
609
623
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
610
|
-
}
|
|
624
|
+
},
|
|
625
|
+
canTriggerInlineEdits: true,
|
|
611
626
|
});
|
|
612
627
|
}
|
|
613
628
|
_getEndCursorState(primaryCursor, rangesToDelete) {
|
|
@@ -669,14 +684,15 @@ export class DeleteAllRightAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
669
684
|
constructor() {
|
|
670
685
|
super({
|
|
671
686
|
id: 'deleteAllRight',
|
|
672
|
-
label: nls.localize2(
|
|
687
|
+
label: nls.localize2(1264, "Delete All Right"),
|
|
673
688
|
precondition: EditorContextKeys.writable,
|
|
674
689
|
kbOpts: {
|
|
675
690
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
676
691
|
primary: 0,
|
|
677
692
|
mac: { primary: 256 /* KeyMod.WinCtrl */ | 41 /* KeyCode.KeyK */, secondary: [2048 /* KeyMod.CtrlCmd */ | 20 /* KeyCode.Delete */] },
|
|
678
693
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
679
|
-
}
|
|
694
|
+
},
|
|
695
|
+
canTriggerInlineEdits: true,
|
|
680
696
|
});
|
|
681
697
|
}
|
|
682
698
|
_getEndCursorState(primaryCursor, rangesToDelete) {
|
|
@@ -726,14 +742,15 @@ export class JoinLinesAction extends EditorAction {
|
|
|
726
742
|
constructor() {
|
|
727
743
|
super({
|
|
728
744
|
id: 'editor.action.joinLines',
|
|
729
|
-
label: nls.localize2(
|
|
745
|
+
label: nls.localize2(1265, "Join Lines"),
|
|
730
746
|
precondition: EditorContextKeys.writable,
|
|
731
747
|
kbOpts: {
|
|
732
748
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
733
749
|
primary: 0,
|
|
734
750
|
mac: { primary: 256 /* KeyMod.WinCtrl */ | 40 /* KeyCode.KeyJ */ },
|
|
735
751
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
736
|
-
}
|
|
752
|
+
},
|
|
753
|
+
canTriggerInlineEdits: true,
|
|
737
754
|
});
|
|
738
755
|
}
|
|
739
756
|
run(_accessor, editor) {
|
|
@@ -867,8 +884,9 @@ export class TransposeAction extends EditorAction {
|
|
|
867
884
|
constructor() {
|
|
868
885
|
super({
|
|
869
886
|
id: 'editor.action.transpose',
|
|
870
|
-
label: nls.localize2(
|
|
871
|
-
precondition: EditorContextKeys.writable
|
|
887
|
+
label: nls.localize2(1266, "Transpose Characters around the Cursor"),
|
|
888
|
+
precondition: EditorContextKeys.writable,
|
|
889
|
+
canTriggerInlineEdits: true,
|
|
872
890
|
});
|
|
873
891
|
}
|
|
874
892
|
run(_accessor, editor) {
|
|
@@ -946,8 +964,9 @@ export class UpperCaseAction extends AbstractCaseAction {
|
|
|
946
964
|
constructor() {
|
|
947
965
|
super({
|
|
948
966
|
id: 'editor.action.transformToUppercase',
|
|
949
|
-
label: nls.localize2(
|
|
950
|
-
precondition: EditorContextKeys.writable
|
|
967
|
+
label: nls.localize2(1267, "Transform to Uppercase"),
|
|
968
|
+
precondition: EditorContextKeys.writable,
|
|
969
|
+
canTriggerInlineEdits: true,
|
|
951
970
|
});
|
|
952
971
|
}
|
|
953
972
|
_modifyText(text, wordSeparators) {
|
|
@@ -958,8 +977,9 @@ export class LowerCaseAction extends AbstractCaseAction {
|
|
|
958
977
|
constructor() {
|
|
959
978
|
super({
|
|
960
979
|
id: 'editor.action.transformToLowercase',
|
|
961
|
-
label: nls.localize2(
|
|
962
|
-
precondition: EditorContextKeys.writable
|
|
980
|
+
label: nls.localize2(1268, "Transform to Lowercase"),
|
|
981
|
+
precondition: EditorContextKeys.writable,
|
|
982
|
+
canTriggerInlineEdits: true
|
|
963
983
|
});
|
|
964
984
|
}
|
|
965
985
|
_modifyText(text, wordSeparators) {
|
|
@@ -994,8 +1014,9 @@ export class TitleCaseAction extends AbstractCaseAction {
|
|
|
994
1014
|
constructor() {
|
|
995
1015
|
super({
|
|
996
1016
|
id: 'editor.action.transformToTitlecase',
|
|
997
|
-
label: nls.localize2(
|
|
998
|
-
precondition: EditorContextKeys.writable
|
|
1017
|
+
label: nls.localize2(1269, "Transform to Title Case"),
|
|
1018
|
+
precondition: EditorContextKeys.writable,
|
|
1019
|
+
canTriggerInlineEdits: true
|
|
999
1020
|
});
|
|
1000
1021
|
}
|
|
1001
1022
|
_modifyText(text, wordSeparators) {
|
|
@@ -1015,8 +1036,9 @@ export class SnakeCaseAction extends AbstractCaseAction {
|
|
|
1015
1036
|
constructor() {
|
|
1016
1037
|
super({
|
|
1017
1038
|
id: 'editor.action.transformToSnakecase',
|
|
1018
|
-
label: nls.localize2(
|
|
1019
|
-
precondition: EditorContextKeys.writable
|
|
1039
|
+
label: nls.localize2(1270, "Transform to Snake Case"),
|
|
1040
|
+
precondition: EditorContextKeys.writable,
|
|
1041
|
+
canTriggerInlineEdits: true,
|
|
1020
1042
|
});
|
|
1021
1043
|
}
|
|
1022
1044
|
_modifyText(text, wordSeparators) {
|
|
@@ -1039,8 +1061,9 @@ export class CamelCaseAction extends AbstractCaseAction {
|
|
|
1039
1061
|
constructor() {
|
|
1040
1062
|
super({
|
|
1041
1063
|
id: 'editor.action.transformToCamelcase',
|
|
1042
|
-
label: nls.localize2(
|
|
1043
|
-
precondition: EditorContextKeys.writable
|
|
1064
|
+
label: nls.localize2(1271, "Transform to Camel Case"),
|
|
1065
|
+
precondition: EditorContextKeys.writable,
|
|
1066
|
+
canTriggerInlineEdits: true
|
|
1044
1067
|
});
|
|
1045
1068
|
}
|
|
1046
1069
|
_modifyText(text, wordSeparators) {
|
|
@@ -1063,8 +1086,9 @@ export class PascalCaseAction extends AbstractCaseAction {
|
|
|
1063
1086
|
constructor() {
|
|
1064
1087
|
super({
|
|
1065
1088
|
id: 'editor.action.transformToPascalcase',
|
|
1066
|
-
label: nls.localize2(
|
|
1067
|
-
precondition: EditorContextKeys.writable
|
|
1089
|
+
label: nls.localize2(1272, "Transform to Pascal Case"),
|
|
1090
|
+
precondition: EditorContextKeys.writable,
|
|
1091
|
+
canTriggerInlineEdits: true,
|
|
1068
1092
|
});
|
|
1069
1093
|
}
|
|
1070
1094
|
_modifyText(text, wordSeparators) {
|
|
@@ -1102,8 +1126,9 @@ export class KebabCaseAction extends AbstractCaseAction {
|
|
|
1102
1126
|
constructor() {
|
|
1103
1127
|
super({
|
|
1104
1128
|
id: 'editor.action.transformToKebabcase',
|
|
1105
|
-
label: nls.localize2(
|
|
1106
|
-
precondition: EditorContextKeys.writable
|
|
1129
|
+
label: nls.localize2(1273, 'Transform to Kebab Case'),
|
|
1130
|
+
precondition: EditorContextKeys.writable,
|
|
1131
|
+
canTriggerInlineEdits: true,
|
|
1107
1132
|
});
|
|
1108
1133
|
}
|
|
1109
1134
|
_modifyText(text, _) {
|