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
|
@@ -26,28 +26,28 @@ import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
|
26
26
|
import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
27
27
|
import { assertReturnsDefined } from '../../../../base/common/types.js';
|
|
28
28
|
import { defaultInputBoxStyles, defaultToggleStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
29
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(
|
|
30
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(
|
|
31
|
-
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(
|
|
32
|
-
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(
|
|
33
|
-
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(
|
|
34
|
-
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(
|
|
35
|
-
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(
|
|
36
|
-
const NLS_FIND_DIALOG_LABEL = nls.localize(
|
|
37
|
-
const NLS_FIND_INPUT_LABEL = nls.localize(
|
|
38
|
-
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(
|
|
39
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(
|
|
40
|
-
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(
|
|
41
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(
|
|
42
|
-
const NLS_CLOSE_BTN_LABEL = nls.localize(
|
|
43
|
-
const NLS_REPLACE_INPUT_LABEL = nls.localize(
|
|
44
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(
|
|
45
|
-
const NLS_REPLACE_BTN_LABEL = nls.localize(
|
|
46
|
-
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(
|
|
47
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(
|
|
48
|
-
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(
|
|
49
|
-
export const NLS_MATCHES_LOCATION = nls.localize(
|
|
50
|
-
export const NLS_NO_RESULTS = nls.localize(
|
|
29
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, nls.localize(1019, 'Icon to indicate that the editor find widget is collapsed.'));
|
|
30
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, nls.localize(1020, 'Icon to indicate that the editor find widget is expanded.'));
|
|
31
|
+
export const findSelectionIcon = registerIcon('find-selection', Codicon.selection, nls.localize(1021, 'Icon for \'Find in Selection\' in the editor find widget.'));
|
|
32
|
+
export const findReplaceIcon = registerIcon('find-replace', Codicon.replace, nls.localize(1022, 'Icon for \'Replace\' in the editor find widget.'));
|
|
33
|
+
export const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, nls.localize(1023, 'Icon for \'Replace All\' in the editor find widget.'));
|
|
34
|
+
export const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, nls.localize(1024, 'Icon for \'Find Previous\' in the editor find widget.'));
|
|
35
|
+
export const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, nls.localize(1025, 'Icon for \'Find Next\' in the editor find widget.'));
|
|
36
|
+
const NLS_FIND_DIALOG_LABEL = nls.localize(1026, "Find / Replace");
|
|
37
|
+
const NLS_FIND_INPUT_LABEL = nls.localize(1027, "Find");
|
|
38
|
+
const NLS_FIND_INPUT_PLACEHOLDER = nls.localize(1028, "Find");
|
|
39
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = nls.localize(1029, "Previous Match");
|
|
40
|
+
const NLS_NEXT_MATCH_BTN_LABEL = nls.localize(1030, "Next Match");
|
|
41
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = nls.localize(1031, "Find in Selection");
|
|
42
|
+
const NLS_CLOSE_BTN_LABEL = nls.localize(1032, "Close");
|
|
43
|
+
const NLS_REPLACE_INPUT_LABEL = nls.localize(1033, "Replace");
|
|
44
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = nls.localize(1034, "Replace");
|
|
45
|
+
const NLS_REPLACE_BTN_LABEL = nls.localize(1035, "Replace");
|
|
46
|
+
const NLS_REPLACE_ALL_BTN_LABEL = nls.localize(1036, "Replace All");
|
|
47
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = nls.localize(1037, "Toggle Replace");
|
|
48
|
+
const NLS_MATCHES_COUNT_LIMIT_TITLE = nls.localize(1038, "Only the first {0} results are highlighted, but all find operations work on the entire text.", MATCHES_LIMIT);
|
|
49
|
+
export const NLS_MATCHES_LOCATION = nls.localize(1039, "{0} of {1}");
|
|
50
|
+
export const NLS_NO_RESULTS = nls.localize(1040, "No results");
|
|
51
51
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
52
52
|
const PART_WIDTH = 275;
|
|
53
53
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -347,11 +347,11 @@ export class FindWidget extends Widget {
|
|
|
347
347
|
let result;
|
|
348
348
|
if (label === NLS_NO_RESULTS) {
|
|
349
349
|
result = searchString === ''
|
|
350
|
-
? nls.localize(
|
|
351
|
-
: nls.localize(
|
|
350
|
+
? nls.localize(1041, "{0} found", label)
|
|
351
|
+
: nls.localize(1042, "{0} found for '{1}'", label, searchString);
|
|
352
352
|
}
|
|
353
353
|
else if (currentMatch) {
|
|
354
|
-
const ariaLabel = nls.localize(
|
|
354
|
+
const ariaLabel = nls.localize(1043, "{0} found for '{1}', at {2}", label, searchString, currentMatch.startLineNumber + ':' + currentMatch.startColumn);
|
|
355
355
|
const model = this._codeEditor.getModel();
|
|
356
356
|
if (model && (currentMatch.startLineNumber <= model.getLineCount()) && (currentMatch.startLineNumber >= 1)) {
|
|
357
357
|
const lineContent = model.getLineContent(currentMatch.startLineNumber);
|
|
@@ -362,7 +362,7 @@ export class FindWidget extends Widget {
|
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
else {
|
|
365
|
-
result = nls.localize(
|
|
365
|
+
result = nls.localize(1044, "{0} found for '{1}'", label, searchString);
|
|
366
366
|
}
|
|
367
367
|
return result;
|
|
368
368
|
}
|
|
@@ -1091,9 +1091,9 @@ export class FindWidget extends Widget {
|
|
|
1091
1091
|
if (!this._accessibilityHelpHintAnnounced && this._configurationService.getValue('accessibility.verbosity.find') && this._accessibilityService.isScreenReaderOptimized()) {
|
|
1092
1092
|
const accessibilityHelpKeybinding = this._keybindingService.lookupKeybinding('editor.action.accessibilityHelp')?.getAriaLabel();
|
|
1093
1093
|
if (accessibilityHelpKeybinding) {
|
|
1094
|
-
const hint = nls.localize(
|
|
1095
|
-
findLabel = nls.localize(
|
|
1096
|
-
replaceLabel = nls.localize(
|
|
1094
|
+
const hint = nls.localize(1045, "Press {0} for accessibility help", accessibilityHelpKeybinding);
|
|
1095
|
+
findLabel = nls.localize(1046, "{0}, {1}", findLabel, hint);
|
|
1096
|
+
replaceLabel = nls.localize(1047, "{0}, {1}", replaceLabel, hint);
|
|
1097
1097
|
}
|
|
1098
1098
|
this._accessibilityHelpHintAnnounced = true;
|
|
1099
1099
|
// Schedule reset to plain labels after initial announcement
|
|
@@ -14,6 +14,21 @@
|
|
|
14
14
|
justify-content: center;
|
|
15
15
|
font-size: 140%;
|
|
16
16
|
margin-left: 2px;
|
|
17
|
+
/* Only the chevron (see ::after) takes clicks, so that clicks next to it place the cursor */
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* The chevrons are at most 10/16 of the icon wide */
|
|
22
|
+
.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed::after,
|
|
23
|
+
.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded::after,
|
|
24
|
+
.monaco-editor .margin-view-overlays .codicon-folding-expanded::after,
|
|
25
|
+
.monaco-editor .margin-view-overlays .codicon-folding-collapsed::after {
|
|
26
|
+
content: '';
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset: 0;
|
|
29
|
+
width: 0.625em;
|
|
30
|
+
margin: 0 auto;
|
|
31
|
+
pointer-events: auto;
|
|
17
32
|
}
|
|
18
33
|
|
|
19
34
|
.monaco-reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,
|
|
@@ -508,7 +508,7 @@ class UnfoldAction extends FoldingAction {
|
|
|
508
508
|
constructor() {
|
|
509
509
|
super({
|
|
510
510
|
id: 'editor.unfold',
|
|
511
|
-
label: nls.localize2(
|
|
511
|
+
label: nls.localize2(1048, "Unfold"),
|
|
512
512
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
513
513
|
kbOpts: {
|
|
514
514
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -569,7 +569,7 @@ class UnFoldRecursivelyAction extends FoldingAction {
|
|
|
569
569
|
constructor() {
|
|
570
570
|
super({
|
|
571
571
|
id: 'editor.unfoldRecursively',
|
|
572
|
-
label: nls.localize2(
|
|
572
|
+
label: nls.localize2(1049, "Unfold Recursively"),
|
|
573
573
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
574
574
|
kbOpts: {
|
|
575
575
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -586,7 +586,7 @@ class FoldAction extends FoldingAction {
|
|
|
586
586
|
constructor() {
|
|
587
587
|
super({
|
|
588
588
|
id: 'editor.fold',
|
|
589
|
-
label: nls.localize2(
|
|
589
|
+
label: nls.localize2(1050, "Fold"),
|
|
590
590
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
591
591
|
kbOpts: {
|
|
592
592
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -653,7 +653,7 @@ class ToggleFoldAction extends FoldingAction {
|
|
|
653
653
|
constructor() {
|
|
654
654
|
super({
|
|
655
655
|
id: 'editor.toggleFold',
|
|
656
|
-
label: nls.localize2(
|
|
656
|
+
label: nls.localize2(1051, "Toggle Fold"),
|
|
657
657
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
658
658
|
kbOpts: {
|
|
659
659
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -671,7 +671,7 @@ class FoldRecursivelyAction extends FoldingAction {
|
|
|
671
671
|
constructor() {
|
|
672
672
|
super({
|
|
673
673
|
id: 'editor.foldRecursively',
|
|
674
|
-
label: nls.localize2(
|
|
674
|
+
label: nls.localize2(1052, "Fold Recursively"),
|
|
675
675
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
676
676
|
kbOpts: {
|
|
677
677
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -689,7 +689,7 @@ class ToggleFoldRecursivelyAction extends FoldingAction {
|
|
|
689
689
|
constructor() {
|
|
690
690
|
super({
|
|
691
691
|
id: 'editor.toggleFoldRecursively',
|
|
692
|
-
label: nls.localize2(
|
|
692
|
+
label: nls.localize2(1053, "Toggle Fold Recursively"),
|
|
693
693
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
694
694
|
kbOpts: {
|
|
695
695
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -707,7 +707,7 @@ class FoldAllBlockCommentsAction extends FoldingAction {
|
|
|
707
707
|
constructor() {
|
|
708
708
|
super({
|
|
709
709
|
id: 'editor.foldAllBlockComments',
|
|
710
|
-
label: nls.localize2(
|
|
710
|
+
label: nls.localize2(1054, "Fold All Block Comments"),
|
|
711
711
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
712
712
|
kbOpts: {
|
|
713
713
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -737,7 +737,7 @@ class FoldAllRegionsAction extends FoldingAction {
|
|
|
737
737
|
constructor() {
|
|
738
738
|
super({
|
|
739
739
|
id: 'editor.foldAllMarkerRegions',
|
|
740
|
-
label: nls.localize2(
|
|
740
|
+
label: nls.localize2(1055, "Fold All Regions"),
|
|
741
741
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
742
742
|
kbOpts: {
|
|
743
743
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -767,7 +767,7 @@ class UnfoldAllRegionsAction extends FoldingAction {
|
|
|
767
767
|
constructor() {
|
|
768
768
|
super({
|
|
769
769
|
id: 'editor.unfoldAllMarkerRegions',
|
|
770
|
-
label: nls.localize2(
|
|
770
|
+
label: nls.localize2(1056, "Unfold All Regions"),
|
|
771
771
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
772
772
|
kbOpts: {
|
|
773
773
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -797,7 +797,7 @@ class FoldAllExceptAction extends FoldingAction {
|
|
|
797
797
|
constructor() {
|
|
798
798
|
super({
|
|
799
799
|
id: 'editor.foldAllExcept',
|
|
800
|
-
label: nls.localize2(
|
|
800
|
+
label: nls.localize2(1057, "Fold All Except Selected"),
|
|
801
801
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
802
802
|
kbOpts: {
|
|
803
803
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -815,7 +815,7 @@ class UnfoldAllExceptAction extends FoldingAction {
|
|
|
815
815
|
constructor() {
|
|
816
816
|
super({
|
|
817
817
|
id: 'editor.unfoldAllExcept',
|
|
818
|
-
label: nls.localize2(
|
|
818
|
+
label: nls.localize2(1058, "Unfold All Except Selected"),
|
|
819
819
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
820
820
|
kbOpts: {
|
|
821
821
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -833,7 +833,7 @@ class FoldAllAction extends FoldingAction {
|
|
|
833
833
|
constructor() {
|
|
834
834
|
super({
|
|
835
835
|
id: 'editor.foldAll',
|
|
836
|
-
label: nls.localize2(
|
|
836
|
+
label: nls.localize2(1059, "Fold All"),
|
|
837
837
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
838
838
|
kbOpts: {
|
|
839
839
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -850,7 +850,7 @@ class UnfoldAllAction extends FoldingAction {
|
|
|
850
850
|
constructor() {
|
|
851
851
|
super({
|
|
852
852
|
id: 'editor.unfoldAll',
|
|
853
|
-
label: nls.localize2(
|
|
853
|
+
label: nls.localize2(1060, "Unfold All"),
|
|
854
854
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
855
855
|
kbOpts: {
|
|
856
856
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -878,7 +878,7 @@ class GotoParentFoldAction extends FoldingAction {
|
|
|
878
878
|
constructor() {
|
|
879
879
|
super({
|
|
880
880
|
id: 'editor.gotoParentFold',
|
|
881
|
-
label: nls.localize2(
|
|
881
|
+
label: nls.localize2(1061, "Go to Parent Fold"),
|
|
882
882
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
883
883
|
kbOpts: {
|
|
884
884
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -906,7 +906,7 @@ class GotoPreviousFoldAction extends FoldingAction {
|
|
|
906
906
|
constructor() {
|
|
907
907
|
super({
|
|
908
908
|
id: 'editor.gotoPreviousFold',
|
|
909
|
-
label: nls.localize2(
|
|
909
|
+
label: nls.localize2(1062, "Go to Previous Folding Range"),
|
|
910
910
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
911
911
|
kbOpts: {
|
|
912
912
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -934,7 +934,7 @@ class GotoNextFoldAction extends FoldingAction {
|
|
|
934
934
|
constructor() {
|
|
935
935
|
super({
|
|
936
936
|
id: 'editor.gotoNextFold',
|
|
937
|
-
label: nls.localize2(
|
|
937
|
+
label: nls.localize2(1063, "Go to Next Folding Range"),
|
|
938
938
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
939
939
|
kbOpts: {
|
|
940
940
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -961,7 +961,7 @@ class FoldRangeFromSelectionAction extends FoldingAction {
|
|
|
961
961
|
constructor() {
|
|
962
962
|
super({
|
|
963
963
|
id: 'editor.createFoldingRangeFromSelection',
|
|
964
|
-
label: nls.localize2(
|
|
964
|
+
label: nls.localize2(1064, "Create Folding Range from Selection"),
|
|
965
965
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
966
966
|
kbOpts: {
|
|
967
967
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1009,7 +1009,7 @@ class RemoveFoldRangeFromSelectionAction extends FoldingAction {
|
|
|
1009
1009
|
constructor() {
|
|
1010
1010
|
super({
|
|
1011
1011
|
id: 'editor.removeManualFoldingRanges',
|
|
1012
|
-
label: nls.localize2(
|
|
1012
|
+
label: nls.localize2(1065, "Remove Manual Folding Ranges"),
|
|
1013
1013
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1014
1014
|
kbOpts: {
|
|
1015
1015
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1030,7 +1030,7 @@ class ToggleImportFoldAction extends FoldingAction {
|
|
|
1030
1030
|
constructor() {
|
|
1031
1031
|
super({
|
|
1032
1032
|
id: 'editor.toggleImportFold',
|
|
1033
|
-
label: nls.localize2(
|
|
1033
|
+
label: nls.localize2(1066, "Toggle Import Fold"),
|
|
1034
1034
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1035
1035
|
kbOpts: {
|
|
1036
1036
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -1073,7 +1073,7 @@ registerEditorAction(ToggleImportFoldAction);
|
|
|
1073
1073
|
for (let i = 1; i <= 7; i++) {
|
|
1074
1074
|
registerInstantiatedEditorAction(new FoldLevelAction({
|
|
1075
1075
|
id: FoldLevelAction.ID(i),
|
|
1076
|
-
label: nls.localize2(
|
|
1076
|
+
label: nls.localize2(1067, "Fold Level {0}", i),
|
|
1077
1077
|
precondition: CONTEXT_FOLDING_ENABLED,
|
|
1078
1078
|
kbOpts: {
|
|
1079
1079
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -9,16 +9,16 @@ import { editorSelectionBackground, iconForeground, registerColor, transparent }
|
|
|
9
9
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
10
10
|
import { themeColorFromId } from '../../../../platform/theme/common/themeService.js';
|
|
11
11
|
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
12
|
-
const foldBackground = registerColor('editor.foldBackground', { light: transparent(editorSelectionBackground, 0.3), dark: transparent(editorSelectionBackground, 0.3), hcDark: null, hcLight: null }, localize(
|
|
13
|
-
registerColor('editor.foldPlaceholderForeground', { light: '#808080', dark: '#808080', hcDark: null, hcLight: null }, localize(
|
|
14
|
-
registerColor('editorGutter.foldingControlForeground', iconForeground, localize(
|
|
15
|
-
export const foldingExpandedIcon = registerIcon('folding-expanded', Codicon.chevronDown, localize(
|
|
16
|
-
export const foldingCollapsedIcon = registerIcon('folding-collapsed', Codicon.chevronRight, localize(
|
|
17
|
-
export const foldingManualCollapsedIcon = registerIcon('folding-manual-collapsed', foldingCollapsedIcon, localize(
|
|
18
|
-
export const foldingManualExpandedIcon = registerIcon('folding-manual-expanded', foldingExpandedIcon, localize(
|
|
12
|
+
const foldBackground = registerColor('editor.foldBackground', { light: transparent(editorSelectionBackground, 0.3), dark: transparent(editorSelectionBackground, 0.3), hcDark: null, hcLight: null }, localize(1068, "Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."), true);
|
|
13
|
+
registerColor('editor.foldPlaceholderForeground', { light: '#808080', dark: '#808080', hcDark: null, hcLight: null }, localize(1069, "Color of the collapsed text after the first line of a folded range."));
|
|
14
|
+
registerColor('editorGutter.foldingControlForeground', iconForeground, localize(1070, 'Color of the folding control in the editor gutter.'));
|
|
15
|
+
export const foldingExpandedIcon = registerIcon('folding-expanded', Codicon.chevronDown, localize(1071, 'Icon for expanded ranges in the editor glyph margin.'));
|
|
16
|
+
export const foldingCollapsedIcon = registerIcon('folding-collapsed', Codicon.chevronRight, localize(1072, 'Icon for collapsed ranges in the editor glyph margin.'));
|
|
17
|
+
export const foldingManualCollapsedIcon = registerIcon('folding-manual-collapsed', foldingCollapsedIcon, localize(1073, 'Icon for manually collapsed ranges in the editor glyph margin.'));
|
|
18
|
+
export const foldingManualExpandedIcon = registerIcon('folding-manual-expanded', foldingExpandedIcon, localize(1074, 'Icon for manually expanded ranges in the editor glyph margin.'));
|
|
19
19
|
const foldedBackgroundMinimap = { color: themeColorFromId(foldBackground), position: 1 /* MinimapPosition.Inline */ };
|
|
20
|
-
const collapsed = localize(
|
|
21
|
-
const expanded = localize(
|
|
20
|
+
const collapsed = localize(1075, "Click to expand the range.");
|
|
21
|
+
const expanded = localize(1076, "Click to collapse the range.");
|
|
22
22
|
export class FoldingDecorationProvider {
|
|
23
23
|
static { this.COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({
|
|
24
24
|
description: 'folding-collapsed-visual-decoration',
|
|
@@ -9,7 +9,7 @@ class EditorFontZoomIn extends EditorAction {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: 'editor.action.fontZoomIn',
|
|
12
|
-
label: nls.localize2(
|
|
12
|
+
label: nls.localize2(1077, "Increase Editor Font Size"),
|
|
13
13
|
precondition: undefined
|
|
14
14
|
});
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@ class EditorFontZoomOut extends EditorAction {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'editor.action.fontZoomOut',
|
|
24
|
-
label: nls.localize2(
|
|
24
|
+
label: nls.localize2(1078, "Decrease Editor Font Size"),
|
|
25
25
|
precondition: undefined
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ class EditorFontZoomReset extends EditorAction {
|
|
|
33
33
|
constructor() {
|
|
34
34
|
super({
|
|
35
35
|
id: 'editor.action.fontZoomReset',
|
|
36
|
-
label: nls.localize2(
|
|
36
|
+
label: nls.localize2(1079, "Reset Editor Font Size"),
|
|
37
37
|
precondition: undefined
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -187,7 +187,7 @@ class FormatDocumentAction extends EditorAction {
|
|
|
187
187
|
constructor() {
|
|
188
188
|
super({
|
|
189
189
|
id: 'editor.action.formatDocument',
|
|
190
|
-
label: nls.localize2(
|
|
190
|
+
label: nls.localize2(1080, "Format Document"),
|
|
191
191
|
precondition: ContextKeyExpr.and(EditorContextKeys.notInCompositeEditor, EditorContextKeys.writable, EditorContextKeys.hasDocumentFormattingProvider),
|
|
192
192
|
kbOpts: {
|
|
193
193
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -213,7 +213,7 @@ class FormatSelectionAction extends EditorAction {
|
|
|
213
213
|
constructor() {
|
|
214
214
|
super({
|
|
215
215
|
id: 'editor.action.formatSelection',
|
|
216
|
-
label: nls.localize2(
|
|
216
|
+
label: nls.localize2(1081, "Format Selection"),
|
|
217
217
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasDocumentSelectionFormattingProvider),
|
|
218
218
|
kbOpts: {
|
|
219
219
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -166,7 +166,7 @@ class MarkerNavigationAction extends EditorAction {
|
|
|
166
166
|
}
|
|
167
167
|
export class NextMarkerAction extends MarkerNavigationAction {
|
|
168
168
|
static { this.ID = 'editor.action.marker.next'; }
|
|
169
|
-
static { this.LABEL = nls.localize2(
|
|
169
|
+
static { this.LABEL = nls.localize2(1086, "Go to Next Problem (Error, Warning, Info)"); }
|
|
170
170
|
constructor() {
|
|
171
171
|
super(true, false, {
|
|
172
172
|
id: NextMarkerAction.ID,
|
|
@@ -180,7 +180,7 @@ export class NextMarkerAction extends MarkerNavigationAction {
|
|
|
180
180
|
menuOpts: {
|
|
181
181
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
182
182
|
title: NextMarkerAction.LABEL.value,
|
|
183
|
-
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, nls.localize(
|
|
183
|
+
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, nls.localize(1082, 'Icon for goto next marker.')),
|
|
184
184
|
group: 'navigation',
|
|
185
185
|
order: 1
|
|
186
186
|
}
|
|
@@ -189,7 +189,7 @@ export class NextMarkerAction extends MarkerNavigationAction {
|
|
|
189
189
|
}
|
|
190
190
|
export class PrevMarkerAction extends MarkerNavigationAction {
|
|
191
191
|
static { this.ID = 'editor.action.marker.prev'; }
|
|
192
|
-
static { this.LABEL = nls.localize2(
|
|
192
|
+
static { this.LABEL = nls.localize2(1087, "Go to Previous Problem (Error, Warning, Info)"); }
|
|
193
193
|
constructor() {
|
|
194
194
|
super(false, false, {
|
|
195
195
|
id: PrevMarkerAction.ID,
|
|
@@ -203,7 +203,7 @@ export class PrevMarkerAction extends MarkerNavigationAction {
|
|
|
203
203
|
menuOpts: {
|
|
204
204
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
205
205
|
title: PrevMarkerAction.LABEL.value,
|
|
206
|
-
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, nls.localize(
|
|
206
|
+
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, nls.localize(1083, 'Icon for goto previous marker.')),
|
|
207
207
|
group: 'navigation',
|
|
208
208
|
order: 2
|
|
209
209
|
}
|
|
@@ -215,7 +215,7 @@ export class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
215
215
|
constructor() {
|
|
216
216
|
super(true, true, {
|
|
217
217
|
id: NextMarkerInFilesAction.ID,
|
|
218
|
-
label: nls.localize2(
|
|
218
|
+
label: nls.localize2(1088, "Go to Next Problem in Files (Error, Warning, Info)"),
|
|
219
219
|
precondition: undefined,
|
|
220
220
|
kbOpts: {
|
|
221
221
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -224,7 +224,7 @@ export class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
224
224
|
},
|
|
225
225
|
menuOpts: {
|
|
226
226
|
menuId: MenuId.MenubarGoMenu,
|
|
227
|
-
title: nls.localize(
|
|
227
|
+
title: nls.localize(1084, "Next &&Problem"),
|
|
228
228
|
group: '6_problem_nav',
|
|
229
229
|
order: 1
|
|
230
230
|
}
|
|
@@ -236,7 +236,7 @@ export class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
236
236
|
constructor() {
|
|
237
237
|
super(false, true, {
|
|
238
238
|
id: PrevMarkerInFilesAction.ID,
|
|
239
|
-
label: nls.localize2(
|
|
239
|
+
label: nls.localize2(1089, "Go to Previous Problem in Files (Error, Warning, Info)"),
|
|
240
240
|
precondition: undefined,
|
|
241
241
|
kbOpts: {
|
|
242
242
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -245,7 +245,7 @@ export class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
245
245
|
},
|
|
246
246
|
menuOpts: {
|
|
247
247
|
menuId: MenuId.MenubarGoMenu,
|
|
248
|
-
title: nls.localize(
|
|
248
|
+
title: nls.localize(1085, "Previous &&Problem"),
|
|
249
249
|
group: '6_problem_nav',
|
|
250
250
|
order: 2
|
|
251
251
|
}
|
|
@@ -176,19 +176,19 @@ class MessageWidget {
|
|
|
176
176
|
let severityLabel = '';
|
|
177
177
|
switch (marker.severity) {
|
|
178
178
|
case MarkerSeverity.Error:
|
|
179
|
-
severityLabel = nls.localize(
|
|
179
|
+
severityLabel = nls.localize(1090, "Error");
|
|
180
180
|
break;
|
|
181
181
|
case MarkerSeverity.Warning:
|
|
182
|
-
severityLabel = nls.localize(
|
|
182
|
+
severityLabel = nls.localize(1091, "Warning");
|
|
183
183
|
break;
|
|
184
184
|
case MarkerSeverity.Info:
|
|
185
|
-
severityLabel = nls.localize(
|
|
185
|
+
severityLabel = nls.localize(1092, "Info");
|
|
186
186
|
break;
|
|
187
187
|
case MarkerSeverity.Hint:
|
|
188
|
-
severityLabel = nls.localize(
|
|
188
|
+
severityLabel = nls.localize(1093, "Hint");
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
|
-
let ariaLabel = nls.localize(
|
|
191
|
+
let ariaLabel = nls.localize(1094, "{0}: {1} at {2}. ", severityLabel, marker.message, marker.startLineNumber + ':' + marker.startColumn);
|
|
192
192
|
const model = this._editor.getModel();
|
|
193
193
|
if (model && (marker.startLineNumber <= model.getLineCount()) && (marker.startLineNumber >= 1)) {
|
|
194
194
|
const lineContent = model.getLineContent(marker.startLineNumber);
|
|
@@ -289,8 +289,8 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
289
289
|
const model = this.editor.getModel();
|
|
290
290
|
if (model) {
|
|
291
291
|
const detail = markerCount > 1
|
|
292
|
-
? nls.localize(
|
|
293
|
-
: nls.localize(
|
|
292
|
+
? nls.localize(1095, "{0} of {1} problems", markerIdx, markerCount)
|
|
293
|
+
: nls.localize(1096, "{0} of {1} problem", markerIdx, markerCount);
|
|
294
294
|
this.setTitle(basename(model.uri), detail);
|
|
295
295
|
}
|
|
296
296
|
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
|
|
@@ -334,11 +334,11 @@ export { MarkerNavigationWidget };
|
|
|
334
334
|
const errorDefault = oneOf(editorErrorForeground, editorErrorBorder);
|
|
335
335
|
const warningDefault = oneOf(editorWarningForeground, editorWarningBorder);
|
|
336
336
|
const infoDefault = oneOf(editorInfoForeground, editorInfoBorder);
|
|
337
|
-
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
338
|
-
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
339
|
-
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
340
|
-
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(
|
|
341
|
-
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
342
|
-
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
343
|
-
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(
|
|
337
|
+
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1097, 'Editor marker navigation widget error color.'));
|
|
338
|
+
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(1098, 'Editor marker navigation widget error heading background.'));
|
|
339
|
+
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1099, 'Editor marker navigation widget warning color.'));
|
|
340
|
+
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(1100, 'Editor marker navigation widget warning heading background.'));
|
|
341
|
+
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1101, 'Editor marker navigation widget info color.'));
|
|
342
|
+
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(1102, 'Editor marker navigation widget info heading background.'));
|
|
343
|
+
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(1103, 'Editor marker navigation widget background.'));
|
|
344
344
|
//# sourceMappingURL=gotoErrorWidget.js.map
|