monaco-editor-core 0.58.0 → 0.59.0-dev-20261124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +2 -0
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -0
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js +4 -2
- package/esm/vs/base/browser/ui/selectBox/selectBoxNative.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +27 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +3 -1
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +8 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseTarget.js +15 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js.map +1 -1
- package/esm/vs/editor/browser/view.js +3 -2
- package/esm/vs/editor/browser/view.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +12 -8
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +7 -11
- package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +246 -238
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +3 -1
- package/esm/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js.map +1 -1
- package/esm/vs/editor/common/model/textModel.js +1 -0
- package/esm/vs/editor/common/model/textModel.js.map +1 -1
- package/esm/vs/editor/common/model.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +13 -13
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/esm/vs/editor/contrib/folding/browser/folding.css +15 -0
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js +0 -5
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +0 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hover.css +6 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +19 -39
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +7 -7
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/indentation/common/indentation.js +14 -3
- package/esm/vs/editor/contrib/indentation/common/indentation.js.map +1 -1
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +11 -10
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +93 -38
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js.map +1 -1
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/editor/editor.api.d.ts +5 -0
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +68 -68
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +30 -31
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +12 -12
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationModels.js +15 -3
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +12 -12
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/confettiColors.js +6 -6
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +5 -0
- package/package.json +3 -3
|
@@ -32,7 +32,7 @@ function announceCursorChange(previousCursorState, cursorState) {
|
|
|
32
32
|
const cursorDiff = cursorState.filter(cs => !previousCursorState.find(pcs => pcs.equals(cs)));
|
|
33
33
|
if (cursorDiff.length >= 1) {
|
|
34
34
|
const cursorPositions = cursorDiff.map(cs => `line ${cs.viewState.position.lineNumber} column ${cs.viewState.position.column}`).join(', ');
|
|
35
|
-
const msg = cursorDiff.length === 1 ? nls.localize(
|
|
35
|
+
const msg = cursorDiff.length === 1 ? nls.localize(1364, "Cursor added: {0}", cursorPositions) : nls.localize(1365, "Cursors added: {0}", cursorPositions);
|
|
36
36
|
status(msg);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ export class InsertCursorAbove extends EditorAction {
|
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: 'editor.action.insertCursorAbove',
|
|
43
|
-
label: nls.localize2(
|
|
43
|
+
label: nls.localize2(1374, "Add Cursor Above"),
|
|
44
44
|
precondition: undefined,
|
|
45
45
|
kbOpts: {
|
|
46
46
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -54,7 +54,7 @@ export class InsertCursorAbove extends EditorAction {
|
|
|
54
54
|
menuOpts: {
|
|
55
55
|
menuId: MenuId.MenubarSelectionMenu,
|
|
56
56
|
group: '3_multi',
|
|
57
|
-
title: nls.localize(
|
|
57
|
+
title: nls.localize(1366, "&&Add Cursor Above"),
|
|
58
58
|
order: 2
|
|
59
59
|
}
|
|
60
60
|
});
|
|
@@ -82,7 +82,7 @@ export class InsertCursorBelow extends EditorAction {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: 'editor.action.insertCursorBelow',
|
|
85
|
-
label: nls.localize2(
|
|
85
|
+
label: nls.localize2(1375, "Add Cursor Below"),
|
|
86
86
|
precondition: undefined,
|
|
87
87
|
kbOpts: {
|
|
88
88
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -96,7 +96,7 @@ export class InsertCursorBelow extends EditorAction {
|
|
|
96
96
|
menuOpts: {
|
|
97
97
|
menuId: MenuId.MenubarSelectionMenu,
|
|
98
98
|
group: '3_multi',
|
|
99
|
-
title: nls.localize(
|
|
99
|
+
title: nls.localize(1367, "A&&dd Cursor Below"),
|
|
100
100
|
order: 3
|
|
101
101
|
}
|
|
102
102
|
});
|
|
@@ -124,7 +124,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: 'editor.action.insertCursorAtEndOfEachLineSelected',
|
|
127
|
-
label: nls.localize2(
|
|
127
|
+
label: nls.localize2(1376, "Add Cursors to Line Ends"),
|
|
128
128
|
precondition: undefined,
|
|
129
129
|
kbOpts: {
|
|
130
130
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -134,7 +134,7 @@ class InsertCursorAtEndOfEachLineSelected extends EditorAction {
|
|
|
134
134
|
menuOpts: {
|
|
135
135
|
menuId: MenuId.MenubarSelectionMenu,
|
|
136
136
|
group: '3_multi',
|
|
137
|
-
title: nls.localize(
|
|
137
|
+
title: nls.localize(1368, "Add C&&ursors to Line Ends"),
|
|
138
138
|
order: 4
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -171,7 +171,7 @@ class InsertCursorAtEndOfLineSelected extends EditorAction {
|
|
|
171
171
|
constructor() {
|
|
172
172
|
super({
|
|
173
173
|
id: 'editor.action.addCursorsToBottom',
|
|
174
|
-
label: nls.localize2(
|
|
174
|
+
label: nls.localize2(1377, "Add Cursors to Bottom"),
|
|
175
175
|
precondition: undefined
|
|
176
176
|
});
|
|
177
177
|
}
|
|
@@ -197,7 +197,7 @@ class InsertCursorAtTopOfLineSelected extends EditorAction {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'editor.action.addCursorsToTop',
|
|
200
|
-
label: nls.localize2(
|
|
200
|
+
label: nls.localize2(1378, "Add Cursors to Top"),
|
|
201
201
|
precondition: undefined
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -607,7 +607,7 @@ export class AddSelectionToNextFindMatchAction extends MultiCursorSelectionContr
|
|
|
607
607
|
constructor() {
|
|
608
608
|
super({
|
|
609
609
|
id: 'editor.action.addSelectionToNextFindMatch',
|
|
610
|
-
label: nls.localize2(
|
|
610
|
+
label: nls.localize2(1379, "Add Selection to Next Find Match"),
|
|
611
611
|
precondition: undefined,
|
|
612
612
|
kbOpts: {
|
|
613
613
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -617,7 +617,7 @@ export class AddSelectionToNextFindMatchAction extends MultiCursorSelectionContr
|
|
|
617
617
|
menuOpts: {
|
|
618
618
|
menuId: MenuId.MenubarSelectionMenu,
|
|
619
619
|
group: '3_multi',
|
|
620
|
-
title: nls.localize(
|
|
620
|
+
title: nls.localize(1369, "Add &&Next Occurrence"),
|
|
621
621
|
order: 5
|
|
622
622
|
}
|
|
623
623
|
});
|
|
@@ -630,12 +630,12 @@ export class AddSelectionToPreviousFindMatchAction extends MultiCursorSelectionC
|
|
|
630
630
|
constructor() {
|
|
631
631
|
super({
|
|
632
632
|
id: 'editor.action.addSelectionToPreviousFindMatch',
|
|
633
|
-
label: nls.localize2(
|
|
633
|
+
label: nls.localize2(1380, "Add Selection to Previous Find Match"),
|
|
634
634
|
precondition: undefined,
|
|
635
635
|
menuOpts: {
|
|
636
636
|
menuId: MenuId.MenubarSelectionMenu,
|
|
637
637
|
group: '3_multi',
|
|
638
|
-
title: nls.localize(
|
|
638
|
+
title: nls.localize(1370, "Add P&&revious Occurrence"),
|
|
639
639
|
order: 6
|
|
640
640
|
}
|
|
641
641
|
});
|
|
@@ -648,7 +648,7 @@ export class MoveSelectionToNextFindMatchAction extends MultiCursorSelectionCont
|
|
|
648
648
|
constructor() {
|
|
649
649
|
super({
|
|
650
650
|
id: 'editor.action.moveSelectionToNextFindMatch',
|
|
651
|
-
label: nls.localize2(
|
|
651
|
+
label: nls.localize2(1381, "Move Last Selection to Next Find Match"),
|
|
652
652
|
precondition: undefined,
|
|
653
653
|
kbOpts: {
|
|
654
654
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -665,7 +665,7 @@ export class MoveSelectionToPreviousFindMatchAction extends MultiCursorSelection
|
|
|
665
665
|
constructor() {
|
|
666
666
|
super({
|
|
667
667
|
id: 'editor.action.moveSelectionToPreviousFindMatch',
|
|
668
|
-
label: nls.localize2(
|
|
668
|
+
label: nls.localize2(1382, "Move Last Selection to Previous Find Match"),
|
|
669
669
|
precondition: undefined
|
|
670
670
|
});
|
|
671
671
|
}
|
|
@@ -677,7 +677,7 @@ export class SelectHighlightsAction extends MultiCursorSelectionControllerAction
|
|
|
677
677
|
constructor() {
|
|
678
678
|
super({
|
|
679
679
|
id: 'editor.action.selectHighlights',
|
|
680
|
-
label: nls.localize2(
|
|
680
|
+
label: nls.localize2(1383, "Select All Occurrences of Find Match"),
|
|
681
681
|
precondition: undefined,
|
|
682
682
|
kbOpts: {
|
|
683
683
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -687,7 +687,7 @@ export class SelectHighlightsAction extends MultiCursorSelectionControllerAction
|
|
|
687
687
|
menuOpts: {
|
|
688
688
|
menuId: MenuId.MenubarSelectionMenu,
|
|
689
689
|
group: '3_multi',
|
|
690
|
-
title: nls.localize(
|
|
690
|
+
title: nls.localize(1371, "Select All &&Occurrences"),
|
|
691
691
|
order: 7
|
|
692
692
|
}
|
|
693
693
|
});
|
|
@@ -700,7 +700,7 @@ export class CompatChangeAll extends MultiCursorSelectionControllerAction {
|
|
|
700
700
|
constructor() {
|
|
701
701
|
super({
|
|
702
702
|
id: 'editor.action.changeAll',
|
|
703
|
-
label: nls.localize2(
|
|
703
|
+
label: nls.localize2(1384, "Change All Occurrences"),
|
|
704
704
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.editorTextFocus),
|
|
705
705
|
kbOpts: {
|
|
706
706
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -961,9 +961,9 @@ export class FocusNextCursor extends EditorAction {
|
|
|
961
961
|
constructor() {
|
|
962
962
|
super({
|
|
963
963
|
id: 'editor.action.focusNextCursor',
|
|
964
|
-
label: nls.localize2(
|
|
964
|
+
label: nls.localize2(1385, "Focus Next Cursor"),
|
|
965
965
|
metadata: {
|
|
966
|
-
description: nls.localize(
|
|
966
|
+
description: nls.localize(1372, "Focuses the next cursor"),
|
|
967
967
|
args: [],
|
|
968
968
|
},
|
|
969
969
|
precondition: undefined
|
|
@@ -993,9 +993,9 @@ export class FocusPreviousCursor extends EditorAction {
|
|
|
993
993
|
constructor() {
|
|
994
994
|
super({
|
|
995
995
|
id: 'editor.action.focusPreviousCursor',
|
|
996
|
-
label: nls.localize2(
|
|
996
|
+
label: nls.localize2(1386, "Focus Previous Cursor"),
|
|
997
997
|
metadata: {
|
|
998
|
-
description: nls.localize(
|
|
998
|
+
description: nls.localize(1373, "Focuses the previous cursor"),
|
|
999
999
|
args: [],
|
|
1000
1000
|
},
|
|
1001
1001
|
precondition: undefined
|
|
@@ -67,7 +67,7 @@ export class TriggerParameterHintsAction extends EditorAction {
|
|
|
67
67
|
constructor() {
|
|
68
68
|
super({
|
|
69
69
|
id: 'editor.action.triggerParameterHints',
|
|
70
|
-
label: nls.localize2(
|
|
70
|
+
label: nls.localize2(1387, "Trigger Parameter Hints"),
|
|
71
71
|
precondition: EditorContextKeys.hasSignatureHelpProvider,
|
|
72
72
|
kbOpts: {
|
|
73
73
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -31,8 +31,8 @@ import { listHighlightForeground, registerColor } from '../../../../platform/the
|
|
|
31
31
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
32
32
|
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
33
33
|
const $ = dom.$;
|
|
34
|
-
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, nls.localize(
|
|
35
|
-
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, nls.localize(
|
|
34
|
+
const parameterHintsNextIcon = registerIcon('parameter-hints-next', Codicon.chevronDown, nls.localize(1388, 'Icon for show next parameter hint.'));
|
|
35
|
+
const parameterHintsPreviousIcon = registerIcon('parameter-hints-previous', Codicon.chevronUp, nls.localize(1389, 'Icon for show previous parameter hint.'));
|
|
36
36
|
let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
37
37
|
static { ParameterHintsWidget_1 = this; }
|
|
38
38
|
static { this.ID = 'editor.widget.parameterHintsWidget'; }
|
|
@@ -207,7 +207,7 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
207
207
|
// Select method gets called on every user type while parameter hints are visible.
|
|
208
208
|
// We do not want to spam the user with same announcements, so we only announce if the current parameter changed.
|
|
209
209
|
if (this.announcedLabel !== labelToAnnounce) {
|
|
210
|
-
aria.alert(nls.localize(
|
|
210
|
+
aria.alert(nls.localize(1390, "{0}, hint", labelToAnnounce));
|
|
211
211
|
this.announcedLabel = labelToAnnounce;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
@@ -307,5 +307,5 @@ ParameterHintsWidget = ParameterHintsWidget_1 = __decorate([
|
|
|
307
307
|
__param(3, IMarkdownRendererService)
|
|
308
308
|
], ParameterHintsWidget);
|
|
309
309
|
export { ParameterHintsWidget };
|
|
310
|
-
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, nls.localize(
|
|
310
|
+
registerColor('editorHoverWidget.highlightForeground', listHighlightForeground, nls.localize(1391, 'Foreground color of the active item in the parameter hint.'));
|
|
311
311
|
//# sourceMappingURL=parameterHintsWidget.js.map
|
|
@@ -53,7 +53,7 @@ registerSingleton(IPeekViewService, class {
|
|
|
53
53
|
}, 1 /* InstantiationType.Delayed */);
|
|
54
54
|
export var PeekContext;
|
|
55
55
|
(function (PeekContext) {
|
|
56
|
-
PeekContext.inPeekEditor = new RawContextKey('inReferenceSearchEditor', true, nls.localize(
|
|
56
|
+
PeekContext.inPeekEditor = new RawContextKey('inReferenceSearchEditor', true, nls.localize(1392, "Whether the current code editor is embedded inside peek"));
|
|
57
57
|
PeekContext.notInPeekEditor = PeekContext.inPeekEditor.toNegated();
|
|
58
58
|
})(PeekContext || (PeekContext = {}));
|
|
59
59
|
let PeekContextController = class PeekContextController {
|
|
@@ -150,7 +150,7 @@ let PeekViewWidget = class PeekViewWidget extends ZoneWidget {
|
|
|
150
150
|
this._actionbarWidget = new ActionBar(actionsContainer, actionBarOptions);
|
|
151
151
|
this._disposables.add(this._actionbarWidget);
|
|
152
152
|
if (!noCloseAction) {
|
|
153
|
-
this._actionbarWidget.push(this._disposables.add(new Action('peekview.close', nls.localize(
|
|
153
|
+
this._actionbarWidget.push(this._disposables.add(new Action('peekview.close', nls.localize(1393, "Close"), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
154
154
|
this.dispose();
|
|
155
155
|
return Promise.resolve();
|
|
156
156
|
})), { label: false, icon: true });
|
|
@@ -217,20 +217,20 @@ PeekViewWidget = __decorate([
|
|
|
217
217
|
__param(2, IInstantiationService)
|
|
218
218
|
], PeekViewWidget);
|
|
219
219
|
export { PeekViewWidget };
|
|
220
|
-
export const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(
|
|
221
|
-
export const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, nls.localize(
|
|
222
|
-
export const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, nls.localize(
|
|
223
|
-
export const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
224
|
-
export const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(
|
|
225
|
-
export const peekViewResultsMatchForeground = registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, nls.localize(
|
|
226
|
-
export const peekViewResultsFileForeground = registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, nls.localize(
|
|
227
|
-
export const peekViewResultsSelectionBackground = registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, nls.localize(
|
|
228
|
-
export const peekViewResultsSelectionForeground = registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, nls.localize(
|
|
229
|
-
export const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, nls.localize(
|
|
230
|
-
export const peekViewEditorGutterBackground = registerColor('peekViewEditorGutter.background', peekViewEditorBackground, nls.localize(
|
|
231
|
-
export const peekViewEditorStickyScrollBackground = registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, nls.localize(
|
|
232
|
-
export const peekViewEditorStickyScrollGutterBackground = registerColor('peekViewEditorStickyScrollGutter.background', peekViewEditorBackground, nls.localize(
|
|
233
|
-
export const peekViewResultsMatchHighlight = registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, nls.localize(
|
|
234
|
-
export const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, nls.localize(
|
|
235
|
-
export const peekViewEditorMatchHighlightBorder = registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(
|
|
220
|
+
export const peekViewTitleBackground = registerColor('peekViewTitle.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1394, 'Background color of the peek view title area.'));
|
|
221
|
+
export const peekViewTitleForeground = registerColor('peekViewTitleLabel.foreground', { dark: Color.white, light: Color.black, hcDark: Color.white, hcLight: editorForeground }, nls.localize(1395, 'Color of the peek view title.'));
|
|
222
|
+
export const peekViewTitleInfoForeground = registerColor('peekViewTitleDescription.foreground', { dark: '#ccccccb3', light: '#616161', hcDark: '#FFFFFF99', hcLight: '#292929' }, nls.localize(1396, 'Color of the peek view title info.'));
|
|
223
|
+
export const peekViewBorder = registerColor('peekView.border', { dark: editorInfoForeground, light: editorInfoForeground, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1397, 'Color of the peek view borders and arrow.'));
|
|
224
|
+
export const peekViewResultsBackground = registerColor('peekViewResult.background', { dark: '#252526', light: '#F3F3F3', hcDark: Color.black, hcLight: Color.white }, nls.localize(1398, 'Background color of the peek view result list.'));
|
|
225
|
+
export const peekViewResultsMatchForeground = registerColor('peekViewResult.lineForeground', { dark: '#bbbbbb', light: '#646465', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1399, 'Foreground color for line nodes in the peek view result list.'));
|
|
226
|
+
export const peekViewResultsFileForeground = registerColor('peekViewResult.fileForeground', { dark: Color.white, light: '#1E1E1E', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1400, 'Foreground color for file nodes in the peek view result list.'));
|
|
227
|
+
export const peekViewResultsSelectionBackground = registerColor('peekViewResult.selectionBackground', { dark: '#3399ff33', light: '#3399ff33', hcDark: null, hcLight: null }, nls.localize(1401, 'Background color of the selected entry in the peek view result list.'));
|
|
228
|
+
export const peekViewResultsSelectionForeground = registerColor('peekViewResult.selectionForeground', { dark: Color.white, light: '#6C6C6C', hcDark: Color.white, hcLight: editorForeground }, nls.localize(1402, 'Foreground color of the selected entry in the peek view result list.'));
|
|
229
|
+
export const peekViewEditorBackground = registerColor('peekViewEditor.background', { dark: '#001F33', light: '#F2F8FC', hcDark: Color.black, hcLight: Color.white }, nls.localize(1403, 'Background color of the peek view editor.'));
|
|
230
|
+
export const peekViewEditorGutterBackground = registerColor('peekViewEditorGutter.background', peekViewEditorBackground, nls.localize(1404, 'Background color of the gutter in the peek view editor.'));
|
|
231
|
+
export const peekViewEditorStickyScrollBackground = registerColor('peekViewEditorStickyScroll.background', peekViewEditorBackground, nls.localize(1405, 'Background color of sticky scroll in the peek view editor.'));
|
|
232
|
+
export const peekViewEditorStickyScrollGutterBackground = registerColor('peekViewEditorStickyScrollGutter.background', peekViewEditorBackground, nls.localize(1406, 'Background color of the gutter part of sticky scroll in the peek view editor.'));
|
|
233
|
+
export const peekViewResultsMatchHighlight = registerColor('peekViewResult.matchHighlightBackground', { dark: '#ea5c004d', light: '#ea5c004d', hcDark: null, hcLight: null }, nls.localize(1407, 'Match highlight color in the peek view result list.'));
|
|
234
|
+
export const peekViewEditorMatchHighlight = registerColor('peekViewEditor.matchHighlightBackground', { dark: '#ff8f0099', light: '#f5d802de', hcDark: null, hcLight: null }, nls.localize(1408, 'Match highlight color in the peek view editor.'));
|
|
235
|
+
export const peekViewEditorMatchHighlightBorder = registerColor('peekViewEditor.matchHighlightBorder', { dark: null, light: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(1409, 'Match highlight border in the peek view editor.'));
|
|
236
236
|
//# sourceMappingURL=peekView.js.map
|
|
@@ -10,5 +10,5 @@ import { registerColor } from '../../../../platform/theme/common/colorUtils.js';
|
|
|
10
10
|
import { PlaceholderTextContribution } from './placeholderTextContribution.js';
|
|
11
11
|
import { wrapInReloadableClass1 } from '../../../../platform/observable/common/wrapInReloadableClass.js';
|
|
12
12
|
registerEditorContribution(PlaceholderTextContribution.ID, wrapInReloadableClass1(() => PlaceholderTextContribution), 0 /* EditorContributionInstantiation.Eager */);
|
|
13
|
-
registerColor('editor.placeholder.foreground', ghostTextForeground, localize(
|
|
13
|
+
registerColor('editor.placeholder.foreground', ghostTextForeground, localize(1410, 'Foreground color of the placeholder text in the editor.'));
|
|
14
14
|
//# sourceMappingURL=placeholderText.contribution.js.map
|
|
@@ -92,7 +92,7 @@ export class AbstractEditorNavigationQuickAccessProvider {
|
|
|
92
92
|
const model = this.getModel(editor);
|
|
93
93
|
if (model) {
|
|
94
94
|
const lineContent = model.getLineContent(options.range.startLineNumber);
|
|
95
|
-
status(localize(
|
|
95
|
+
status(localize(1411, "Line {0}, column {1}: {2}", options.range.startLineNumber, options.range.startColumn, lineContent));
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
getModel(editor) {
|
|
@@ -24,7 +24,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
24
24
|
this.storageService.store(AbstractGotoLineQuickAccessProvider.ZERO_BASED_OFFSET_STORAGE_KEY, value, -1 /* StorageScope.APPLICATION */, 0 /* StorageTarget.USER */);
|
|
25
25
|
}
|
|
26
26
|
provideWithoutTextEditor(picker) {
|
|
27
|
-
const label = localize(
|
|
27
|
+
const label = localize(1412, "Open a text editor first to go to a line or an offset.");
|
|
28
28
|
picker.items = [{ label }];
|
|
29
29
|
picker.ariaLabel = label;
|
|
30
30
|
return Disposable.None;
|
|
@@ -33,7 +33,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
33
33
|
const editor = context.editor;
|
|
34
34
|
const disposables = new DisposableStore();
|
|
35
35
|
// Set initial ariaLabel for screen readers
|
|
36
|
-
picker.ariaLabel = localize(
|
|
36
|
+
picker.ariaLabel = localize(1413, "Go to line. Type a line number, optionally followed by colon and column number.");
|
|
37
37
|
// Goto line once picked
|
|
38
38
|
disposables.add(picker.onDidAccept(event => {
|
|
39
39
|
const [item] = picker.selectedItems;
|
|
@@ -50,7 +50,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
50
50
|
// Add a toggle to switch between 1- and 0-based offsets.
|
|
51
51
|
const offsetButton = {
|
|
52
52
|
iconClass: ThemeIcon.asClassName(Codicon.indexZero),
|
|
53
|
-
tooltip: localize(
|
|
53
|
+
tooltip: localize(1414, "Toggle Zero-Based Offset"),
|
|
54
54
|
location: QuickInputButtonLocation.Input,
|
|
55
55
|
toggle: { checked: this.useZeroBasedOffset }
|
|
56
56
|
};
|
|
@@ -66,7 +66,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
66
66
|
column,
|
|
67
67
|
label,
|
|
68
68
|
ariaLabel: lineNumber
|
|
69
|
-
? localize(
|
|
69
|
+
? localize(1415, "Go to line {0}, column {1}. Press Enter to navigate.", lineNumber, column || 1)
|
|
70
70
|
: label,
|
|
71
71
|
}];
|
|
72
72
|
// Clear decorations for invalid range
|
|
@@ -112,7 +112,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
112
112
|
const model = this.getModel(editor);
|
|
113
113
|
if (!model) {
|
|
114
114
|
return {
|
|
115
|
-
label: localize(
|
|
115
|
+
label: localize(1416, "Open a text editor first to go to a line or an offset.")
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
118
|
// Support ::<offset> notation to navigate to a specific offset in the model.
|
|
@@ -124,8 +124,8 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
124
124
|
return {
|
|
125
125
|
inOffsetMode: true,
|
|
126
126
|
label: this.useZeroBasedOffset ?
|
|
127
|
-
localize(
|
|
128
|
-
localize(
|
|
127
|
+
localize(1417, "Type a character position to go to (from 0 to {0}).", maxOffset - 1) :
|
|
128
|
+
localize(1418, "Type a character position to go to (from 1 to {0}).", maxOffset)
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
@@ -143,7 +143,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
143
143
|
return {
|
|
144
144
|
...pos,
|
|
145
145
|
inOffsetMode: true,
|
|
146
|
-
label: localize(
|
|
146
|
+
label: localize(1419, "Press 'Enter' to go to line {0} at column {1}.", pos.lineNumber, visibleColumn)
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -154,7 +154,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
154
154
|
let lineNumber = parseInt(parts[0]?.trim(), 10);
|
|
155
155
|
if (parts.length < 1 || isNaN(lineNumber)) {
|
|
156
156
|
return {
|
|
157
|
-
label: localize(
|
|
157
|
+
label: localize(1420, "Type a line number to go to (from 1 to {0}).", maxLine)
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
// Handle negative line numbers and clip to valid range.
|
|
@@ -170,8 +170,8 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
170
170
|
lineNumber,
|
|
171
171
|
column: 1,
|
|
172
172
|
label: parts.length < 2 ?
|
|
173
|
-
localize(
|
|
174
|
-
localize(
|
|
173
|
+
localize(1421, "Press 'Enter' to go to line {0} or enter colon : to add a column number.", lineNumber) :
|
|
174
|
+
localize(1422, "Press 'Enter' to go to line {0} or enter a column number (from 1 to {1}).", lineNumber, maxColumn)
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
177
|
// Handle negative column numbers and clip to valid range.
|
|
@@ -181,7 +181,7 @@ export class AbstractGotoLineQuickAccessProvider extends AbstractEditorNavigatio
|
|
|
181
181
|
return {
|
|
182
182
|
lineNumber,
|
|
183
183
|
column: realColumn,
|
|
184
|
-
label: localize(
|
|
184
|
+
label: localize(1423, "Press 'Enter' to go to line {0} at column {1}.", lineNumber, column)
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -39,7 +39,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
39
39
|
this.options.canAcceptInBackground = true;
|
|
40
40
|
}
|
|
41
41
|
provideWithoutTextEditor(picker) {
|
|
42
|
-
this.provideLabelPick(picker, localize(
|
|
42
|
+
this.provideLabelPick(picker, localize(1424, "To go to a symbol, first open a text editor with symbol information."));
|
|
43
43
|
return Disposable.None;
|
|
44
44
|
}
|
|
45
45
|
provideWithTextEditor(context, picker, token, runOptions) {
|
|
@@ -60,7 +60,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
60
60
|
doProvideWithoutEditorSymbols(context, model, picker, token) {
|
|
61
61
|
const disposables = new DisposableStore();
|
|
62
62
|
// Generic pick for not having any symbol information
|
|
63
|
-
this.provideLabelPick(picker, localize(
|
|
63
|
+
this.provideLabelPick(picker, localize(1425, "The active text editor does not provide symbol information."));
|
|
64
64
|
// Wait for changes to the registry and see if eventually
|
|
65
65
|
// we do get symbols. This can happen if the picker is opened
|
|
66
66
|
// very early after the model has loaded but before the
|
|
@@ -152,10 +152,10 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
154
154
|
if (query.original.length > 0) {
|
|
155
|
-
this.provideLabelPick(picker, localize(
|
|
155
|
+
this.provideLabelPick(picker, localize(1426, "No matching editor symbols"));
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
-
this.provideLabelPick(picker, localize(
|
|
158
|
+
this.provideLabelPick(picker, localize(1427, "No editor symbols"));
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -202,7 +202,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
202
202
|
if (openSideBySideDirection) {
|
|
203
203
|
buttons = [{
|
|
204
204
|
iconClass: openSideBySideDirection === 'right' ? ThemeIcon.asClassName(Codicon.splitHorizontal) : ThemeIcon.asClassName(Codicon.splitVertical),
|
|
205
|
-
tooltip: openSideBySideDirection === 'right' ? localize(
|
|
205
|
+
tooltip: openSideBySideDirection === 'right' ? localize(1428, "Open to the Side") : localize(1429, "Open to the Bottom")
|
|
206
206
|
}];
|
|
207
207
|
}
|
|
208
208
|
const filteredSymbolPicks = [];
|
|
@@ -318,7 +318,7 @@ let AbstractGotoSymbolQuickAccessProvider = class AbstractGotoSymbolQuickAccessP
|
|
|
318
318
|
}
|
|
319
319
|
else if (sortedFilteredSymbolPicks.length > 0) {
|
|
320
320
|
symbolPicks = [
|
|
321
|
-
{ label: localize(
|
|
321
|
+
{ label: localize(1430, "symbols ({0})", filteredSymbolPicks.length), type: 'separator' },
|
|
322
322
|
...sortedFilteredSymbolPicks
|
|
323
323
|
];
|
|
324
324
|
}
|
|
@@ -368,33 +368,33 @@ AbstractGotoSymbolQuickAccessProvider = AbstractGotoSymbolQuickAccessProvider_1
|
|
|
368
368
|
], AbstractGotoSymbolQuickAccessProvider);
|
|
369
369
|
export { AbstractGotoSymbolQuickAccessProvider };
|
|
370
370
|
// #region NLS Helpers
|
|
371
|
-
const FALLBACK_NLS_SYMBOL_KIND = localize(
|
|
371
|
+
const FALLBACK_NLS_SYMBOL_KIND = localize(1431, "properties ({0})");
|
|
372
372
|
const NLS_SYMBOL_KIND_CACHE = {
|
|
373
|
-
[5 /* SymbolKind.Method */]: localize(
|
|
374
|
-
[11 /* SymbolKind.Function */]: localize(
|
|
375
|
-
[8 /* SymbolKind.Constructor */]: localize(
|
|
376
|
-
[12 /* SymbolKind.Variable */]: localize(
|
|
377
|
-
[4 /* SymbolKind.Class */]: localize(
|
|
378
|
-
[22 /* SymbolKind.Struct */]: localize(
|
|
379
|
-
[23 /* SymbolKind.Event */]: localize(
|
|
380
|
-
[24 /* SymbolKind.Operator */]: localize(
|
|
381
|
-
[10 /* SymbolKind.Interface */]: localize(
|
|
382
|
-
[2 /* SymbolKind.Namespace */]: localize(
|
|
383
|
-
[3 /* SymbolKind.Package */]: localize(
|
|
384
|
-
[25 /* SymbolKind.TypeParameter */]: localize(
|
|
385
|
-
[1 /* SymbolKind.Module */]: localize(
|
|
386
|
-
[6 /* SymbolKind.Property */]: localize(
|
|
387
|
-
[9 /* SymbolKind.Enum */]: localize(
|
|
388
|
-
[21 /* SymbolKind.EnumMember */]: localize(
|
|
389
|
-
[14 /* SymbolKind.String */]: localize(
|
|
390
|
-
[0 /* SymbolKind.File */]: localize(
|
|
391
|
-
[17 /* SymbolKind.Array */]: localize(
|
|
392
|
-
[15 /* SymbolKind.Number */]: localize(
|
|
393
|
-
[16 /* SymbolKind.Boolean */]: localize(
|
|
394
|
-
[18 /* SymbolKind.Object */]: localize(
|
|
395
|
-
[19 /* SymbolKind.Key */]: localize(
|
|
396
|
-
[7 /* SymbolKind.Field */]: localize(
|
|
397
|
-
[13 /* SymbolKind.Constant */]: localize(
|
|
373
|
+
[5 /* SymbolKind.Method */]: localize(1432, "methods ({0})"),
|
|
374
|
+
[11 /* SymbolKind.Function */]: localize(1433, "functions ({0})"),
|
|
375
|
+
[8 /* SymbolKind.Constructor */]: localize(1434, "constructors ({0})"),
|
|
376
|
+
[12 /* SymbolKind.Variable */]: localize(1435, "variables ({0})"),
|
|
377
|
+
[4 /* SymbolKind.Class */]: localize(1436, "classes ({0})"),
|
|
378
|
+
[22 /* SymbolKind.Struct */]: localize(1437, "structs ({0})"),
|
|
379
|
+
[23 /* SymbolKind.Event */]: localize(1438, "events ({0})"),
|
|
380
|
+
[24 /* SymbolKind.Operator */]: localize(1439, "operators ({0})"),
|
|
381
|
+
[10 /* SymbolKind.Interface */]: localize(1440, "interfaces ({0})"),
|
|
382
|
+
[2 /* SymbolKind.Namespace */]: localize(1441, "namespaces ({0})"),
|
|
383
|
+
[3 /* SymbolKind.Package */]: localize(1442, "packages ({0})"),
|
|
384
|
+
[25 /* SymbolKind.TypeParameter */]: localize(1443, "type parameters ({0})"),
|
|
385
|
+
[1 /* SymbolKind.Module */]: localize(1444, "modules ({0})"),
|
|
386
|
+
[6 /* SymbolKind.Property */]: localize(1445, "properties ({0})"),
|
|
387
|
+
[9 /* SymbolKind.Enum */]: localize(1446, "enumerations ({0})"),
|
|
388
|
+
[21 /* SymbolKind.EnumMember */]: localize(1447, "enumeration members ({0})"),
|
|
389
|
+
[14 /* SymbolKind.String */]: localize(1448, "strings ({0})"),
|
|
390
|
+
[0 /* SymbolKind.File */]: localize(1449, "files ({0})"),
|
|
391
|
+
[17 /* SymbolKind.Array */]: localize(1450, "arrays ({0})"),
|
|
392
|
+
[15 /* SymbolKind.Number */]: localize(1451, "numbers ({0})"),
|
|
393
|
+
[16 /* SymbolKind.Boolean */]: localize(1452, "booleans ({0})"),
|
|
394
|
+
[18 /* SymbolKind.Object */]: localize(1453, "objects ({0})"),
|
|
395
|
+
[19 /* SymbolKind.Key */]: localize(1454, "keys ({0})"),
|
|
396
|
+
[7 /* SymbolKind.Field */]: localize(1455, "fields ({0})"),
|
|
397
|
+
[13 /* SymbolKind.Constant */]: localize(1456, "constants ({0})")
|
|
398
398
|
};
|
|
399
399
|
//#endregion
|
|
400
400
|
//# sourceMappingURL=gotoSymbolQuickAccess.js.map
|
|
@@ -20,10 +20,10 @@ export class ReadOnlyMessageController extends Disposable {
|
|
|
20
20
|
let message = this.editor.getOptions().get(107 /* EditorOption.readOnlyMessage */);
|
|
21
21
|
if (!message) {
|
|
22
22
|
if (this.editor.isSimpleWidget) {
|
|
23
|
-
message = new MarkdownString(nls.localize(
|
|
23
|
+
message = new MarkdownString(nls.localize(1457, "Cannot edit in read-only input"));
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
|
-
message = new MarkdownString(nls.localize(
|
|
26
|
+
message = new MarkdownString(nls.localize(1458, "Cannot edit in read-only editor"));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
messageController.showMessage(message, this.editor.getPosition());
|
|
@@ -99,7 +99,7 @@ class RenameSkeleton {
|
|
|
99
99
|
}
|
|
100
100
|
const result = await provider.provideRenameEdits(this.model, this.position, newName, token);
|
|
101
101
|
if (!result) {
|
|
102
|
-
return this._provideRenameEdits(newName, i + 1, rejects.concat(nls.localize(
|
|
102
|
+
return this._provideRenameEdits(newName, i + 1, rejects.concat(nls.localize(1459, "No result.")), token);
|
|
103
103
|
}
|
|
104
104
|
else if (result.rejectReason) {
|
|
105
105
|
return this._provideRenameEdits(newName, i + 1, rejects.concat(result.rejectReason), token);
|
|
@@ -180,7 +180,7 @@ let RenameController = class RenameController {
|
|
|
180
180
|
else {
|
|
181
181
|
trace('resolve rename location failed', e instanceof Error ? e : JSON.stringify(e, null, '\t'));
|
|
182
182
|
if (typeof e === 'string' || isMarkdownString(e)) {
|
|
183
|
-
MessageController.get(this.editor)?.showMessage(e || nls.localize(
|
|
183
|
+
MessageController.get(this.editor)?.showMessage(e || nls.localize(1460, "An unknown error occurred while resolving rename location"), position);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
return undefined;
|
|
@@ -248,24 +248,24 @@ let RenameController = class RenameController {
|
|
|
248
248
|
this._bulkEditService.apply(renameResult, {
|
|
249
249
|
editor: this.editor,
|
|
250
250
|
showPreview: inputFieldResult.wantsPreview,
|
|
251
|
-
label: nls.localize(
|
|
251
|
+
label: nls.localize(1461, "Renaming '{0}' to '{1}'", loc?.text, inputFieldResult.newName),
|
|
252
252
|
code: 'undoredo.rename',
|
|
253
|
-
quotableLabel: nls.localize(
|
|
253
|
+
quotableLabel: nls.localize(1462, "Renaming {0} to {1}", loc?.text, inputFieldResult.newName),
|
|
254
254
|
respectAutoSaveConfig: true,
|
|
255
255
|
reason: EditSources.rename(loc?.text, inputFieldResult.newName),
|
|
256
256
|
}).then(result => {
|
|
257
257
|
trace('edits applied');
|
|
258
258
|
if (result.ariaSummary) {
|
|
259
|
-
alert(nls.localize(
|
|
259
|
+
alert(nls.localize(1463, "Successfully renamed '{0}' to '{1}'. Summary: {2}", loc.text, inputFieldResult.newName, result.ariaSummary));
|
|
260
260
|
}
|
|
261
261
|
}).catch(err => {
|
|
262
262
|
trace(`error when applying edits ${JSON.stringify(err, null, '\t')}`);
|
|
263
|
-
this._notificationService.error(nls.localize(
|
|
263
|
+
this._notificationService.error(nls.localize(1464, "Rename failed to apply edits"));
|
|
264
264
|
this._logService.error(err);
|
|
265
265
|
});
|
|
266
266
|
}, err => {
|
|
267
267
|
trace('error when providing rename edits', JSON.stringify(err, null, '\t'));
|
|
268
|
-
this._notificationService.error(nls.localize(
|
|
268
|
+
this._notificationService.error(nls.localize(1465, "Rename failed to compute edits"));
|
|
269
269
|
this._logService.error(err);
|
|
270
270
|
}).finally(() => {
|
|
271
271
|
cts2.dispose();
|
|
@@ -301,7 +301,7 @@ export class RenameAction extends EditorAction {
|
|
|
301
301
|
constructor() {
|
|
302
302
|
super({
|
|
303
303
|
id: 'editor.action.rename',
|
|
304
|
-
label: nls.localize2(
|
|
304
|
+
label: nls.localize2(1467, "Rename Symbol"),
|
|
305
305
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider),
|
|
306
306
|
kbOpts: {
|
|
307
307
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -382,7 +382,7 @@ registerAction2(class FocusNextRenameSuggestion extends Action2 {
|
|
|
382
382
|
super({
|
|
383
383
|
id: 'focusNextRenameSuggestion',
|
|
384
384
|
title: {
|
|
385
|
-
...nls.localize2(
|
|
385
|
+
...nls.localize2(1468, "Focus Next Rename Suggestion"),
|
|
386
386
|
},
|
|
387
387
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
388
388
|
keybinding: [
|
|
@@ -410,7 +410,7 @@ registerAction2(class FocusPreviousRenameSuggestion extends Action2 {
|
|
|
410
410
|
super({
|
|
411
411
|
id: 'focusPreviousRenameSuggestion',
|
|
412
412
|
title: {
|
|
413
|
-
...nls.localize2(
|
|
413
|
+
...nls.localize2(1469, "Focus Previous Rename Suggestion"),
|
|
414
414
|
},
|
|
415
415
|
precondition: CONTEXT_RENAME_INPUT_VISIBLE,
|
|
416
416
|
keybinding: [
|
|
@@ -455,7 +455,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
455
455
|
properties: {
|
|
456
456
|
'editor.rename.enablePreview': {
|
|
457
457
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
458
|
-
description: nls.localize(
|
|
458
|
+
description: nls.localize(1466, "Enable/disable the ability to preview changes before renaming"),
|
|
459
459
|
default: true,
|
|
460
460
|
type: 'boolean'
|
|
461
461
|
}
|