monaco-editor-core 0.56.0-dev-20251217 → 0.56.0-dev-20251219
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 +6 -2
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js.map +1 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js +6 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js.map +1 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js +17 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js.map +1 -1
- package/esm/vs/base/browser/ui/toggle/toggle.js +78 -6
- package/esm/vs/base/browser/ui/toggle/toggle.js.map +1 -1
- package/esm/vs/base/common/fuzzyScorer.js +3 -2
- package/esm/vs/base/common/fuzzyScorer.js.map +1 -1
- package/esm/vs/editor/browser/services/editorWorkerService.js +6 -2
- package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +49 -47
- package/esm/vs/editor/common/config/editorConfigurationSchema.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +410 -410
- package/esm/vs/editor/common/core/editorColorRegistry.js +70 -69
- package/esm/vs/editor/common/core/editorColorRegistry.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js +3 -3
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js.map +1 -1
- package/esm/vs/editor/common/editorContextKeys.js +47 -47
- 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/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +4 -15
- package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +18 -9
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js.map +1 -1
- 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 +10 -10
- 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/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/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/markdownHoverParticipant.js +9 -9
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- 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/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 +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js.map +1 -1
- 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 +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 +25 -27
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js.map +1 -1
- 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 +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 +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- 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 +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/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/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 +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 +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +38 -4
- package/esm/vs/platform/quickinput/browser/quickInput.js +42 -14
- package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputBox.js +13 -1
- package/esm/vs/platform/quickinput/browser/quickInputBox.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +22 -12
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +17 -12
- package/esm/vs/platform/quickinput/browser/quickInputList.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +36 -8
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js +3 -3
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +8 -4
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +18 -18
- 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
|
@@ -22,7 +22,7 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: SHOW_OR_FOCUS_HOVER_ACTION_ID,
|
|
25
|
-
label: nls.localize2(
|
|
25
|
+
label: nls.localize2(1115, "Show or Focus Hover"),
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -31,7 +31,7 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
metadata: {
|
|
34
|
-
description: nls.localize2(
|
|
34
|
+
description: nls.localize2(1116, 'Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position.'),
|
|
35
35
|
args: [{
|
|
36
36
|
name: 'args',
|
|
37
37
|
schema: {
|
|
@@ -41,9 +41,9 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
41
41
|
description: 'Controls if and when the hover should take focus upon being triggered by this action.',
|
|
42
42
|
enum: [HoverFocusBehavior.NoAutoFocus, HoverFocusBehavior.FocusIfVisible, HoverFocusBehavior.AutoFocusImmediately],
|
|
43
43
|
enumDescriptions: [
|
|
44
|
-
nls.localize(
|
|
45
|
-
nls.localize(
|
|
46
|
-
nls.localize(
|
|
44
|
+
nls.localize(1112, 'The hover will not automatically take focus.'),
|
|
45
|
+
nls.localize(1113, 'The hover will take focus only if it is already visible.'),
|
|
46
|
+
nls.localize(1114, 'The hover will automatically take focus when it appears.'),
|
|
47
47
|
],
|
|
48
48
|
default: HoverFocusBehavior.FocusIfVisible,
|
|
49
49
|
}
|
|
@@ -98,7 +98,7 @@ export class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
100
100
|
id: SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID,
|
|
101
|
-
label: nls.localize2(
|
|
101
|
+
label: nls.localize2(1117, "Show Definition Preview Hover"),
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
@@ -107,7 +107,7 @@ export class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
107
107
|
|
|
108
108
|
precondition: undefined,
|
|
109
109
|
metadata: {
|
|
110
|
-
description: nls.localize2(
|
|
110
|
+
description: nls.localize2(1118, 'Show the definition preview hover in the editor.'),
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -135,7 +135,7 @@ export class HideContentHoverAction extends EditorAction {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: HIDE_HOVER_ACTION_ID,
|
|
138
|
-
label: nls.localize2(
|
|
138
|
+
label: nls.localize2(1119, "Hide Hover"),
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
|
|
@@ -151,7 +151,7 @@ export class ScrollUpHoverAction extends EditorAction {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: SCROLL_UP_HOVER_ACTION_ID,
|
|
154
|
-
label: nls.localize2(
|
|
154
|
+
label: nls.localize2(1120, "Scroll Up Hover"),
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
@@ -164,7 +164,7 @@ export class ScrollUpHoverAction extends EditorAction {
|
|
|
164
164
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
165
165
|
},
|
|
166
166
|
metadata: {
|
|
167
|
-
description: nls.localize2(
|
|
167
|
+
description: nls.localize2(1121, 'Scroll up the editor hover.')
|
|
168
168
|
},
|
|
169
169
|
});
|
|
170
170
|
}
|
|
@@ -180,7 +180,7 @@ export class ScrollDownHoverAction extends EditorAction {
|
|
|
180
180
|
constructor() {
|
|
181
181
|
super({
|
|
182
182
|
id: SCROLL_DOWN_HOVER_ACTION_ID,
|
|
183
|
-
label: nls.localize2(
|
|
183
|
+
label: nls.localize2(1122, "Scroll Down Hover"),
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ export class ScrollDownHoverAction extends EditorAction {
|
|
|
193
193
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
194
194
|
},
|
|
195
195
|
metadata: {
|
|
196
|
-
description: nls.localize2(
|
|
196
|
+
description: nls.localize2(1123, 'Scroll down the editor hover.'),
|
|
197
197
|
},
|
|
198
198
|
});
|
|
199
199
|
}
|
|
@@ -209,7 +209,7 @@ export class ScrollLeftHoverAction extends EditorAction {
|
|
|
209
209
|
constructor() {
|
|
210
210
|
super({
|
|
211
211
|
id: SCROLL_LEFT_HOVER_ACTION_ID,
|
|
212
|
-
label: nls.localize2(
|
|
212
|
+
label: nls.localize2(1124, "Scroll Left Hover"),
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
|
|
@@ -222,7 +222,7 @@ export class ScrollLeftHoverAction extends EditorAction {
|
|
|
222
222
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
223
223
|
},
|
|
224
224
|
metadata: {
|
|
225
|
-
description: nls.localize2(
|
|
225
|
+
description: nls.localize2(1125, 'Scroll left the editor hover.'),
|
|
226
226
|
},
|
|
227
227
|
});
|
|
228
228
|
}
|
|
@@ -238,7 +238,7 @@ export class ScrollRightHoverAction extends EditorAction {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: SCROLL_RIGHT_HOVER_ACTION_ID,
|
|
241
|
-
label: nls.localize2(
|
|
241
|
+
label: nls.localize2(1126, "Scroll Right Hover"),
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
|
|
@@ -251,7 +251,7 @@ export class ScrollRightHoverAction extends EditorAction {
|
|
|
251
251
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
252
252
|
},
|
|
253
253
|
metadata: {
|
|
254
|
-
description: nls.localize2(
|
|
254
|
+
description: nls.localize2(1127, 'Scroll right the editor hover.')
|
|
255
255
|
},
|
|
256
256
|
});
|
|
257
257
|
}
|
|
@@ -267,7 +267,7 @@ export class PageUpHoverAction extends EditorAction {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: PAGE_UP_HOVER_ACTION_ID,
|
|
270
|
-
label: nls.localize2(
|
|
270
|
+
label: nls.localize2(1128, "Page Up Hover"),
|
|
271
271
|
|
|
272
272
|
|
|
273
273
|
|
|
@@ -281,7 +281,7 @@ export class PageUpHoverAction extends EditorAction {
|
|
|
281
281
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
282
282
|
},
|
|
283
283
|
metadata: {
|
|
284
|
-
description: nls.localize2(
|
|
284
|
+
description: nls.localize2(1129, 'Page up the editor hover.'),
|
|
285
285
|
},
|
|
286
286
|
});
|
|
287
287
|
}
|
|
@@ -297,7 +297,7 @@ export class PageDownHoverAction extends EditorAction {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: PAGE_DOWN_HOVER_ACTION_ID,
|
|
300
|
-
label: nls.localize2(
|
|
300
|
+
label: nls.localize2(1130, "Page Down Hover"),
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
|
|
@@ -311,7 +311,7 @@ export class PageDownHoverAction extends EditorAction {
|
|
|
311
311
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
312
312
|
},
|
|
313
313
|
metadata: {
|
|
314
|
-
description: nls.localize2(
|
|
314
|
+
description: nls.localize2(1131, 'Page down the editor hover.'),
|
|
315
315
|
},
|
|
316
316
|
});
|
|
317
317
|
}
|
|
@@ -327,7 +327,7 @@ export class GoToTopHoverAction extends EditorAction {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: GO_TO_TOP_HOVER_ACTION_ID,
|
|
330
|
-
label: nls.localize2(
|
|
330
|
+
label: nls.localize2(1132, "Go To Top Hover"),
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
|
|
@@ -341,7 +341,7 @@ export class GoToTopHoverAction extends EditorAction {
|
|
|
341
341
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
342
342
|
},
|
|
343
343
|
metadata: {
|
|
344
|
-
description: nls.localize2(
|
|
344
|
+
description: nls.localize2(1133, 'Go to the top of the editor hover.'),
|
|
345
345
|
},
|
|
346
346
|
});
|
|
347
347
|
}
|
|
@@ -357,7 +357,7 @@ export class GoToBottomHoverAction extends EditorAction {
|
|
|
357
357
|
constructor() {
|
|
358
358
|
super({
|
|
359
359
|
id: GO_TO_BOTTOM_HOVER_ACTION_ID,
|
|
360
|
-
label: nls.localize2(
|
|
360
|
+
label: nls.localize2(1134, "Go To Bottom Hover"),
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
@@ -371,7 +371,7 @@ export class GoToBottomHoverAction extends EditorAction {
|
|
|
371
371
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
372
372
|
},
|
|
373
373
|
metadata: {
|
|
374
|
-
description: nls.localize2(
|
|
374
|
+
description: nls.localize2(1135, 'Go to the bottom of the editor hover.')
|
|
375
375
|
},
|
|
376
376
|
});
|
|
377
377
|
}
|
|
@@ -30,7 +30,7 @@ let HoverCopyButton = class HoverCopyButton extends Disposable {
|
|
|
30
30
|
this._hoverService = _hoverService;
|
|
31
31
|
this._container.classList.add('hover-row-with-copy');
|
|
32
32
|
this._button = this._register(new SimpleButton({
|
|
33
|
-
label: localize(
|
|
33
|
+
label: localize(1136, "Copy"),
|
|
34
34
|
icon: Codicon.copy,
|
|
35
35
|
onTrigger: () => this._copyContent(),
|
|
36
36
|
className: 'hover-copy-button',
|
|
@@ -41,7 +41,7 @@ let HoverCopyButton = class HoverCopyButton extends Disposable {
|
|
|
41
41
|
const content = this._getContent();
|
|
42
42
|
if (content) {
|
|
43
43
|
await this._clipboardService.writeText(content);
|
|
44
|
-
status(localize(
|
|
44
|
+
status(localize(1137, "Copied to clipboard"));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -35,8 +35,8 @@ import { AsyncIterableProducer } from '../../../../base/common/async.js';
|
|
|
35
35
|
import { getHoverProviderResultsAsAsyncIterable } from './getHover.js';
|
|
36
36
|
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
37
37
|
const $ = dom.$;
|
|
38
|
-
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, nls.localize(
|
|
39
|
-
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, nls.localize(
|
|
38
|
+
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, nls.localize(1138, 'Icon for increaseing hover verbosity.'));
|
|
39
|
+
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, nls.localize(1139, 'Icon for decreasing hover verbosity.'));
|
|
40
40
|
export class MarkdownHover {
|
|
41
41
|
constructor(owner, range, contents, isBeforeContent, ordinal, source = undefined) {
|
|
42
42
|
this.owner = owner;
|
|
@@ -79,7 +79,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
79
79
|
this.hoverOrdinal = 3;
|
|
80
80
|
}
|
|
81
81
|
createLoadingMessage(anchor) {
|
|
82
|
-
return new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(nls.localize(
|
|
82
|
+
return new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(nls.localize(1140, "Loading..."))], false, 2000);
|
|
83
83
|
}
|
|
84
84
|
computeSync(anchor, lineDecorations) {
|
|
85
85
|
if (!this._editor.hasModel() || anchor.type !== 1 /* HoverAnchorType.Range */) {
|
|
@@ -100,12 +100,12 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
100
100
|
if (stopRenderingLineAfter >= 0 && lineLength > stopRenderingLineAfter && anchor.range.startColumn >= stopRenderingLineAfter) {
|
|
101
101
|
stopRenderingMessage = true;
|
|
102
102
|
result.push(new MarkdownHover(this, anchor.range, [{
|
|
103
|
-
value: nls.localize(
|
|
103
|
+
value: nls.localize(1141, "Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")
|
|
104
104
|
}], false, index++));
|
|
105
105
|
}
|
|
106
106
|
if (!stopRenderingMessage && typeof maxTokenizationLineLength === 'number' && lineLength >= maxTokenizationLineLength) {
|
|
107
107
|
result.push(new MarkdownHover(this, anchor.range, [{
|
|
108
|
-
value: nls.localize(
|
|
108
|
+
value: nls.localize(1142, "Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")
|
|
109
109
|
}], false, index++));
|
|
110
110
|
}
|
|
111
111
|
let isBeforeContent = false;
|
|
@@ -404,14 +404,14 @@ export function labelForHoverVerbosityAction(keybindingService, action) {
|
|
|
404
404
|
case HoverVerbosityAction.Increase: {
|
|
405
405
|
const kb = keybindingService.lookupKeybinding(INCREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
406
406
|
return kb ?
|
|
407
|
-
nls.localize(
|
|
408
|
-
nls.localize(
|
|
407
|
+
nls.localize(1143, "Increase Hover Verbosity ({0})", kb.getLabel()) :
|
|
408
|
+
nls.localize(1144, "Increase Hover Verbosity");
|
|
409
409
|
}
|
|
410
410
|
case HoverVerbosityAction.Decrease: {
|
|
411
411
|
const kb = keybindingService.lookupKeybinding(DECREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
412
412
|
return kb ?
|
|
413
|
-
nls.localize(
|
|
414
|
-
nls.localize(
|
|
413
|
+
nls.localize(1145, "Decrease Hover Verbosity ({0})", kb.getLabel()) :
|
|
414
|
+
nls.localize(1146, "Decrease Hover Verbosity");
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
}
|
|
@@ -172,7 +172,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
172
172
|
const markerController = MarkerController.get(this._editor);
|
|
173
173
|
if (markerController) {
|
|
174
174
|
context.statusBar.addAction({
|
|
175
|
-
label: nls.localize(
|
|
175
|
+
label: nls.localize(1147, "View Problem"),
|
|
176
176
|
commandId: NextMarkerAction.ID,
|
|
177
177
|
run: () => {
|
|
178
178
|
context.hide();
|
|
@@ -187,14 +187,14 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
187
187
|
if (this.recentMarkerCodeActionsInfo) {
|
|
188
188
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
189
189
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
190
|
-
quickfixPlaceholderElement.textContent = nls.localize(
|
|
190
|
+
quickfixPlaceholderElement.textContent = nls.localize(1148, "No quick fixes available");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
this.recentMarkerCodeActionsInfo = undefined;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = nls.localize(
|
|
197
|
+
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = nls.localize(1149, "Checking for quick fixes..."), 200, disposables);
|
|
198
198
|
if (!quickfixPlaceholderElement.textContent) {
|
|
199
199
|
// Have some content in here to avoid flickering
|
|
200
200
|
quickfixPlaceholderElement.textContent = String.fromCharCode(0xA0); //
|
|
@@ -206,7 +206,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
206
206
|
this.recentMarkerCodeActionsInfo = { marker: markerHover.marker, hasCodeActions: actions.validActions.length > 0 };
|
|
207
207
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
208
208
|
actions.dispose();
|
|
209
|
-
quickfixPlaceholderElement.textContent = nls.localize(
|
|
209
|
+
quickfixPlaceholderElement.textContent = nls.localize(1150, "No quick fixes available");
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
212
|
quickfixPlaceholderElement.style.display = 'none';
|
|
@@ -217,7 +217,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
217
217
|
}
|
|
218
218
|
}));
|
|
219
219
|
context.statusBar.addAction({
|
|
220
|
-
label: nls.localize(
|
|
220
|
+
label: nls.localize(1151, "Quick Fix..."),
|
|
221
221
|
commandId: quickFixCommandId,
|
|
222
222
|
run: (target) => {
|
|
223
223
|
showing = true;
|
|
@@ -107,7 +107,7 @@ class InPlaceReplaceUp extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'editor.action.inPlaceReplace.up',
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(1255, "Replace with Previous Value"),
|
|
111
111
|
precondition: EditorContextKeys.writable,
|
|
112
112
|
kbOpts: {
|
|
113
113
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -128,7 +128,7 @@ class InPlaceReplaceDown extends EditorAction {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: 'editor.action.inPlaceReplace.down',
|
|
131
|
-
label: nls.localize2(
|
|
131
|
+
label: nls.localize2(1256, "Replace with Next Value"),
|
|
132
132
|
precondition: EditorContextKeys.writable,
|
|
133
133
|
kbOpts: {
|
|
134
134
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -30,10 +30,10 @@ export class IndentationToSpacesAction extends EditorAction {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: IndentationToSpacesAction.ID,
|
|
33
|
-
label: nls.localize2(
|
|
33
|
+
label: nls.localize2(1156, "Convert Indentation to Spaces"),
|
|
34
34
|
precondition: EditorContextKeys.writable,
|
|
35
35
|
metadata: {
|
|
36
|
-
description: nls.localize2(
|
|
36
|
+
description: nls.localize2(1157, "Convert the tab indentation to spaces."),
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -61,10 +61,10 @@ export class IndentationToTabsAction extends EditorAction {
|
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: IndentationToTabsAction.ID,
|
|
64
|
-
label: nls.localize2(
|
|
64
|
+
label: nls.localize2(1158, "Convert Indentation to Tabs"),
|
|
65
65
|
precondition: EditorContextKeys.writable,
|
|
66
66
|
metadata: {
|
|
67
|
-
description: nls.localize2(
|
|
67
|
+
description: nls.localize2(1159, "Convert the spaces indentation to tabs."),
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -107,17 +107,17 @@ export class ChangeIndentationSizeAction extends EditorAction {
|
|
|
107
107
|
label: n.toString(),
|
|
108
108
|
// add description for tabSize value set in the configuration
|
|
109
109
|
description: (n === creationOpts.tabSize && n === modelOpts.tabSize
|
|
110
|
-
? nls.localize(
|
|
110
|
+
? nls.localize(1152, "Configured Tab Size")
|
|
111
111
|
: n === creationOpts.tabSize
|
|
112
|
-
? nls.localize(
|
|
112
|
+
? nls.localize(1153, "Default Tab Size")
|
|
113
113
|
: n === modelOpts.tabSize
|
|
114
|
-
? nls.localize(
|
|
114
|
+
? nls.localize(1154, "Current Tab Size")
|
|
115
115
|
: undefined)
|
|
116
116
|
}));
|
|
117
117
|
// auto focus the tabSize set for the current editor
|
|
118
118
|
const autoFocusIndex = Math.min(model.getOptions().tabSize - 1, 7);
|
|
119
119
|
setTimeout(() => {
|
|
120
|
-
quickInputService.pick(picks, { placeHolder: nls.localize(
|
|
120
|
+
quickInputService.pick(picks, { placeHolder: nls.localize(1155, "Select Tab Size for Current File"), activeItem: picks[autoFocusIndex] }).then(pick => {
|
|
121
121
|
if (pick) {
|
|
122
122
|
if (model && !model.isDisposed()) {
|
|
123
123
|
const pickedVal = parseInt(pick.label, 10);
|
|
@@ -144,10 +144,10 @@ export class IndentUsingTabs extends ChangeIndentationSizeAction {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super(false, false, {
|
|
146
146
|
id: IndentUsingTabs.ID,
|
|
147
|
-
label: nls.localize2(
|
|
147
|
+
label: nls.localize2(1160, "Indent Using Tabs"),
|
|
148
148
|
precondition: undefined,
|
|
149
149
|
metadata: {
|
|
150
|
-
description: nls.localize2(
|
|
150
|
+
description: nls.localize2(1161, "Use indentation with tabs."),
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -157,10 +157,10 @@ export class IndentUsingSpaces extends ChangeIndentationSizeAction {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super(true, false, {
|
|
159
159
|
id: IndentUsingSpaces.ID,
|
|
160
|
-
label: nls.localize2(
|
|
160
|
+
label: nls.localize2(1162, "Indent Using Spaces"),
|
|
161
161
|
precondition: undefined,
|
|
162
162
|
metadata: {
|
|
163
|
-
description: nls.localize2(
|
|
163
|
+
description: nls.localize2(1163, "Use indentation with spaces."),
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -170,10 +170,10 @@ export class ChangeTabDisplaySize extends ChangeIndentationSizeAction {
|
|
|
170
170
|
constructor() {
|
|
171
171
|
super(true, true, {
|
|
172
172
|
id: ChangeTabDisplaySize.ID,
|
|
173
|
-
label: nls.localize2(
|
|
173
|
+
label: nls.localize2(1164, "Change Tab Display Size"),
|
|
174
174
|
precondition: undefined,
|
|
175
175
|
metadata: {
|
|
176
|
-
description: nls.localize2(
|
|
176
|
+
description: nls.localize2(1165, "Change the space size equivalent of the tab."),
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
}
|
|
@@ -183,10 +183,10 @@ export class DetectIndentation extends EditorAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: DetectIndentation.ID,
|
|
186
|
-
label: nls.localize2(
|
|
186
|
+
label: nls.localize2(1166, "Detect Indentation from Content"),
|
|
187
187
|
precondition: undefined,
|
|
188
188
|
metadata: {
|
|
189
|
-
description: nls.localize2(
|
|
189
|
+
description: nls.localize2(1167, "Detect the indentation from content."),
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -204,10 +204,10 @@ export class ReindentLinesAction extends EditorAction {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'editor.action.reindentlines',
|
|
207
|
-
label: nls.localize2(
|
|
207
|
+
label: nls.localize2(1168, "Reindent Lines"),
|
|
208
208
|
precondition: EditorContextKeys.writable,
|
|
209
209
|
metadata: {
|
|
210
|
-
description: nls.localize2(
|
|
210
|
+
description: nls.localize2(1169, "Reindent the lines of the editor."),
|
|
211
211
|
},
|
|
212
212
|
canTriggerInlineEdits: true,
|
|
213
213
|
});
|
|
@@ -230,10 +230,10 @@ export class ReindentSelectedLinesAction extends EditorAction {
|
|
|
230
230
|
constructor() {
|
|
231
231
|
super({
|
|
232
232
|
id: 'editor.action.reindentselectedlines',
|
|
233
|
-
label: nls.localize2(
|
|
233
|
+
label: nls.localize2(1170, "Reindent Selected Lines"),
|
|
234
234
|
precondition: EditorContextKeys.writable,
|
|
235
235
|
metadata: {
|
|
236
|
-
description: nls.localize2(
|
|
236
|
+
description: nls.localize2(1171, "Reindent the selected lines of the editor."),
|
|
237
237
|
},
|
|
238
238
|
canTriggerInlineEdits: true,
|
|
239
239
|
});
|
|
@@ -82,7 +82,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
82
82
|
}
|
|
83
83
|
// (1.2) Inlay dbl-click gesture
|
|
84
84
|
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
|
85
|
-
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(
|
|
85
|
+
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(1172, "Double-click to insert"))], false, 10001));
|
|
86
86
|
}
|
|
87
87
|
// (2) Inlay Label Part Tooltip
|
|
88
88
|
let partTooltip;
|
|
@@ -101,19 +101,19 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
101
101
|
const useMetaKey = this._editor.getOption(86 /* EditorOption.multiCursorModifier */) === 'altKey';
|
|
102
102
|
const kb = useMetaKey
|
|
103
103
|
? platform.isMacintosh
|
|
104
|
-
? localize(
|
|
105
|
-
: localize(
|
|
104
|
+
? localize(1173, "cmd + click")
|
|
105
|
+
: localize(1174, "ctrl + click")
|
|
106
106
|
: platform.isMacintosh
|
|
107
|
-
? localize(
|
|
108
|
-
: localize(
|
|
107
|
+
? localize(1175, "option + click")
|
|
108
|
+
: localize(1176, "alt + click");
|
|
109
109
|
if (part.part.location && part.part.command) {
|
|
110
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
110
|
+
linkHint = new MarkdownString().appendText(localize(1177, 'Go to Definition ({0}), right click for more', kb));
|
|
111
111
|
}
|
|
112
112
|
else if (part.part.location) {
|
|
113
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
113
|
+
linkHint = new MarkdownString().appendText(localize(1178, 'Go to Definition ({0})', kb));
|
|
114
114
|
}
|
|
115
115
|
else if (part.part.command) {
|
|
116
|
-
linkHint = new MarkdownString(`[${localize(
|
|
116
|
+
linkHint = new MarkdownString(`[${localize(1179, "Execute Command")}](${asCommandLink(part.part.command)} "${part.part.command.title}") (${kb})`, { isTrusted: true });
|
|
117
117
|
}
|
|
118
118
|
if (linkHint) {
|
|
119
119
|
executor.emitOne(new MarkdownHover(this, anchor.range, [linkHint], false, 10000));
|
|
@@ -25,7 +25,7 @@ export class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: ShowNextInlineSuggestionAction.ID,
|
|
28
|
-
label: nls.localize2(
|
|
28
|
+
label: nls.localize2(1191, "Show Next Inline Suggestion"),
|
|
29
29
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
30
30
|
kbOpts: {
|
|
31
31
|
weight: 100,
|
|
@@ -43,7 +43,7 @@ export class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
super({
|
|
45
45
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
46
|
-
label: nls.localize2(
|
|
46
|
+
label: nls.localize2(1192, "Show Previous Inline Suggestion"),
|
|
47
47
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
48
48
|
kbOpts: {
|
|
49
49
|
weight: 100,
|
|
@@ -74,13 +74,13 @@ export class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super({
|
|
76
76
|
id: 'editor.action.inlineSuggest.trigger',
|
|
77
|
-
label: nls.localize2(
|
|
77
|
+
label: nls.localize2(1193, "Trigger Inline Suggestion"),
|
|
78
78
|
precondition: EditorContextKeys.writable,
|
|
79
79
|
metadata: {
|
|
80
|
-
description: nls.localize(
|
|
80
|
+
description: nls.localize(1180, "Triggers an inline suggestion in the editor."),
|
|
81
81
|
args: [{
|
|
82
82
|
name: 'args',
|
|
83
|
-
description: nls.localize(
|
|
83
|
+
description: nls.localize(1181, "Options for triggering inline suggestions."),
|
|
84
84
|
isOptional: true,
|
|
85
85
|
schema: argsValidator.getJSONSchema(),
|
|
86
86
|
}]
|
|
@@ -108,7 +108,7 @@ export class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
108
108
|
if (!controller?.model.get()?.state.get()) {
|
|
109
109
|
notificationService.notify({
|
|
110
110
|
severity: Severity.Info,
|
|
111
|
-
message: nls.localize(
|
|
111
|
+
message: nls.localize(1182, "No inline suggestion is available.")
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -118,7 +118,7 @@ export class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
118
118
|
constructor() {
|
|
119
119
|
super({
|
|
120
120
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
121
|
-
label: nls.localize2(
|
|
121
|
+
label: nls.localize2(1194, "Accept Next Word Of Inline Suggestion"),
|
|
122
122
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
123
123
|
kbOpts: {
|
|
124
124
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
@@ -127,7 +127,7 @@ export class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
127
127
|
},
|
|
128
128
|
menuOpts: [{
|
|
129
129
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
130
|
-
title: nls.localize(
|
|
130
|
+
title: nls.localize(1183, 'Accept Word'),
|
|
131
131
|
group: 'primary',
|
|
132
132
|
order: 2,
|
|
133
133
|
}],
|
|
@@ -142,14 +142,14 @@ export class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
142
142
|
constructor() {
|
|
143
143
|
super({
|
|
144
144
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
145
|
-
label: nls.localize2(
|
|
145
|
+
label: nls.localize2(1195, "Accept Next Line Of Inline Suggestion"),
|
|
146
146
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
147
147
|
kbOpts: {
|
|
148
148
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 1,
|
|
149
149
|
},
|
|
150
150
|
menuOpts: [{
|
|
151
151
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
152
|
-
title: nls.localize(
|
|
152
|
+
title: nls.localize(1184, 'Accept Line'),
|
|
153
153
|
group: 'secondary',
|
|
154
154
|
order: 2,
|
|
155
155
|
}],
|
|
@@ -164,16 +164,16 @@ export class AcceptInlineCompletion extends EditorAction {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: inlineSuggestCommitId,
|
|
167
|
-
label: nls.localize2(
|
|
167
|
+
label: nls.localize2(1196, "Accept Inline Suggestion"),
|
|
168
168
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
169
169
|
menuOpts: [{
|
|
170
170
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
171
|
-
title: nls.localize(
|
|
171
|
+
title: nls.localize(1185, "Accept"),
|
|
172
172
|
group: 'primary',
|
|
173
173
|
order: 2,
|
|
174
174
|
}, {
|
|
175
175
|
menuId: MenuId.InlineEditsActions,
|
|
176
|
-
title: nls.localize(
|
|
176
|
+
title: nls.localize(1186, "Accept"),
|
|
177
177
|
group: 'primary',
|
|
178
178
|
order: 2,
|
|
179
179
|
}],
|
|
@@ -204,7 +204,7 @@ export class AcceptInlineCompletionAlternativeAction extends EditorAction {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: inlineSuggestCommitAlternativeActionId,
|
|
207
|
-
label: nls.localize2(
|
|
207
|
+
label: nls.localize2(1197, "Accept Inline Suggestion Alternative Action"),
|
|
208
208
|
precondition: ContextKeyExpr.and(InlineCompletionContextKeys.inlineSuggestionAlternativeActionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
209
209
|
menuOpts: [],
|
|
210
210
|
kbOpts: [
|
|
@@ -233,11 +233,11 @@ export class JumpToNextInlineEdit extends EditorAction {
|
|
|
233
233
|
constructor() {
|
|
234
234
|
super({
|
|
235
235
|
id: jumpToNextInlineEditId,
|
|
236
|
-
label: nls.localize2(
|
|
236
|
+
label: nls.localize2(1198, "Jump to next inline edit"),
|
|
237
237
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
238
238
|
menuOpts: [{
|
|
239
239
|
menuId: MenuId.InlineEditsActions,
|
|
240
|
-
title: nls.localize(
|
|
240
|
+
title: nls.localize(1187, "Jump"),
|
|
241
241
|
group: 'primary',
|
|
242
242
|
order: 1,
|
|
243
243
|
when: InlineCompletionContextKeys.cursorAtInlineEdit.toNegated(),
|
|
@@ -261,7 +261,7 @@ export class HideInlineCompletion extends EditorAction {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: HideInlineCompletion.ID,
|
|
264
|
-
label: nls.localize2(
|
|
264
|
+
label: nls.localize2(1199, "Hide Inline Suggestion"),
|
|
265
265
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineSuggestionVisible, InlineCompletionContextKeys.inlineEditVisible),
|
|
266
266
|
kbOpts: {
|
|
267
267
|
weight: 100 /* KeybindingWeight.EditorContrib */ + 90, // same as hiding the suggest widget
|
|
@@ -269,7 +269,7 @@ export class HideInlineCompletion extends EditorAction {
|
|
|
269
269
|
},
|
|
270
270
|
menuOpts: [{
|
|
271
271
|
menuId: MenuId.InlineEditsActions,
|
|
272
|
-
title: nls.localize(
|
|
272
|
+
title: nls.localize(1188, "Reject"),
|
|
273
273
|
group: 'primary',
|
|
274
274
|
order: 3,
|
|
275
275
|
}]
|
|
@@ -288,7 +288,7 @@ export class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
288
288
|
constructor() {
|
|
289
289
|
super({
|
|
290
290
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
291
|
-
label: nls.localize2(
|
|
291
|
+
label: nls.localize2(1200, "Toggle Inline Suggestions Show Collapsed"),
|
|
292
292
|
precondition: ContextKeyExpr.true(),
|
|
293
293
|
});
|
|
294
294
|
}
|
|
@@ -310,7 +310,7 @@ export class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
310
310
|
constructor() {
|
|
311
311
|
super({
|
|
312
312
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
313
|
-
title: nls.localize(
|
|
313
|
+
title: nls.localize(1189, "Always Show Toolbar"),
|
|
314
314
|
f1: false,
|
|
315
315
|
precondition: undefined,
|
|
316
316
|
menu: [{
|
|
@@ -332,7 +332,7 @@ export class DevExtractReproSample extends EditorAction {
|
|
|
332
332
|
constructor() {
|
|
333
333
|
super({
|
|
334
334
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
335
|
-
label: nls.localize(
|
|
335
|
+
label: nls.localize(1190, "Developer: Extract Inline Suggest State"),
|
|
336
336
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
337
337
|
precondition: ContextKeyExpr.or(InlineCompletionContextKeys.inlineEditVisible, InlineCompletionContextKeys.inlineSuggestionVisible),
|
|
338
338
|
});
|