monaco-editor-core 0.56.0-dev-20251217 → 0.56.0-dev-20251218
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 +4 -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/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 +69 -69
- 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/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 +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/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 +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
|
@@ -56,7 +56,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super(0 /* Type.Toggle */, {
|
|
58
58
|
id: 'editor.action.commentLine',
|
|
59
|
-
label: nls.localize2(
|
|
59
|
+
label: nls.localize2(904, "Toggle Line Comment"),
|
|
60
60
|
precondition: EditorContextKeys.writable,
|
|
61
61
|
kbOpts: {
|
|
62
62
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -66,7 +66,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
66
66
|
menuOpts: {
|
|
67
67
|
menuId: MenuId.MenubarEditMenu,
|
|
68
68
|
group: '5_insert',
|
|
69
|
-
title: nls.localize(
|
|
69
|
+
title: nls.localize(902, "&&Toggle Line Comment"),
|
|
70
70
|
order: 1
|
|
71
71
|
},
|
|
72
72
|
canTriggerInlineEdits: true,
|
|
@@ -77,7 +77,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
77
77
|
constructor() {
|
|
78
78
|
super(1 /* Type.ForceAdd */, {
|
|
79
79
|
id: 'editor.action.addCommentLine',
|
|
80
|
-
label: nls.localize2(
|
|
80
|
+
label: nls.localize2(905, "Add Line Comment"),
|
|
81
81
|
precondition: EditorContextKeys.writable,
|
|
82
82
|
kbOpts: {
|
|
83
83
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -92,7 +92,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super(2 /* Type.ForceRemove */, {
|
|
94
94
|
id: 'editor.action.removeCommentLine',
|
|
95
|
-
label: nls.localize2(
|
|
95
|
+
label: nls.localize2(906, "Remove Line Comment"),
|
|
96
96
|
precondition: EditorContextKeys.writable,
|
|
97
97
|
kbOpts: {
|
|
98
98
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -107,7 +107,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'editor.action.blockComment',
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(907, "Toggle Block Comment"),
|
|
111
111
|
precondition: EditorContextKeys.writable,
|
|
112
112
|
kbOpts: {
|
|
113
113
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -118,7 +118,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
118
118
|
menuOpts: {
|
|
119
119
|
menuId: MenuId.MenubarEditMenu,
|
|
120
120
|
group: '5_insert',
|
|
121
|
-
title: nls.localize(
|
|
121
|
+
title: nls.localize(903, "Toggle &&Block Comment"),
|
|
122
122
|
order: 2
|
|
123
123
|
},
|
|
124
124
|
canTriggerInlineEdits: true,
|
|
@@ -247,7 +247,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
247
247
|
};
|
|
248
248
|
const actions = [];
|
|
249
249
|
actions.push(createAction({
|
|
250
|
-
label: nls.localize(
|
|
250
|
+
label: nls.localize(908, "Minimap"),
|
|
251
251
|
checked: minimapOptions.enabled,
|
|
252
252
|
run: () => {
|
|
253
253
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -255,28 +255,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
255
255
|
}));
|
|
256
256
|
actions.push(new Separator());
|
|
257
257
|
actions.push(createAction({
|
|
258
|
-
label: nls.localize(
|
|
258
|
+
label: nls.localize(909, "Render Characters"),
|
|
259
259
|
enabled: minimapOptions.enabled,
|
|
260
260
|
checked: minimapOptions.renderCharacters,
|
|
261
261
|
run: () => {
|
|
262
262
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
263
263
|
}
|
|
264
264
|
}));
|
|
265
|
-
actions.push(createEnumAction(nls.localize(
|
|
266
|
-
label: nls.localize(
|
|
265
|
+
actions.push(createEnumAction(nls.localize(910, "Vertical size"), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
266
|
+
label: nls.localize(911, "Proportional"),
|
|
267
267
|
value: 'proportional'
|
|
268
268
|
}, {
|
|
269
|
-
label: nls.localize(
|
|
269
|
+
label: nls.localize(912, "Fill"),
|
|
270
270
|
value: 'fill'
|
|
271
271
|
}, {
|
|
272
|
-
label: nls.localize(
|
|
272
|
+
label: nls.localize(913, "Fit"),
|
|
273
273
|
value: 'fit'
|
|
274
274
|
}]));
|
|
275
|
-
actions.push(createEnumAction(nls.localize(
|
|
276
|
-
label: nls.localize(
|
|
275
|
+
actions.push(createEnumAction(nls.localize(914, "Slider"), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
276
|
+
label: nls.localize(915, "Mouse Over"),
|
|
277
277
|
value: 'mouseover'
|
|
278
278
|
}, {
|
|
279
|
-
label: nls.localize(
|
|
279
|
+
label: nls.localize(916, "Always"),
|
|
280
280
|
value: 'always'
|
|
281
281
|
}]));
|
|
282
282
|
const useShadowDOM = this._editor.getOption(144 /* EditorOption.useShadowDOM */) && !isIOS; // Do not use shadow dom on IOS #122035
|
|
@@ -315,7 +315,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: 'editor.action.showContextMenu',
|
|
318
|
-
label: nls.localize2(
|
|
318
|
+
label: nls.localize2(917, "Show Editor Context Menu"),
|
|
319
319
|
precondition: undefined,
|
|
320
320
|
kbOpts: {
|
|
321
321
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -100,7 +100,7 @@ export class CursorUndo extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'cursorUndo',
|
|
103
|
-
label: nls.localize2(
|
|
103
|
+
label: nls.localize2(918, "Cursor Undo"),
|
|
104
104
|
precondition: undefined,
|
|
105
105
|
kbOpts: {
|
|
106
106
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -117,7 +117,7 @@ export class CursorRedo extends EditorAction {
|
|
|
117
117
|
constructor() {
|
|
118
118
|
super({
|
|
119
119
|
id: 'cursorRedo',
|
|
120
|
-
label: nls.localize2(
|
|
120
|
+
label: nls.localize2(919, "Cursor Redo"),
|
|
121
121
|
precondition: undefined
|
|
122
122
|
});
|
|
123
123
|
}
|
|
@@ -51,7 +51,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
51
51
|
properties: {
|
|
52
52
|
kind: {
|
|
53
53
|
type: 'string',
|
|
54
|
-
description: nls.localize(
|
|
54
|
+
description: nls.localize(920, "The kind of the paste edit to try pasting with.\nIf there are multiple edits for this kind, the editor will show a picker. If there are no edits of this kind, the editor will show an error message."),
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
},
|
|
@@ -61,7 +61,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
61
61
|
properties: {
|
|
62
62
|
preferences: {
|
|
63
63
|
type: 'array',
|
|
64
|
-
description: nls.localize(
|
|
64
|
+
description: nls.localize(921, "List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."),
|
|
65
65
|
items: { type: 'string' }
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -71,7 +71,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: pasteAsCommandId,
|
|
74
|
-
label: nls.localize2(
|
|
74
|
+
label: nls.localize2(922, "Paste As..."),
|
|
75
75
|
precondition: EditorContextKeys.writable,
|
|
76
76
|
metadata: {
|
|
77
77
|
description: 'Paste as',
|
|
@@ -100,7 +100,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'editor.action.pasteAsText',
|
|
103
|
-
label: nls.localize2(
|
|
103
|
+
label: nls.localize2(923, "Paste as Text"),
|
|
104
104
|
precondition: EditorContextKeys.writable,
|
|
105
105
|
canTriggerInlineEdits: true,
|
|
106
106
|
});
|
|
@@ -47,7 +47,7 @@ import { createCombinedWorkspaceEdit, sortEditsByYieldTo } from './edit.js';
|
|
|
47
47
|
import { PostEditWidgetManager } from './postEditWidget.js';
|
|
48
48
|
export const changePasteTypeCommandId = 'editor.changePasteType';
|
|
49
49
|
export const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
50
|
-
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(
|
|
50
|
+
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(924, "Whether the paste widget is showing"));
|
|
51
51
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
52
52
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
53
53
|
static { CopyPasteController_1 = this; }
|
|
@@ -71,7 +71,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
71
71
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
72
72
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
73
73
|
this._pasteProgressManager = this._register(new InlineProgressManager('pasteIntoEditor', editor, instantiationService));
|
|
74
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(
|
|
74
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(925, "Show paste options...") }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
75
75
|
}
|
|
76
76
|
changePasteType() {
|
|
77
77
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -258,9 +258,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
258
258
|
const kindLabel = 'only' in preference
|
|
259
259
|
? preference.only.value
|
|
260
260
|
: 'preferences' in preference
|
|
261
|
-
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(
|
|
261
|
+
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(926, "empty"))
|
|
262
262
|
: preference.providerId;
|
|
263
|
-
MessageController.get(this._editor)?.showMessage(localize(
|
|
263
|
+
MessageController.get(this._editor)?.showMessage(localize(927, "No paste edits for '{0}' found", kindLabel), selections[0].getStartPosition());
|
|
264
264
|
}
|
|
265
265
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
266
266
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -310,7 +310,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
310
310
|
}
|
|
311
311
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
312
312
|
const showP = new DeferredPromise();
|
|
313
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
313
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(928, "Resolving paste edit for '{0}'. Click to cancel", edit.title), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
314
314
|
cancel: () => showP.cancel()
|
|
315
315
|
}, 0);
|
|
316
316
|
if (resolved) {
|
|
@@ -329,7 +329,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
332
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(929, "Running paste handlers. Click to cancel and do basic paste"), p, {
|
|
333
333
|
cancel: async () => {
|
|
334
334
|
p.cancel();
|
|
335
335
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -401,7 +401,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
401
401
|
else {
|
|
402
402
|
const configureDefaultItem = {
|
|
403
403
|
id: 'editor.pasteAs.default',
|
|
404
|
-
label: localize(
|
|
404
|
+
label: localize(930, "Configure default paste action"),
|
|
405
405
|
edit: undefined,
|
|
406
406
|
};
|
|
407
407
|
const selected = await this._quickInputService.pick([
|
|
@@ -418,7 +418,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
418
418
|
}
|
|
419
419
|
] : [])
|
|
420
420
|
], {
|
|
421
|
-
placeHolder: localize(
|
|
421
|
+
placeHolder: localize(931, "Select Paste Action"),
|
|
422
422
|
});
|
|
423
423
|
if (selected === configureDefaultItem) {
|
|
424
424
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -441,7 +441,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
441
441
|
});
|
|
442
442
|
this._progressService.withProgress({
|
|
443
443
|
location: 10 /* ProgressLocation.Window */,
|
|
444
|
-
title: localize(
|
|
444
|
+
title: localize(932, "Running paste handlers"),
|
|
445
445
|
}, () => p);
|
|
446
446
|
}
|
|
447
447
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -72,7 +72,7 @@ export class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvid
|
|
|
72
72
|
const insertText = await textEntry.asString();
|
|
73
73
|
return {
|
|
74
74
|
handledMimeType: Mimes.text,
|
|
75
|
-
title: localize(
|
|
75
|
+
title: localize(933, "Insert Plain Text"),
|
|
76
76
|
insertText,
|
|
77
77
|
kind: this.kind,
|
|
78
78
|
};
|
|
@@ -105,14 +105,14 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
105
105
|
if (uriCount > 0) {
|
|
106
106
|
// Dropping at least one generic uri (such as https) so use most generic label
|
|
107
107
|
label = entries.length > 1
|
|
108
|
-
? localize(
|
|
109
|
-
: localize(
|
|
108
|
+
? localize(934, "Insert Uris")
|
|
109
|
+
: localize(935, "Insert Uri");
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
// All the paths are file paths
|
|
113
113
|
label = entries.length > 1
|
|
114
|
-
? localize(
|
|
115
|
-
: localize(
|
|
114
|
+
? localize(936, "Insert Paths")
|
|
115
|
+
: localize(937, "Insert Path");
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
118
118
|
handledMimeType: Mimes.uriList,
|
|
@@ -145,8 +145,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
145
145
|
handledMimeType: Mimes.uriList,
|
|
146
146
|
insertText: relativeUris.join(' '),
|
|
147
147
|
title: entries.length > 1
|
|
148
|
-
? localize(
|
|
149
|
-
: localize(
|
|
148
|
+
? localize(938, "Insert Relative Paths")
|
|
149
|
+
: localize(939, "Insert Relative Path"),
|
|
150
150
|
kind: this.kind,
|
|
151
151
|
};
|
|
152
152
|
}
|
|
@@ -176,7 +176,7 @@ class PasteHtmlProvider {
|
|
|
176
176
|
edits: [{
|
|
177
177
|
insertText: htmlText,
|
|
178
178
|
yieldTo: this._yieldTo,
|
|
179
|
-
title: localize(
|
|
179
|
+
title: localize(940, 'Insert HTML'),
|
|
180
180
|
kind: this.kind,
|
|
181
181
|
}],
|
|
182
182
|
};
|
|
@@ -34,7 +34,7 @@ import { sortEditsByYieldTo } from './edit.js';
|
|
|
34
34
|
import { PostEditWidgetManager } from './postEditWidget.js';
|
|
35
35
|
export const dropAsPreferenceConfig = 'editor.dropIntoEditor.preferences';
|
|
36
36
|
export const changeDropTypeCommandId = 'editor.changeDropType';
|
|
37
|
-
export const dropWidgetVisibleCtx = new RawContextKey('dropWidgetVisible', false, localize(
|
|
37
|
+
export const dropWidgetVisibleCtx = new RawContextKey('dropWidgetVisible', false, localize(941, "Whether the drop widget is showing"));
|
|
38
38
|
let DropIntoEditorController = class DropIntoEditorController extends Disposable {
|
|
39
39
|
static { DropIntoEditorController_1 = this; }
|
|
40
40
|
static { this.ID = 'editor.contrib.dropIntoEditorController'; }
|
|
@@ -48,7 +48,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
48
48
|
this._treeViewsDragAndDropService = _treeViewsDragAndDropService;
|
|
49
49
|
this.treeItemsTransfer = LocalSelectionTransfer.getInstance();
|
|
50
50
|
this._dropProgressManager = this._register(instantiationService.createInstance(InlineProgressManager, 'dropIntoEditor', editor));
|
|
51
|
-
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: localize(
|
|
51
|
+
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: localize(942, "Show drop options...") }, () => DropIntoEditorController_1._configureDefaultAction ? [DropIntoEditorController_1._configureDefaultAction] : []));
|
|
52
52
|
this._register(editor.onDropIntoEditor(e => this.onDropIntoEditor(editor, e.position, e.event)));
|
|
53
53
|
}
|
|
54
54
|
clearWidgets() {
|
|
@@ -103,7 +103,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
this._dropProgressManager.showWhile(position, localize(
|
|
106
|
+
this._dropProgressManager.showWhile(position, localize(943, "Running drop handlers. Click to cancel"), p, { cancel: () => p.cancel() });
|
|
107
107
|
DropIntoEditorController_1._currentDropOperation = p;
|
|
108
108
|
}
|
|
109
109
|
async getDropEdits(providers, model, position, dataTransfer, token) {
|
|
@@ -162,7 +162,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
162
162
|
resolvedEdit = await raceCancellationError(resolve(edit, editorStateCts.token), editorStateCts.token);
|
|
163
163
|
}
|
|
164
164
|
catch (e) {
|
|
165
|
-
return handleError(e, localize(
|
|
165
|
+
return handleError(e, localize(944, "Error resolving edit '{0}':\n{1}", edit.title, toErrorMessage(e)));
|
|
166
166
|
}
|
|
167
167
|
finally {
|
|
168
168
|
editorStateCts.dispose();
|
|
@@ -185,7 +185,7 @@ let PostEditWidgetManager = class PostEditWidgetManager extends Disposable {
|
|
|
185
185
|
editRange = model.getDecorationRange(editTrackingDecoration[0]);
|
|
186
186
|
}
|
|
187
187
|
catch (e) {
|
|
188
|
-
return handleError(e, localize(
|
|
188
|
+
return handleError(e, localize(945, "Error applying edit '{0}':\n{1}", edit.title, toErrorMessage(e)));
|
|
189
189
|
}
|
|
190
190
|
finally {
|
|
191
191
|
model.deltaDecorations(editTrackingDecoration, []);
|
|
@@ -10,7 +10,7 @@ import { createDecorator } from '../../../../platform/instantiation/common/insta
|
|
|
10
10
|
import { registerSingleton } from '../../../../platform/instantiation/common/extensions.js';
|
|
11
11
|
import { localize } from '../../../../nls.js';
|
|
12
12
|
const IEditorCancellationTokens = createDecorator('IEditorCancelService');
|
|
13
|
-
const ctxCancellableOperation = new RawContextKey('cancellableOperation', false, localize(
|
|
13
|
+
const ctxCancellableOperation = new RawContextKey('cancellableOperation', false, localize(946, 'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''));
|
|
14
14
|
registerSingleton(IEditorCancellationTokens, class {
|
|
15
15
|
constructor() {
|
|
16
16
|
this._tokens = new WeakMap();
|
|
@@ -311,7 +311,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
311
311
|
replaceAll() {
|
|
312
312
|
if (this._model) {
|
|
313
313
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
314
|
-
this._notificationService.warn(nls.localize(
|
|
314
|
+
this._notificationService.warn(nls.localize(947, "The file is too large to perform a replace all operation."));
|
|
315
315
|
return false;
|
|
316
316
|
}
|
|
317
317
|
this._model.replaceAll();
|
|
@@ -428,7 +428,7 @@ FindController = __decorate([
|
|
|
428
428
|
export { FindController };
|
|
429
429
|
export const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
430
430
|
id: FIND_IDS.StartFindAction,
|
|
431
|
-
label: nls.localize2(
|
|
431
|
+
label: nls.localize2(954, "Find"),
|
|
432
432
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
433
433
|
kbOpts: {
|
|
434
434
|
kbExpr: null,
|
|
@@ -438,7 +438,7 @@ export const StartFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
|
438
438
|
menuOpts: {
|
|
439
439
|
menuId: MenuId.MenubarEditMenu,
|
|
440
440
|
group: '3_find',
|
|
441
|
-
title: nls.localize(
|
|
441
|
+
title: nls.localize(948, "&&Find"),
|
|
442
442
|
order: 1
|
|
443
443
|
}
|
|
444
444
|
}));
|
|
@@ -479,7 +479,7 @@ export class StartFindWithArgsAction extends EditorAction {
|
|
|
479
479
|
constructor() {
|
|
480
480
|
super({
|
|
481
481
|
id: FIND_IDS.StartFindWithArgs,
|
|
482
|
-
label: nls.localize2(
|
|
482
|
+
label: nls.localize2(955, "Find with Arguments"),
|
|
483
483
|
precondition: undefined,
|
|
484
484
|
kbOpts: {
|
|
485
485
|
kbExpr: null,
|
|
@@ -523,7 +523,7 @@ export class StartFindWithSelectionAction extends EditorAction {
|
|
|
523
523
|
constructor() {
|
|
524
524
|
super({
|
|
525
525
|
id: FIND_IDS.StartFindWithSelection,
|
|
526
|
-
label: nls.localize2(
|
|
526
|
+
label: nls.localize2(956, "Find with Selection"),
|
|
527
527
|
precondition: undefined,
|
|
528
528
|
kbOpts: {
|
|
529
529
|
kbExpr: null,
|
|
@@ -581,7 +581,7 @@ async function matchFindAction(editor, next) {
|
|
|
581
581
|
}
|
|
582
582
|
export const NextMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
583
583
|
id: FIND_IDS.NextMatchFindAction,
|
|
584
|
-
label: nls.localize2(
|
|
584
|
+
label: nls.localize2(957, "Find Next"),
|
|
585
585
|
precondition: undefined,
|
|
586
586
|
kbOpts: [{
|
|
587
587
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -599,7 +599,7 @@ NextMatchFindAction.addImplementation(0, async (accessor, editor, args) => {
|
|
|
599
599
|
});
|
|
600
600
|
export const PreviousMatchFindAction = registerMultiEditorAction(new MultiEditorAction({
|
|
601
601
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
602
|
-
label: nls.localize2(
|
|
602
|
+
label: nls.localize2(958, "Find Previous"),
|
|
603
603
|
precondition: undefined,
|
|
604
604
|
kbOpts: [{
|
|
605
605
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -619,7 +619,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
619
619
|
constructor() {
|
|
620
620
|
super({
|
|
621
621
|
id: FIND_IDS.GoToMatchFindAction,
|
|
622
|
-
label: nls.localize2(
|
|
622
|
+
label: nls.localize2(959, "Go to Match..."),
|
|
623
623
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
624
624
|
});
|
|
625
625
|
this._highlightDecorations = [];
|
|
@@ -634,14 +634,14 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
634
634
|
const notificationService = accessor.get(INotificationService);
|
|
635
635
|
notificationService.notify({
|
|
636
636
|
severity: Severity.Warning,
|
|
637
|
-
message: nls.localize(
|
|
637
|
+
message: nls.localize(949, "No matches. Try searching for something else.")
|
|
638
638
|
});
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
641
|
const quickInputService = accessor.get(IQuickInputService);
|
|
642
642
|
const disposables = new DisposableStore();
|
|
643
643
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
644
|
-
inputBox.placeholder = nls.localize(
|
|
644
|
+
inputBox.placeholder = nls.localize(950, "Type a number to go to a specific match (between 1 and {0})", matchesCount);
|
|
645
645
|
const toFindMatchIndex = (value) => {
|
|
646
646
|
const index = parseInt(value);
|
|
647
647
|
if (isNaN(index)) {
|
|
@@ -668,7 +668,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
else {
|
|
671
|
-
inputBox.validationMessage = nls.localize(
|
|
671
|
+
inputBox.validationMessage = nls.localize(951, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
672
672
|
this.clearDecorations(editor);
|
|
673
673
|
}
|
|
674
674
|
};
|
|
@@ -682,7 +682,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
682
682
|
inputBox.hide();
|
|
683
683
|
}
|
|
684
684
|
else {
|
|
685
|
-
inputBox.validationMessage = nls.localize(
|
|
685
|
+
inputBox.validationMessage = nls.localize(952, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
686
686
|
}
|
|
687
687
|
}));
|
|
688
688
|
disposables.add(inputBox.onDidHide(() => {
|
|
@@ -750,7 +750,7 @@ export class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
750
750
|
constructor() {
|
|
751
751
|
super({
|
|
752
752
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
753
|
-
label: nls.localize2(
|
|
753
|
+
label: nls.localize2(960, "Find Next Selection"),
|
|
754
754
|
precondition: undefined,
|
|
755
755
|
kbOpts: {
|
|
756
756
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -767,7 +767,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
767
767
|
constructor() {
|
|
768
768
|
super({
|
|
769
769
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
770
|
-
label: nls.localize2(
|
|
770
|
+
label: nls.localize2(961, "Find Previous Selection"),
|
|
771
771
|
precondition: undefined,
|
|
772
772
|
kbOpts: {
|
|
773
773
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -782,7 +782,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
782
782
|
}
|
|
783
783
|
export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorAction({
|
|
784
784
|
id: FIND_IDS.StartFindReplaceAction,
|
|
785
|
-
label: nls.localize2(
|
|
785
|
+
label: nls.localize2(962, "Replace"),
|
|
786
786
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
787
787
|
kbOpts: {
|
|
788
788
|
kbExpr: null,
|
|
@@ -793,7 +793,7 @@ export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorA
|
|
|
793
793
|
menuOpts: {
|
|
794
794
|
menuId: MenuId.MenubarEditMenu,
|
|
795
795
|
group: '3_find',
|
|
796
|
-
title: nls.localize(
|
|
796
|
+
title: nls.localize(953, "&&Replace"),
|
|
797
797
|
order: 2
|
|
798
798
|
}
|
|
799
799
|
}));
|
|
@@ -26,28 +26,28 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
|
26
26
|
import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
27
27
|
import { assertReturnsDefined } from '../../../../base/common/types.js';
|
|
28
28
|
import { defaultInputBoxStyles, defaultToggleStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
29
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(
|
|
30
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(
|
|
31
|
-
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(
|
|
32
|
-
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(
|
|
33
|
-
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(
|
|
34
|
-
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(
|
|
35
|
-
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(
|
|
36
|
-
const NLS_FIND_DIALOG_LABEL = nls.localize(
|
|
37
|
-
const NLS_FIND_INPUT_LABEL = nls.localize(
|
|
38
|
-
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(
|
|
39
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(
|
|
40
|
-
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(
|
|
41
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(
|
|
42
|
-
const NLS_CLOSE_BTN_LABEL = nls.localize(
|
|
43
|
-
const NLS_REPLACE_INPUT_LABEL = nls.localize(
|
|
44
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(
|
|
45
|
-
const NLS_REPLACE_BTN_LABEL = nls.localize(
|
|
46
|
-
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(
|
|
47
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(
|
|
48
|
-
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(
|
|
49
|
-
export const NLS_MATCHES_LOCATION = nls.localize(
|
|
50
|
-
export const NLS_NO_RESULTS = nls.localize(
|
|
29
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(963, 'Icon to indicate that the editor find widget is collapsed.'));
|
|
30
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(964, 'Icon to indicate that the editor find widget is expanded.'));
|
|
31
|
+
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(965, 'Icon for \'Find in Selection\' in the editor find widget.'));
|
|
32
|
+
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(966, 'Icon for \'Replace\' in the editor find widget.'));
|
|
33
|
+
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(967, 'Icon for \'Replace All\' in the editor find widget.'));
|
|
34
|
+
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(968, 'Icon for \'Find Previous\' in the editor find widget.'));
|
|
35
|
+
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(969, 'Icon for \'Find Next\' in the editor find widget.'));
|
|
36
|
+
const NLS_FIND_DIALOG_LABEL = nls.localize(970, "Find / Replace");
|
|
37
|
+
const NLS_FIND_INPUT_LABEL = nls.localize(971, "Find");
|
|
38
|
+
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(972, "Find");
|
|
39
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(973, "Previous Match");
|
|
40
|
+
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(974, "Next Match");
|
|
41
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(975, "Find in Selection");
|
|
42
|
+
const NLS_CLOSE_BTN_LABEL = nls.localize(976, "Close");
|
|
43
|
+
const NLS_REPLACE_INPUT_LABEL = nls.localize(977, "Replace");
|
|
44
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(978, "Replace");
|
|
45
|
+
const NLS_REPLACE_BTN_LABEL = nls.localize(979, "Replace");
|
|
46
|
+
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(980, "Replace All");
|
|
47
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(981, "Toggle Replace");
|
|
48
|
+
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(982, "Only the first {0} results are highlighted, but all find operations work on the entire text.", MATCHES_LIMIT);
|
|
49
|
+
export const NLS_MATCHES_LOCATION = nls.localize(983, "{0} of {1}");
|
|
50
|
+
export const NLS_NO_RESULTS = nls.localize(984, "No results");
|
|
51
51
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
52
52
|
const PART_WIDTH = 275;
|
|
53
53
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -324,11 +324,11 @@ export class FindWidget extends Widget {
|
|
|
324
324
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
325
325
|
if (label === NLS_NO_RESULTS) {
|
|
326
326
|
return searchString === ''
|
|
327
|
-
? nls.localize(
|
|
328
|
-
: nls.localize(
|
|
327
|
+
? nls.localize(985, "{0} found", label)
|
|
328
|
+
: nls.localize(986, "{0} found for '{1}'", label, searchString);
|
|
329
329
|
}
|
|
330
330
|
if (currentMatch) {
|
|
331
|
-
const ariaLabel = nls.localize(
|
|
331
|
+
const ariaLabel = nls.localize(987, "{0} found for '{1}', at {2}", label, searchString, currentMatch.startLineNumber + ':' + currentMatch.startColumn);
|
|
332
332
|
const model = this._codeEditor.getModel();
|
|
333
333
|
if (model && (currentMatch.startLineNumber <= model.getLineCount()) && (currentMatch.startLineNumber >= 1)) {
|
|
334
334
|
const lineContent = model.getLineContent(currentMatch.startLineNumber);
|
|
@@ -336,7 +336,7 @@ export class FindWidget extends Widget {
|
|
|
336
336
|
}
|
|
337
337
|
return ariaLabel;
|
|
338
338
|
}
|
|
339
|
-
return nls.localize(
|
|
339
|
+
return nls.localize(988, "{0} found for '{1}'", label, searchString);
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* If 'selection find' is ON we should not disable the button (its function is to cancel 'selection find').
|