monaco-editor-core 0.54.0-dev-20250922 → 0.54.0-dev-20250924
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.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.ru.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/toolbar/toolbar.js +7 -0
- package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
- package/esm/vs/base/common/htmlContent.js +8 -0
- package/esm/vs/base/common/htmlContent.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +274 -267
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/editorContextKeys.js +46 -46
- 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 +10 -10
- 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/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/floatingMenu/browser/floatingMenu.css +10 -0
- package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +28 -5
- package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/format.js +3 -0
- package/esm/vs/editor/contrib/format/browser/format.js.map +1 -1
- 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/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/inlayHints.js +2 -7
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHints.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 +19 -19
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +6 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- 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 +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 +5 -5
- 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 +12 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js.map +1 -1
- 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 +26 -26
- 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 +1 -1
- package/esm/vs/editor/editor.api.d.ts +1 -0
- package/esm/vs/editor/standalone/browser/standaloneThemeService.js +10 -0
- package/esm/vs/editor/standalone/browser/standaloneThemeService.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/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +37 -3
- package/esm/vs/platform/contextkey/browser/contextKeyService.js.map +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/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 +15 -15
- 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/monaco.d.ts +1 -0
- package/package.json +2 -2
- package/version.txt +1 -1
|
@@ -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(891, "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(889, "&&Toggle Line Comment"),
|
|
70
70
|
order: 1
|
|
71
71
|
}
|
|
72
72
|
});
|
|
@@ -76,7 +76,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
76
76
|
constructor() {
|
|
77
77
|
super(1 /* Type.ForceAdd */, {
|
|
78
78
|
id: 'editor.action.addCommentLine',
|
|
79
|
-
label: nls.localize2(
|
|
79
|
+
label: nls.localize2(892, "Add Line Comment"),
|
|
80
80
|
precondition: EditorContextKeys.writable,
|
|
81
81
|
kbOpts: {
|
|
82
82
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -90,7 +90,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super(2 /* Type.ForceRemove */, {
|
|
92
92
|
id: 'editor.action.removeCommentLine',
|
|
93
|
-
label: nls.localize2(
|
|
93
|
+
label: nls.localize2(893, "Remove Line Comment"),
|
|
94
94
|
precondition: EditorContextKeys.writable,
|
|
95
95
|
kbOpts: {
|
|
96
96
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -104,7 +104,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: 'editor.action.blockComment',
|
|
107
|
-
label: nls.localize2(
|
|
107
|
+
label: nls.localize2(894, "Toggle Block Comment"),
|
|
108
108
|
precondition: EditorContextKeys.writable,
|
|
109
109
|
kbOpts: {
|
|
110
110
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -115,7 +115,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
115
115
|
menuOpts: {
|
|
116
116
|
menuId: MenuId.MenubarEditMenu,
|
|
117
117
|
group: '5_insert',
|
|
118
|
-
title: nls.localize(
|
|
118
|
+
title: nls.localize(890, "Toggle &&Block Comment"),
|
|
119
119
|
order: 2
|
|
120
120
|
}
|
|
121
121
|
});
|
|
@@ -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(895, "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(896, "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(897, "Vertical size"), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
266
|
+
label: nls.localize(898, "Proportional"),
|
|
267
267
|
value: 'proportional'
|
|
268
268
|
}, {
|
|
269
|
-
label: nls.localize(
|
|
269
|
+
label: nls.localize(899, "Fill"),
|
|
270
270
|
value: 'fill'
|
|
271
271
|
}, {
|
|
272
|
-
label: nls.localize(
|
|
272
|
+
label: nls.localize(900, "Fit"),
|
|
273
273
|
value: 'fit'
|
|
274
274
|
}]));
|
|
275
|
-
actions.push(createEnumAction(nls.localize(
|
|
276
|
-
label: nls.localize(
|
|
275
|
+
actions.push(createEnumAction(nls.localize(901, "Slider"), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
276
|
+
label: nls.localize(902, "Mouse Over"),
|
|
277
277
|
value: 'mouseover'
|
|
278
278
|
}, {
|
|
279
|
-
label: nls.localize(
|
|
279
|
+
label: nls.localize(903, "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(904, "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(905, "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(906, "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(907, "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(908, "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(909, "Paste As..."),
|
|
75
75
|
precondition: EditorContextKeys.writable,
|
|
76
76
|
metadata: {
|
|
77
77
|
description: 'Paste as',
|
|
@@ -99,7 +99,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: 'editor.action.pasteAsText',
|
|
102
|
-
label: nls.localize2(
|
|
102
|
+
label: nls.localize2(910, "Paste as Text"),
|
|
103
103
|
precondition: EditorContextKeys.writable,
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -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(911, "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(912, "Show paste options...") }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
75
75
|
}
|
|
76
76
|
changePasteType() {
|
|
77
77
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -245,9 +245,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
245
245
|
const kindLabel = 'only' in preference
|
|
246
246
|
? preference.only.value
|
|
247
247
|
: 'preferences' in preference
|
|
248
|
-
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(
|
|
248
|
+
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(913, "empty"))
|
|
249
249
|
: preference.providerId;
|
|
250
|
-
MessageController.get(this._editor)?.showMessage(localize(
|
|
250
|
+
MessageController.get(this._editor)?.showMessage(localize(914, "No paste edits for '{0}' found", kindLabel), selections[0].getStartPosition());
|
|
251
251
|
}
|
|
252
252
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
253
253
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -297,7 +297,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
297
297
|
}
|
|
298
298
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
299
299
|
const showP = new DeferredPromise();
|
|
300
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
300
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(915, "Resolving paste edit for '{0}'. Click to cancel", edit.title), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
301
301
|
cancel: () => showP.cancel()
|
|
302
302
|
}, 0);
|
|
303
303
|
if (resolved) {
|
|
@@ -316,7 +316,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
319
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(916, "Running paste handlers. Click to cancel and do basic paste"), p, {
|
|
320
320
|
cancel: async () => {
|
|
321
321
|
p.cancel();
|
|
322
322
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -388,7 +388,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
388
388
|
else {
|
|
389
389
|
const configureDefaultItem = {
|
|
390
390
|
id: 'editor.pasteAs.default',
|
|
391
|
-
label: localize(
|
|
391
|
+
label: localize(917, "Configure default paste action"),
|
|
392
392
|
edit: undefined,
|
|
393
393
|
};
|
|
394
394
|
const selected = await this._quickInputService.pick([
|
|
@@ -405,7 +405,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
405
405
|
}
|
|
406
406
|
] : [])
|
|
407
407
|
], {
|
|
408
|
-
placeHolder: localize(
|
|
408
|
+
placeHolder: localize(918, "Select Paste Action"),
|
|
409
409
|
});
|
|
410
410
|
if (selected === configureDefaultItem) {
|
|
411
411
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -428,7 +428,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
428
428
|
});
|
|
429
429
|
this._progressService.withProgress({
|
|
430
430
|
location: 10 /* ProgressLocation.Window */,
|
|
431
|
-
title: localize(
|
|
431
|
+
title: localize(919, "Running paste handlers"),
|
|
432
432
|
}, () => p);
|
|
433
433
|
}
|
|
434
434
|
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(920, "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(921, "Insert Uris")
|
|
109
|
+
: localize(922, "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(923, "Insert Paths")
|
|
115
|
+
: localize(924, "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(925, "Insert Relative Paths")
|
|
149
|
+
: localize(926, "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(927, '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(928, "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(929, "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(930, "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(931, "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(932, "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(933, '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(934, "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(941, "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(935, "&&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(942, "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(943, "Find with Selection"),
|
|
527
527
|
precondition: undefined,
|
|
528
528
|
kbOpts: {
|
|
529
529
|
kbExpr: null,
|
|
@@ -574,7 +574,7 @@ export class NextMatchFindAction extends MatchFindAction {
|
|
|
574
574
|
constructor() {
|
|
575
575
|
super({
|
|
576
576
|
id: FIND_IDS.NextMatchFindAction,
|
|
577
|
-
label: nls.localize2(
|
|
577
|
+
label: nls.localize2(944, "Find Next"),
|
|
578
578
|
precondition: undefined,
|
|
579
579
|
kbOpts: [{
|
|
580
580
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -601,7 +601,7 @@ export class PreviousMatchFindAction extends MatchFindAction {
|
|
|
601
601
|
constructor() {
|
|
602
602
|
super({
|
|
603
603
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
604
|
-
label: nls.localize2(
|
|
604
|
+
label: nls.localize2(945, "Find Previous"),
|
|
605
605
|
precondition: undefined,
|
|
606
606
|
kbOpts: [{
|
|
607
607
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -624,7 +624,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: FIND_IDS.GoToMatchFindAction,
|
|
627
|
-
label: nls.localize2(
|
|
627
|
+
label: nls.localize2(946, "Go to Match..."),
|
|
628
628
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
629
629
|
});
|
|
630
630
|
this._highlightDecorations = [];
|
|
@@ -639,14 +639,14 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
639
639
|
const notificationService = accessor.get(INotificationService);
|
|
640
640
|
notificationService.notify({
|
|
641
641
|
severity: Severity.Warning,
|
|
642
|
-
message: nls.localize(
|
|
642
|
+
message: nls.localize(936, "No matches. Try searching for something else.")
|
|
643
643
|
});
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
const quickInputService = accessor.get(IQuickInputService);
|
|
647
647
|
const disposables = new DisposableStore();
|
|
648
648
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
649
|
-
inputBox.placeholder = nls.localize(
|
|
649
|
+
inputBox.placeholder = nls.localize(937, "Type a number to go to a specific match (between 1 and {0})", matchesCount);
|
|
650
650
|
const toFindMatchIndex = (value) => {
|
|
651
651
|
const index = parseInt(value);
|
|
652
652
|
if (isNaN(index)) {
|
|
@@ -673,7 +673,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
else {
|
|
676
|
-
inputBox.validationMessage = nls.localize(
|
|
676
|
+
inputBox.validationMessage = nls.localize(938, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
677
677
|
this.clearDecorations(editor);
|
|
678
678
|
}
|
|
679
679
|
};
|
|
@@ -687,7 +687,7 @@ export class MoveToMatchFindAction extends EditorAction {
|
|
|
687
687
|
inputBox.hide();
|
|
688
688
|
}
|
|
689
689
|
else {
|
|
690
|
-
inputBox.validationMessage = nls.localize(
|
|
690
|
+
inputBox.validationMessage = nls.localize(939, "Please type a number between 1 and {0}", controller.getState().matchesCount);
|
|
691
691
|
}
|
|
692
692
|
}));
|
|
693
693
|
disposables.add(inputBox.onDidHide(() => {
|
|
@@ -755,7 +755,7 @@ export class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
755
755
|
constructor() {
|
|
756
756
|
super({
|
|
757
757
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
758
|
-
label: nls.localize2(
|
|
758
|
+
label: nls.localize2(947, "Find Next Selection"),
|
|
759
759
|
precondition: undefined,
|
|
760
760
|
kbOpts: {
|
|
761
761
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -772,7 +772,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
772
772
|
constructor() {
|
|
773
773
|
super({
|
|
774
774
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
775
|
-
label: nls.localize2(
|
|
775
|
+
label: nls.localize2(948, "Find Previous Selection"),
|
|
776
776
|
precondition: undefined,
|
|
777
777
|
kbOpts: {
|
|
778
778
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -787,7 +787,7 @@ export class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
787
787
|
}
|
|
788
788
|
export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorAction({
|
|
789
789
|
id: FIND_IDS.StartFindReplaceAction,
|
|
790
|
-
label: nls.localize2(
|
|
790
|
+
label: nls.localize2(949, "Replace"),
|
|
791
791
|
precondition: ContextKeyExpr.or(EditorContextKeys.focus, ContextKeyExpr.has('editorIsOpen')),
|
|
792
792
|
kbOpts: {
|
|
793
793
|
kbExpr: null,
|
|
@@ -798,7 +798,7 @@ export const StartFindReplaceAction = registerMultiEditorAction(new MultiEditorA
|
|
|
798
798
|
menuOpts: {
|
|
799
799
|
menuId: MenuId.MenubarEditMenu,
|
|
800
800
|
group: '3_find',
|
|
801
|
-
title: nls.localize(
|
|
801
|
+
title: nls.localize(940, "&&Replace"),
|
|
802
802
|
order: 2
|
|
803
803
|
}
|
|
804
804
|
}));
|
|
@@ -27,28 +27,28 @@ 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
29
|
import { createInstantHoverDelegate, getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
30
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(
|
|
31
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(
|
|
32
|
-
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(
|
|
33
|
-
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(
|
|
34
|
-
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(
|
|
35
|
-
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(
|
|
36
|
-
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(
|
|
37
|
-
const NLS_FIND_DIALOG_LABEL = nls.localize(
|
|
38
|
-
const NLS_FIND_INPUT_LABEL = nls.localize(
|
|
39
|
-
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(
|
|
40
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(
|
|
41
|
-
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(
|
|
42
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(
|
|
43
|
-
const NLS_CLOSE_BTN_LABEL = nls.localize(
|
|
44
|
-
const NLS_REPLACE_INPUT_LABEL = nls.localize(
|
|
45
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(
|
|
46
|
-
const NLS_REPLACE_BTN_LABEL = nls.localize(
|
|
47
|
-
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(
|
|
48
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(
|
|
49
|
-
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(
|
|
50
|
-
export const NLS_MATCHES_LOCATION = nls.localize(
|
|
51
|
-
export const NLS_NO_RESULTS = nls.localize(
|
|
30
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(950, 'Icon to indicate that the editor find widget is collapsed.'));
|
|
31
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(951, 'Icon to indicate that the editor find widget is expanded.'));
|
|
32
|
+
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(952, 'Icon for \'Find in Selection\' in the editor find widget.'));
|
|
33
|
+
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(953, 'Icon for \'Replace\' in the editor find widget.'));
|
|
34
|
+
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(954, 'Icon for \'Replace All\' in the editor find widget.'));
|
|
35
|
+
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(955, 'Icon for \'Find Previous\' in the editor find widget.'));
|
|
36
|
+
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(956, 'Icon for \'Find Next\' in the editor find widget.'));
|
|
37
|
+
const NLS_FIND_DIALOG_LABEL = nls.localize(957, "Find / Replace");
|
|
38
|
+
const NLS_FIND_INPUT_LABEL = nls.localize(958, "Find");
|
|
39
|
+
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(959, "Find");
|
|
40
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(960, "Previous Match");
|
|
41
|
+
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(961, "Next Match");
|
|
42
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(962, "Find in Selection");
|
|
43
|
+
const NLS_CLOSE_BTN_LABEL = nls.localize(963, "Close");
|
|
44
|
+
const NLS_REPLACE_INPUT_LABEL = nls.localize(964, "Replace");
|
|
45
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(965, "Replace");
|
|
46
|
+
const NLS_REPLACE_BTN_LABEL = nls.localize(966, "Replace");
|
|
47
|
+
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(967, "Replace All");
|
|
48
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(968, "Toggle Replace");
|
|
49
|
+
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(969, "Only the first {0} results are highlighted, but all find operations work on the entire text.", MATCHES_LIMIT);
|
|
50
|
+
export const NLS_MATCHES_LOCATION = nls.localize(970, "{0} of {1}");
|
|
51
|
+
export const NLS_NO_RESULTS = nls.localize(971, "No results");
|
|
52
52
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
53
53
|
const PART_WIDTH = 275;
|
|
54
54
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -325,11 +325,11 @@ export class FindWidget extends Widget {
|
|
|
325
325
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
326
326
|
if (label === NLS_NO_RESULTS) {
|
|
327
327
|
return searchString === ''
|
|
328
|
-
? nls.localize(
|
|
329
|
-
: nls.localize(
|
|
328
|
+
? nls.localize(972, "{0} found", label)
|
|
329
|
+
: nls.localize(973, "{0} found for '{1}'", label, searchString);
|
|
330
330
|
}
|
|
331
331
|
if (currentMatch) {
|
|
332
|
-
const ariaLabel = nls.localize(
|
|
332
|
+
const ariaLabel = nls.localize(974, "{0} found for '{1}', at {2}", label, searchString, currentMatch.startLineNumber + ':' + currentMatch.startColumn);
|
|
333
333
|
const model = this._codeEditor.getModel();
|
|
334
334
|
if (model && (currentMatch.startLineNumber <= model.getLineCount()) && (currentMatch.startLineNumber >= 1)) {
|
|
335
335
|
const lineContent = model.getLineContent(currentMatch.startLineNumber);
|
|
@@ -337,7 +337,7 @@ export class FindWidget extends Widget {
|
|
|
337
337
|
}
|
|
338
338
|
return ariaLabel;
|
|
339
339
|
}
|
|
340
|
-
return nls.localize(
|
|
340
|
+
return nls.localize(975, "{0} found for '{1}'", label, searchString);
|
|
341
341
|
}
|
|
342
342
|
/**
|
|
343
343
|
* If 'selection find' is ON we should not disable the button (its function is to cancel 'selection find').
|
|
@@ -18,6 +18,16 @@
|
|
|
18
18
|
.action-item > .action-label {
|
|
19
19
|
padding: 5px;
|
|
20
20
|
font-size: 12px;
|
|
21
|
+
border-radius: 2px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.action-item > .action-label.codicon {
|
|
25
|
+
color: var(--vscode-button-foreground);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.action-item > .action-label.codicon:not(.separator) {
|
|
29
|
+
padding-top: 6px;
|
|
30
|
+
padding-bottom: 6px;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
33
|
.action-item:first-child > .action-label {
|