monaco-editor-core 0.54.0-dev-20250910 → 0.54.0-dev-20250911
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/nls.keys.json +1 -1
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +8 -2
- package/esm/vs/base/browser/domSanitize.js +32 -21
- package/esm/vs/base/browser/domSanitize.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js +4 -4
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +6 -6
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -9
- package/esm/vs/editor/browser/controller/mouseHandler.js +6 -6
- package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
- package/esm/vs/editor/browser/coreCommands.js +2 -2
- package/esm/vs/editor/browser/gpu/rectangleRenderer.js +1 -1
- package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/esm/vs/editor/browser/observableCodeEditor.js +1 -1
- package/esm/vs/editor/browser/view/viewController.js +2 -2
- package/esm/vs/editor/browser/view/viewLayer.js +1 -1
- package/esm/vs/editor/browser/view/viewOverlays.js +4 -4
- package/esm/vs/editor/browser/view.js +5 -5
- package/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
- package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
- package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +8 -8
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
- package/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -2
- package/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +2 -2
- package/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
- package/esm/vs/editor/browser/viewParts/margin/margin.js +2 -2
- package/esm/vs/editor/browser/viewParts/minimap/minimap.js +5 -5
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
- package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -4
- package/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
- package/esm/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
- package/esm/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
- package/esm/vs/editor/browser/viewParts/selections/selections.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
- package/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js +6 -6
- package/esm/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +4 -4
- package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +11 -11
- package/esm/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
- package/esm/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -4
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +155 -154
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
- package/esm/vs/editor/common/cursorCommon.js +19 -19
- package/esm/vs/editor/common/editorContextKeys.js +46 -46
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/standalone/standaloneEnums.js +86 -85
- package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +10 -10
- package/esm/vs/editor/common/viewLayout/viewLayout.js +15 -15
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +1 -1
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +14 -14
- 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 +20 -20
- 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/codeActionModel.js +1 -1
- 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/colorDetector.js +3 -3
- 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/hoverColorPickerContribution.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +12 -12
- 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 +12 -12
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
- package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/esm/vs/editor/contrib/find/browser/findWidget.js +32 -32
- package/esm/vs/editor/contrib/folding/browser/folding.js +23 -23
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/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/clickLinkGesture.js +21 -11
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js.map +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -10
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -6
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +5 -5
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +4 -4
- package/esm/vs/editor/contrib/links/browser/links.js +11 -11
- package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
- package/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +36 -36
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
- 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/placeholderText/browser/placeholderTextContribution.js +1 -1
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js.map +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -3
- 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 +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
- 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/stickyScroll/browser/stickyScrollController.js +17 -24
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +12 -3
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js.map +1 -1
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +14 -14
- package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +23 -23
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +5 -5
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +3 -3
- package/esm/vs/editor/contrib/suggest/browser/wordDistance.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 +27 -27
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +7 -7
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -4
- package/esm/vs/editor/editor.api.d.ts +93 -85
- package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +20 -12
- package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +42 -8
- package/esm/vs/platform/quickinput/browser/quickInputActions.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -64
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- 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/common/quickInput.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +93 -85
- package/package.json +2 -2
- package/version.txt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,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC","file":"foldingDecorations.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from '../../../../base/common/codicons.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { IModelDecorationOptions, IModelDecorationsChangeAccessor, MinimapPosition, TrackedRangeStickiness } from '../../../common/model.js';\nimport { ModelDecorationOptions } from '../../../common/model/textModel.js';\nimport { IDecorationProvider } from './foldingModel.js';\nimport { localize } from '../../../../nls.js';\nimport { editorSelectionBackground, iconForeground, registerColor, transparent } from '../../../../platform/theme/common/colorRegistry.js';\nimport { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';\nimport { themeColorFromId } from '../../../../platform/theme/common/themeService.js';\nimport { ThemeIcon } from '../../../../base/common/themables.js';\n\nconst foldBackground = registerColor('editor.foldBackground', { light: transparent(editorSelectionBackground, 0.3), dark: transparent(editorSelectionBackground, 0.3), hcDark: null, hcLight: null }, localize('foldBackgroundBackground', \"Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations.\"), true);\nregisterColor('editor.foldPlaceholderForeground', { light: '#808080', dark: '#808080', hcDark: null, hcLight: null }, localize('collapsedTextColor', \"Color of the collapsed text after the first line of a folded range.\"));\nregisterColor('editorGutter.foldingControlForeground', iconForeground, localize('editorGutter.foldingControlForeground', 'Color of the folding control in the editor gutter.'));\n\nexport const foldingExpandedIcon = registerIcon('folding-expanded', Codicon.chevronDown, localize('foldingExpandedIcon', 'Icon for expanded ranges in the editor glyph margin.'));\nexport const foldingCollapsedIcon = registerIcon('folding-collapsed', Codicon.chevronRight, localize('foldingCollapsedIcon', 'Icon for collapsed ranges in the editor glyph margin.'));\nexport const foldingManualCollapsedIcon = registerIcon('folding-manual-collapsed', foldingCollapsedIcon, localize('foldingManualCollapedIcon', 'Icon for manually collapsed ranges in the editor glyph margin.'));\nexport const foldingManualExpandedIcon = registerIcon('folding-manual-expanded', foldingExpandedIcon, localize('foldingManualExpandedIcon', 'Icon for manually expanded ranges in the editor glyph margin.'));\n\nconst foldedBackgroundMinimap = { color: themeColorFromId(foldBackground), position: MinimapPosition.Inline };\n\nconst collapsed = localize('linesCollapsed', \"Click to expand the range.\");\nconst expanded = localize('linesExpanded', \"Click to collapse the range.\");\n\nexport class FoldingDecorationProvider implements IDecorationProvider {\n\n\tprivate static readonly COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-collapsed-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon),\n\t});\n\n\tprivate static readonly COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-collapsed-highlighted-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon)\n\t});\n\n\tprivate static readonly MANUALLY_COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-collapsed-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)\n\t});\n\n\tprivate static readonly MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-collapsed-highlighted-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)\n\t});\n\n\tprivate static readonly NO_CONTROLS_COLLAPSED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t});\n\n\tprivate static readonly NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t});\n\n\tprivate static readonly EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-expanded-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-expanded-auto-hide-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly MANUALLY_EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-expanded-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingManualExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-expanded-auto-hide-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly NO_CONTROLS_EXPANDED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true\n\t});\n\n\tprivate static readonly HIDDEN_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-hidden-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges\n\t});\n\n\tpublic showFoldingControls: 'always' | 'never' | 'mouseover' = 'mouseover';\n\n\tpublic showFoldingHighlights: boolean = true;\n\n\tconstructor(private readonly editor: ICodeEditor) {\n\t}\n\n\tgetDecorationOption(isCollapsed: boolean, isHidden: boolean, isManual: boolean): IModelDecorationOptions {\n\t\tif (isHidden) { // is inside another collapsed region\n\t\t\treturn FoldingDecorationProvider.HIDDEN_RANGE_DECORATION;\n\t\t}\n\t\tif (this.showFoldingControls === 'never') {\n\t\t\tif (isCollapsed) {\n\t\t\t\treturn this.showFoldingHighlights ? FoldingDecorationProvider.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION : FoldingDecorationProvider.NO_CONTROLS_COLLAPSED_RANGE_DECORATION;\n\t\t\t}\n\t\t\treturn FoldingDecorationProvider.NO_CONTROLS_EXPANDED_RANGE_DECORATION;\n\t\t}\n\t\tif (isCollapsed) {\n\t\t\treturn isManual ?\n\t\t\t\t(this.showFoldingHighlights ? FoldingDecorationProvider.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : FoldingDecorationProvider.MANUALLY_COLLAPSED_VISUAL_DECORATION)\n\t\t\t\t: (this.showFoldingHighlights ? FoldingDecorationProvider.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : FoldingDecorationProvider.COLLAPSED_VISUAL_DECORATION);\n\t\t} else if (this.showFoldingControls === 'mouseover') {\n\t\t\treturn isManual ? FoldingDecorationProvider.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION : FoldingDecorationProvider.EXPANDED_AUTO_HIDE_VISUAL_DECORATION;\n\t\t} else {\n\t\t\treturn isManual ? FoldingDecorationProvider.MANUALLY_EXPANDED_VISUAL_DECORATION : FoldingDecorationProvider.EXPANDED_VISUAL_DECORATION;\n\t\t}\n\t}\n\n\tchangeDecorations<T>(callback: (changeAccessor: IModelDecorationsChangeAccessor) => T): T {\n\t\treturn this.editor.changeDecorations(callback);\n\t}\n\n\tremoveDecorations(decorationIds: string[]): void {\n\t\tthis.editor.removeDecorations(decorationIds);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["vs/editor/contrib/folding/browser/foldingDecorations.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,EAAE,OAAO,EAAE,MAAM,qCA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AI,CAAC,mBAAmB,KAAK,OAAO,EAAE,CAAC;YAC1C,IAAI,WAAW,EAAE,CAAC;gBACjB,OAAO,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,yBAAyB,CAAC,kDAAkD,CAAC,CAAC,CAAC,yBAAyB,CAAC,sCAAsC,CAAC;YACrL,CAAC;YACD,OAAO,yBAAyB,CAAC,qCAAqC,CAAC;QACxE,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YACjB,OAAO,QAAQ,CAAC,CAAC;gBAChB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,yBAAyB,CAAC,gDAAgD,CAAC,CAAC,CAAC,yBAAyB,CAAC,oCAAoC,CAAC;gBAC1K,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,yBAAyB,CAAC,uCAAuC,CAAC,CAAC,CAAC,yBAAyB,CAAC,2BAA2B,CAAC,CAAC;QAC7J,CAAC;aAAM,IAAI,IAAI,CAAC,mBAAmB,KAAK,WAAW,EAAE,CAAC;YACrD,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,6CAA6C,CAAC,CAAC,CAAC,yBAAyB,CAAC,oCAAoC,CAAC;QAC5J,CAAC;aAAM,CAAC;YACP,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,mCAAmC,CAAC,CAAC,CAAC,yBAAyB,CAAC,0BAA0B,CAAC;QACxI,CAAC;IACF,CAAC;IAED,iBAAiB,CAAI,QAAgE;QACpF,OAAO,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAChD,CAAC;IAED,iBAAiB,CAAC,aAAuB;QACxC,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC","file":"foldingDecorations.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport { Codicon } from '../../../../base/common/codicons.js';\nimport { ICodeEditor } from '../../../browser/editorBrowser.js';\nimport { IModelDecorationOptions, IModelDecorationsChangeAccessor, MinimapPosition, TrackedRangeStickiness } from '../../../common/model.js';\nimport { ModelDecorationOptions } from '../../../common/model/textModel.js';\nimport { IDecorationProvider } from './foldingModel.js';\nimport { localize } from '../../../../nls.js';\nimport { editorSelectionBackground, iconForeground, registerColor, transparent } from '../../../../platform/theme/common/colorRegistry.js';\nimport { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';\nimport { themeColorFromId } from '../../../../platform/theme/common/themeService.js';\nimport { ThemeIcon } from '../../../../base/common/themables.js';\n\nconst foldBackground = registerColor('editor.foldBackground', { light: transparent(editorSelectionBackground, 0.3), dark: transparent(editorSelectionBackground, 0.3), hcDark: null, hcLight: null }, localize('foldBackgroundBackground', \"Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations.\"), true);\nregisterColor('editor.foldPlaceholderForeground', { light: '#808080', dark: '#808080', hcDark: null, hcLight: null }, localize('collapsedTextColor', \"Color of the collapsed text after the first line of a folded range.\"));\nregisterColor('editorGutter.foldingControlForeground', iconForeground, localize('editorGutter.foldingControlForeground', 'Color of the folding control in the editor gutter.'));\n\nexport const foldingExpandedIcon = registerIcon('folding-expanded', Codicon.chevronDown, localize('foldingExpandedIcon', 'Icon for expanded ranges in the editor glyph margin.'));\nexport const foldingCollapsedIcon = registerIcon('folding-collapsed', Codicon.chevronRight, localize('foldingCollapsedIcon', 'Icon for collapsed ranges in the editor glyph margin.'));\nexport const foldingManualCollapsedIcon = registerIcon('folding-manual-collapsed', foldingCollapsedIcon, localize('foldingManualCollapedIcon', 'Icon for manually collapsed ranges in the editor glyph margin.'));\nexport const foldingManualExpandedIcon = registerIcon('folding-manual-expanded', foldingExpandedIcon, localize('foldingManualExpandedIcon', 'Icon for manually expanded ranges in the editor glyph margin.'));\n\nconst foldedBackgroundMinimap = { color: themeColorFromId(foldBackground), position: MinimapPosition.Inline };\n\nconst collapsed = localize('linesCollapsed', \"Click to expand the range.\");\nconst expanded = localize('linesExpanded', \"Click to collapse the range.\");\n\nexport class FoldingDecorationProvider implements IDecorationProvider {\n\n\tprivate static readonly COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-collapsed-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon),\n\t});\n\n\tprivate static readonly COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-collapsed-highlighted-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingCollapsedIcon)\n\t});\n\n\tprivate static readonly MANUALLY_COLLAPSED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-collapsed-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)\n\t});\n\n\tprivate static readonly MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-collapsed-highlighted-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualCollapsedIcon)\n\t});\n\n\tprivate static readonly NO_CONTROLS_COLLAPSED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t});\n\n\tprivate static readonly NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tafterContentClassName: 'inline-folded',\n\t\tclassName: 'folded-background',\n\t\tminimap: foldedBackgroundMinimap,\n\t\tisWholeLine: true,\n\t\tlinesDecorationsTooltip: collapsed,\n\t});\n\n\tprivate static readonly EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-expanded-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-expanded-auto-hide-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly MANUALLY_EXPANDED_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-expanded-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: 'alwaysShowFoldIcons ' + ThemeIcon.asClassName(foldingManualExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-manually-expanded-auto-hide-visual-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true,\n\t\tfirstLineDecorationClassName: ThemeIcon.asClassName(foldingManualExpandedIcon),\n\t\tlinesDecorationsTooltip: expanded,\n\t});\n\n\tprivate static readonly NO_CONTROLS_EXPANDED_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-no-controls-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,\n\t\tisWholeLine: true\n\t});\n\n\tprivate static readonly HIDDEN_RANGE_DECORATION = ModelDecorationOptions.register({\n\t\tdescription: 'folding-hidden-range-decoration',\n\t\tstickiness: TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges\n\t});\n\n\tpublic showFoldingControls: 'always' | 'never' | 'mouseover' = 'mouseover';\n\n\tpublic showFoldingHighlights: boolean = true;\n\n\tconstructor(private readonly editor: ICodeEditor) {\n\t}\n\n\tgetDecorationOption(isCollapsed: boolean, isHidden: boolean, isManual: boolean): IModelDecorationOptions {\n\t\tif (isHidden) { // is inside another collapsed region\n\t\t\treturn FoldingDecorationProvider.HIDDEN_RANGE_DECORATION;\n\t\t}\n\t\tif (this.showFoldingControls === 'never') {\n\t\t\tif (isCollapsed) {\n\t\t\t\treturn this.showFoldingHighlights ? FoldingDecorationProvider.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION : FoldingDecorationProvider.NO_CONTROLS_COLLAPSED_RANGE_DECORATION;\n\t\t\t}\n\t\t\treturn FoldingDecorationProvider.NO_CONTROLS_EXPANDED_RANGE_DECORATION;\n\t\t}\n\t\tif (isCollapsed) {\n\t\t\treturn isManual ?\n\t\t\t\t(this.showFoldingHighlights ? FoldingDecorationProvider.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : FoldingDecorationProvider.MANUALLY_COLLAPSED_VISUAL_DECORATION)\n\t\t\t\t: (this.showFoldingHighlights ? FoldingDecorationProvider.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION : FoldingDecorationProvider.COLLAPSED_VISUAL_DECORATION);\n\t\t} else if (this.showFoldingControls === 'mouseover') {\n\t\t\treturn isManual ? FoldingDecorationProvider.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION : FoldingDecorationProvider.EXPANDED_AUTO_HIDE_VISUAL_DECORATION;\n\t\t} else {\n\t\t\treturn isManual ? FoldingDecorationProvider.MANUALLY_EXPANDED_VISUAL_DECORATION : FoldingDecorationProvider.EXPANDED_VISUAL_DECORATION;\n\t\t}\n\t}\n\n\tchangeDecorations<T>(callback: (changeAccessor: IModelDecorationsChangeAccessor) => T): T {\n\t\treturn this.editor.changeDecorations(callback);\n\t}\n\n\tremoveDecorations(decorationIds: string[]): void {\n\t\tthis.editor.removeDecorations(decorationIds);\n\t}\n}\n"]}
|
|
@@ -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(1004, "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(1005, "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(1006, "Reset Editor Font Size"),
|
|
37
37
|
precondition: undefined
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -185,7 +185,7 @@ class FormatDocumentAction extends EditorAction {
|
|
|
185
185
|
constructor() {
|
|
186
186
|
super({
|
|
187
187
|
id: 'editor.action.formatDocument',
|
|
188
|
-
label: nls.localize2(
|
|
188
|
+
label: nls.localize2(1007, "Format Document"),
|
|
189
189
|
precondition: ContextKeyExpr.and(EditorContextKeys.notInCompositeEditor, EditorContextKeys.writable, EditorContextKeys.hasDocumentFormattingProvider),
|
|
190
190
|
kbOpts: {
|
|
191
191
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -211,7 +211,7 @@ class FormatSelectionAction extends EditorAction {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super({
|
|
213
213
|
id: 'editor.action.formatSelection',
|
|
214
|
-
label: nls.localize2(
|
|
214
|
+
label: nls.localize2(1008, "Format Selection"),
|
|
215
215
|
precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasDocumentSelectionFormattingProvider),
|
|
216
216
|
kbOpts: {
|
|
217
217
|
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(1013, "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(1009, '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
|
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(1014, "Go to Previous Problem (Error, Warning, Info)"); }
|
|
193
193
|
constructor() {
|
|
194
194
|
super(false, false, {
|
|
195
195
|
id: PrevMarkerAction.ID,
|
|
@@ -203,7 +203,7 @@ 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(1010, 'Icon for goto previous marker.')),
|
|
207
207
|
group: 'navigation',
|
|
208
208
|
order: 2
|
|
209
209
|
}
|
|
@@ -214,7 +214,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
214
214
|
constructor() {
|
|
215
215
|
super(true, true, {
|
|
216
216
|
id: 'editor.action.marker.nextInFiles',
|
|
217
|
-
label: nls.localize2(
|
|
217
|
+
label: nls.localize2(1015, "Go to Next Problem in Files (Error, Warning, Info)"),
|
|
218
218
|
precondition: undefined,
|
|
219
219
|
kbOpts: {
|
|
220
220
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -223,7 +223,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
223
223
|
},
|
|
224
224
|
menuOpts: {
|
|
225
225
|
menuId: MenuId.MenubarGoMenu,
|
|
226
|
-
title: nls.localize(
|
|
226
|
+
title: nls.localize(1011, "Next &&Problem"),
|
|
227
227
|
group: '6_problem_nav',
|
|
228
228
|
order: 1
|
|
229
229
|
}
|
|
@@ -234,7 +234,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
234
234
|
constructor() {
|
|
235
235
|
super(false, true, {
|
|
236
236
|
id: 'editor.action.marker.prevInFiles',
|
|
237
|
-
label: nls.localize2(
|
|
237
|
+
label: nls.localize2(1016, "Go to Previous Problem in Files (Error, Warning, Info)"),
|
|
238
238
|
precondition: undefined,
|
|
239
239
|
kbOpts: {
|
|
240
240
|
kbExpr: EditorContextKeys.focus,
|
|
@@ -243,7 +243,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
243
243
|
},
|
|
244
244
|
menuOpts: {
|
|
245
245
|
menuId: MenuId.MenubarGoMenu,
|
|
246
|
-
title: nls.localize(
|
|
246
|
+
title: nls.localize(1012, "Previous &&Problem"),
|
|
247
247
|
group: '6_problem_nav',
|
|
248
248
|
order: 2
|
|
249
249
|
}
|
|
@@ -174,19 +174,19 @@ class MessageWidget {
|
|
|
174
174
|
let severityLabel = '';
|
|
175
175
|
switch (marker.severity) {
|
|
176
176
|
case MarkerSeverity.Error:
|
|
177
|
-
severityLabel = nls.localize(
|
|
177
|
+
severityLabel = nls.localize(1017, "Error");
|
|
178
178
|
break;
|
|
179
179
|
case MarkerSeverity.Warning:
|
|
180
|
-
severityLabel = nls.localize(
|
|
180
|
+
severityLabel = nls.localize(1018, "Warning");
|
|
181
181
|
break;
|
|
182
182
|
case MarkerSeverity.Info:
|
|
183
|
-
severityLabel = nls.localize(
|
|
183
|
+
severityLabel = nls.localize(1019, "Info");
|
|
184
184
|
break;
|
|
185
185
|
case MarkerSeverity.Hint:
|
|
186
|
-
severityLabel = nls.localize(
|
|
186
|
+
severityLabel = nls.localize(1020, "Hint");
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
|
-
let ariaLabel = nls.localize(
|
|
189
|
+
let ariaLabel = nls.localize(1021, "{0} at {1}. ", severityLabel, marker.startLineNumber + ':' + marker.startColumn);
|
|
190
190
|
const model = this._editor.getModel();
|
|
191
191
|
if (model && (marker.startLineNumber <= model.getLineCount()) && (marker.startLineNumber >= 1)) {
|
|
192
192
|
const lineContent = model.getLineContent(marker.startLineNumber);
|
|
@@ -286,8 +286,8 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
286
286
|
const model = this.editor.getModel();
|
|
287
287
|
if (model) {
|
|
288
288
|
const detail = markerCount > 1
|
|
289
|
-
? nls.localize(
|
|
290
|
-
: nls.localize(
|
|
289
|
+
? nls.localize(1022, "{0} of {1} problems", markerIdx, markerCount)
|
|
290
|
+
: nls.localize(1023, "{0} of {1} problem", markerIdx, markerCount);
|
|
291
291
|
this.setTitle(basename(model.uri), detail);
|
|
292
292
|
}
|
|
293
293
|
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
|
|
@@ -331,11 +331,11 @@ export { MarkerNavigationWidget };
|
|
|
331
331
|
const errorDefault = oneOf(editorErrorForeground, editorErrorBorder);
|
|
332
332
|
const warningDefault = oneOf(editorWarningForeground, editorWarningBorder);
|
|
333
333
|
const infoDefault = oneOf(editorInfoForeground, editorInfoBorder);
|
|
334
|
-
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
335
|
-
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
336
|
-
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
337
|
-
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(
|
|
338
|
-
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
339
|
-
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
340
|
-
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(
|
|
334
|
+
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1024, 'Editor marker navigation widget error color.'));
|
|
335
|
+
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(1025, 'Editor marker navigation widget error heading background.'));
|
|
336
|
+
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1026, 'Editor marker navigation widget warning color.'));
|
|
337
|
+
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(1027, 'Editor marker navigation widget warning heading background.'));
|
|
338
|
+
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1028, 'Editor marker navigation widget info color.'));
|
|
339
|
+
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(1029, 'Editor marker navigation widget info heading background.'));
|
|
340
|
+
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(1030, 'Editor marker navigation widget background.'));
|
|
341
341
|
//# sourceMappingURL=gotoErrorWidget.js.map
|
|
@@ -34,7 +34,7 @@ import { Iterable } from '../../../../base/common/iterator.js';
|
|
|
34
34
|
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
|
|
35
35
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
36
36
|
submenu: MenuId.EditorContextPeek,
|
|
37
|
-
title: nls.localize(
|
|
37
|
+
title: nls.localize(1031, "Peek"),
|
|
38
38
|
group: 'navigation',
|
|
39
39
|
order: 100
|
|
40
40
|
});
|
|
@@ -203,12 +203,12 @@ export class SymbolNavigationAction extends EditorAction2 {
|
|
|
203
203
|
//#region --- DEFINITION
|
|
204
204
|
export class DefinitionAction extends SymbolNavigationAction {
|
|
205
205
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
206
|
-
return new ReferencesModel(await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token), nls.localize(
|
|
206
|
+
return new ReferencesModel(await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token), nls.localize(1032, 'Definitions'));
|
|
207
207
|
}
|
|
208
208
|
_getNoResultFoundMessage(info) {
|
|
209
209
|
return info && info.word
|
|
210
|
-
? nls.localize(
|
|
211
|
-
: nls.localize(
|
|
210
|
+
? nls.localize(1033, "No definition found for '{0}'", info.word)
|
|
211
|
+
: nls.localize(1034, "No definition found");
|
|
212
212
|
}
|
|
213
213
|
_getAlternativeCommand(editor) {
|
|
214
214
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeDefinitionCommand;
|
|
@@ -227,8 +227,8 @@ registerAction2(class GoToDefinitionAction extends DefinitionAction {
|
|
|
227
227
|
}, {
|
|
228
228
|
id: GoToDefinitionAction.id,
|
|
229
229
|
title: {
|
|
230
|
-
...nls.localize2(
|
|
231
|
-
mnemonicTitle: nls.localize(
|
|
230
|
+
...nls.localize2(1058, "Go to Definition"),
|
|
231
|
+
mnemonicTitle: nls.localize(1035, "Go to &&Definition"),
|
|
232
232
|
},
|
|
233
233
|
precondition: EditorContextKeys.hasDefinitionProvider,
|
|
234
234
|
keybinding: [{
|
|
@@ -263,7 +263,7 @@ registerAction2(class OpenDefinitionToSideAction extends DefinitionAction {
|
|
|
263
263
|
muteMessage: false
|
|
264
264
|
}, {
|
|
265
265
|
id: OpenDefinitionToSideAction.id,
|
|
266
|
-
title: nls.localize2(
|
|
266
|
+
title: nls.localize2(1059, "Open Definition to the Side"),
|
|
267
267
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDefinitionProvider, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
268
268
|
keybinding: [{
|
|
269
269
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -287,7 +287,7 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
287
287
|
muteMessage: false
|
|
288
288
|
}, {
|
|
289
289
|
id: PeekDefinitionAction.id,
|
|
290
|
-
title: nls.localize2(
|
|
290
|
+
title: nls.localize2(1060, "Peek Definition"),
|
|
291
291
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDefinitionProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
292
292
|
keybinding: {
|
|
293
293
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -308,12 +308,12 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
308
308
|
//#region --- DECLARATION
|
|
309
309
|
class DeclarationAction extends SymbolNavigationAction {
|
|
310
310
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
311
|
-
return new ReferencesModel(await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token), nls.localize(
|
|
311
|
+
return new ReferencesModel(await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token), nls.localize(1036, 'Declarations'));
|
|
312
312
|
}
|
|
313
313
|
_getNoResultFoundMessage(info) {
|
|
314
314
|
return info && info.word
|
|
315
|
-
? nls.localize(
|
|
316
|
-
: nls.localize(
|
|
315
|
+
? nls.localize(1037, "No declaration found for '{0}'", info.word)
|
|
316
|
+
: nls.localize(1038, "No declaration found");
|
|
317
317
|
}
|
|
318
318
|
_getAlternativeCommand(editor) {
|
|
319
319
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeDeclarationCommand;
|
|
@@ -332,8 +332,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
332
332
|
}, {
|
|
333
333
|
id: GoToDeclarationAction.id,
|
|
334
334
|
title: {
|
|
335
|
-
...nls.localize2(
|
|
336
|
-
mnemonicTitle: nls.localize(
|
|
335
|
+
...nls.localize2(1061, "Go to Declaration"),
|
|
336
|
+
mnemonicTitle: nls.localize(1039, "Go to &&Declaration"),
|
|
337
337
|
},
|
|
338
338
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDeclarationProvider, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
339
339
|
menu: [{
|
|
@@ -350,8 +350,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
350
350
|
}
|
|
351
351
|
_getNoResultFoundMessage(info) {
|
|
352
352
|
return info && info.word
|
|
353
|
-
? nls.localize(
|
|
354
|
-
: nls.localize(
|
|
353
|
+
? nls.localize(1040, "No declaration found for '{0}'", info.word)
|
|
354
|
+
: nls.localize(1041, "No declaration found");
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
@@ -362,7 +362,7 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
362
362
|
muteMessage: false
|
|
363
363
|
}, {
|
|
364
364
|
id: 'editor.action.peekDeclaration',
|
|
365
|
-
title: nls.localize2(
|
|
365
|
+
title: nls.localize2(1062, "Peek Declaration"),
|
|
366
366
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDeclarationProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
367
367
|
menu: {
|
|
368
368
|
id: MenuId.EditorContextPeek,
|
|
@@ -376,12 +376,12 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
376
376
|
//#region --- TYPE DEFINITION
|
|
377
377
|
class TypeDefinitionAction extends SymbolNavigationAction {
|
|
378
378
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
379
|
-
return new ReferencesModel(await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token), nls.localize(
|
|
379
|
+
return new ReferencesModel(await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token), nls.localize(1042, 'Type Definitions'));
|
|
380
380
|
}
|
|
381
381
|
_getNoResultFoundMessage(info) {
|
|
382
382
|
return info && info.word
|
|
383
|
-
? nls.localize(
|
|
384
|
-
: nls.localize(
|
|
383
|
+
? nls.localize(1043, "No type definition found for '{0}'", info.word)
|
|
384
|
+
: nls.localize(1044, "No type definition found");
|
|
385
385
|
}
|
|
386
386
|
_getAlternativeCommand(editor) {
|
|
387
387
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeTypeDefinitionCommand;
|
|
@@ -400,8 +400,8 @@ registerAction2(class GoToTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
400
400
|
}, {
|
|
401
401
|
id: GoToTypeDefinitionAction.ID,
|
|
402
402
|
title: {
|
|
403
|
-
...nls.localize2(
|
|
404
|
-
mnemonicTitle: nls.localize(
|
|
403
|
+
...nls.localize2(1063, "Go to Type Definition"),
|
|
404
|
+
mnemonicTitle: nls.localize(1045, "Go to &&Type Definition"),
|
|
405
405
|
},
|
|
406
406
|
precondition: EditorContextKeys.hasTypeDefinitionProvider,
|
|
407
407
|
keybinding: {
|
|
@@ -431,7 +431,7 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
431
431
|
muteMessage: false
|
|
432
432
|
}, {
|
|
433
433
|
id: PeekTypeDefinitionAction.ID,
|
|
434
|
-
title: nls.localize2(
|
|
434
|
+
title: nls.localize2(1064, "Peek Type Definition"),
|
|
435
435
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasTypeDefinitionProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
436
436
|
menu: {
|
|
437
437
|
id: MenuId.EditorContextPeek,
|
|
@@ -445,12 +445,12 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
445
445
|
//#region --- IMPLEMENTATION
|
|
446
446
|
class ImplementationAction extends SymbolNavigationAction {
|
|
447
447
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
448
|
-
return new ReferencesModel(await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token), nls.localize(
|
|
448
|
+
return new ReferencesModel(await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token), nls.localize(1046, 'Implementations'));
|
|
449
449
|
}
|
|
450
450
|
_getNoResultFoundMessage(info) {
|
|
451
451
|
return info && info.word
|
|
452
|
-
? nls.localize(
|
|
453
|
-
: nls.localize(
|
|
452
|
+
? nls.localize(1047, "No implementation found for '{0}'", info.word)
|
|
453
|
+
: nls.localize(1048, "No implementation found");
|
|
454
454
|
}
|
|
455
455
|
_getAlternativeCommand(editor) {
|
|
456
456
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeImplementationCommand;
|
|
@@ -469,8 +469,8 @@ registerAction2(class GoToImplementationAction extends ImplementationAction {
|
|
|
469
469
|
}, {
|
|
470
470
|
id: GoToImplementationAction.ID,
|
|
471
471
|
title: {
|
|
472
|
-
...nls.localize2(
|
|
473
|
-
mnemonicTitle: nls.localize(
|
|
472
|
+
...nls.localize2(1065, "Go to Implementations"),
|
|
473
|
+
mnemonicTitle: nls.localize(1049, "Go to &&Implementations"),
|
|
474
474
|
},
|
|
475
475
|
precondition: EditorContextKeys.hasImplementationProvider,
|
|
476
476
|
keybinding: {
|
|
@@ -500,7 +500,7 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
500
500
|
muteMessage: false
|
|
501
501
|
}, {
|
|
502
502
|
id: PeekImplementationAction.ID,
|
|
503
|
-
title: nls.localize2(
|
|
503
|
+
title: nls.localize2(1066, "Peek Implementations"),
|
|
504
504
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasImplementationProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
505
505
|
keybinding: {
|
|
506
506
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -520,8 +520,8 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
520
520
|
class ReferencesAction extends SymbolNavigationAction {
|
|
521
521
|
_getNoResultFoundMessage(info) {
|
|
522
522
|
return info
|
|
523
|
-
? nls.localize(
|
|
524
|
-
: nls.localize(
|
|
523
|
+
? nls.localize(1050, "No references found for '{0}'", info.word)
|
|
524
|
+
: nls.localize(1051, "No references found");
|
|
525
525
|
}
|
|
526
526
|
_getAlternativeCommand(editor) {
|
|
527
527
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeReferenceCommand;
|
|
@@ -539,8 +539,8 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
539
539
|
}, {
|
|
540
540
|
id: 'editor.action.goToReferences',
|
|
541
541
|
title: {
|
|
542
|
-
...nls.localize2(
|
|
543
|
-
mnemonicTitle: nls.localize(
|
|
542
|
+
...nls.localize2(1067, "Go to References"),
|
|
543
|
+
mnemonicTitle: nls.localize(1052, "Go to &&References"),
|
|
544
544
|
},
|
|
545
545
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasReferenceProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
546
546
|
keybinding: {
|
|
@@ -561,7 +561,7 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
564
|
-
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token), nls.localize(
|
|
564
|
+
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token), nls.localize(1053, 'References'));
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
@@ -572,7 +572,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
572
572
|
muteMessage: false
|
|
573
573
|
}, {
|
|
574
574
|
id: 'editor.action.referenceSearch.trigger',
|
|
575
|
-
title: nls.localize2(
|
|
575
|
+
title: nls.localize2(1068, "Peek References"),
|
|
576
576
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasReferenceProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
577
577
|
menu: {
|
|
578
578
|
id: MenuId.EditorContextPeek,
|
|
@@ -582,7 +582,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
585
|
-
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token), nls.localize(
|
|
585
|
+
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token), nls.localize(1054, 'References'));
|
|
586
586
|
}
|
|
587
587
|
});
|
|
588
588
|
//#endregion
|
|
@@ -591,17 +591,17 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
591
591
|
constructor(config, _references, _gotoMultipleBehaviour) {
|
|
592
592
|
super(config, {
|
|
593
593
|
id: 'editor.action.goToLocation',
|
|
594
|
-
title: nls.localize2(
|
|
594
|
+
title: nls.localize2(1069, "Go to Any Symbol"),
|
|
595
595
|
precondition: ContextKeyExpr.and(PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
596
596
|
});
|
|
597
597
|
this._references = _references;
|
|
598
598
|
this._gotoMultipleBehaviour = _gotoMultipleBehaviour;
|
|
599
599
|
}
|
|
600
600
|
async _getLocationModel(languageFeaturesService, _model, _position, _token) {
|
|
601
|
-
return new ReferencesModel(this._references, nls.localize(
|
|
601
|
+
return new ReferencesModel(this._references, nls.localize(1055, 'Locations'));
|
|
602
602
|
}
|
|
603
603
|
_getNoResultFoundMessage(info) {
|
|
604
|
-
return info && nls.localize(
|
|
604
|
+
return info && nls.localize(1056, "No results for '{0}'", info.word) || '';
|
|
605
605
|
}
|
|
606
606
|
_getGoToPreference(editor) {
|
|
607
607
|
return this._gotoMultipleBehaviour ?? editor.getOption(67 /* EditorOption.gotoLocation */).multipleReferences;
|
|
@@ -680,7 +680,7 @@ CommandsRegistry.registerCommand({
|
|
|
680
680
|
if (!controller) {
|
|
681
681
|
return undefined;
|
|
682
682
|
}
|
|
683
|
-
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), corePosition.Position.lift(position), false, false, token).then(references => new ReferencesModel(references, nls.localize(
|
|
683
|
+
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), corePosition.Position.lift(position), false, false, token).then(references => new ReferencesModel(references, nls.localize(1057, 'References'))));
|
|
684
684
|
const range = new Range(position.lineNumber, position.column, position.lineNumber, position.column);
|
|
685
685
|
return Promise.resolve(controller.toggleWidget(range, references, false));
|
|
686
686
|
});
|
|
@@ -17,7 +17,14 @@ export class ClickLinkMouseEvent {
|
|
|
17
17
|
this.isLeftClick = source.event.leftButton;
|
|
18
18
|
this.isMiddleClick = source.event.middleButton;
|
|
19
19
|
this.isRightClick = source.event.rightButton;
|
|
20
|
+
this.mouseMiddleClickAction = opts.mouseMiddleClickAction;
|
|
20
21
|
this.hasTriggerModifier = hasModifier(source.event, opts.triggerModifier);
|
|
22
|
+
if (this.isMiddleClick && opts.mouseMiddleClickAction === 'ctrlLeftClick') {
|
|
23
|
+
// Redirect middle click to left click with modifier
|
|
24
|
+
this.isMiddleClick = false;
|
|
25
|
+
this.isLeftClick = true;
|
|
26
|
+
this.hasTriggerModifier = true;
|
|
27
|
+
}
|
|
21
28
|
this.hasSideBySideModifier = hasModifier(source.event, opts.triggerSideBySideModifier);
|
|
22
29
|
this.isNoneOrSingleMouseDown = (source.event.detail <= 1);
|
|
23
30
|
}
|
|
@@ -33,7 +40,8 @@ export class ClickLinkKeyboardEvent {
|
|
|
33
40
|
}
|
|
34
41
|
}
|
|
35
42
|
export class ClickLinkOptions {
|
|
36
|
-
constructor(triggerKey, triggerModifier, triggerSideBySideKey, triggerSideBySideModifier) {
|
|
43
|
+
constructor(triggerKey, triggerModifier, triggerSideBySideKey, triggerSideBySideModifier, mouseMiddleClickAction) {
|
|
44
|
+
this.mouseMiddleClickAction = mouseMiddleClickAction;
|
|
37
45
|
this.triggerKey = triggerKey;
|
|
38
46
|
this.triggerModifier = triggerModifier;
|
|
39
47
|
this.triggerSideBySideKey = triggerSideBySideKey;
|
|
@@ -43,20 +51,21 @@ export class ClickLinkOptions {
|
|
|
43
51
|
return (this.triggerKey === other.triggerKey
|
|
44
52
|
&& this.triggerModifier === other.triggerModifier
|
|
45
53
|
&& this.triggerSideBySideKey === other.triggerSideBySideKey
|
|
46
|
-
&& this.triggerSideBySideModifier === other.triggerSideBySideModifier
|
|
54
|
+
&& this.triggerSideBySideModifier === other.triggerSideBySideModifier
|
|
55
|
+
&& this.mouseMiddleClickAction === other.mouseMiddleClickAction);
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
|
-
function createOptions(multiCursorModifier) {
|
|
58
|
+
function createOptions(multiCursorModifier, mouseMiddleClickAction) {
|
|
50
59
|
if (multiCursorModifier === 'altKey') {
|
|
51
60
|
if (platform.isMacintosh) {
|
|
52
|
-
return new ClickLinkOptions(57 /* KeyCode.Meta */, 'metaKey', 6 /* KeyCode.Alt */, 'altKey');
|
|
61
|
+
return new ClickLinkOptions(57 /* KeyCode.Meta */, 'metaKey', 6 /* KeyCode.Alt */, 'altKey', mouseMiddleClickAction);
|
|
53
62
|
}
|
|
54
|
-
return new ClickLinkOptions(5 /* KeyCode.Ctrl */, 'ctrlKey', 6 /* KeyCode.Alt */, 'altKey');
|
|
63
|
+
return new ClickLinkOptions(5 /* KeyCode.Ctrl */, 'ctrlKey', 6 /* KeyCode.Alt */, 'altKey', mouseMiddleClickAction);
|
|
55
64
|
}
|
|
56
65
|
if (platform.isMacintosh) {
|
|
57
|
-
return new ClickLinkOptions(6 /* KeyCode.Alt */, 'altKey', 57 /* KeyCode.Meta */, 'metaKey');
|
|
66
|
+
return new ClickLinkOptions(6 /* KeyCode.Alt */, 'altKey', 57 /* KeyCode.Meta */, 'metaKey', mouseMiddleClickAction);
|
|
58
67
|
}
|
|
59
|
-
return new ClickLinkOptions(6 /* KeyCode.Alt */, 'altKey', 5 /* KeyCode.Ctrl */, 'ctrlKey');
|
|
68
|
+
return new ClickLinkOptions(6 /* KeyCode.Alt */, 'altKey', 5 /* KeyCode.Ctrl */, 'ctrlKey', mouseMiddleClickAction);
|
|
60
69
|
}
|
|
61
70
|
export class ClickLinkGesture extends Disposable {
|
|
62
71
|
constructor(editor, opts) {
|
|
@@ -69,13 +78,13 @@ export class ClickLinkGesture extends Disposable {
|
|
|
69
78
|
this.onCancel = this._onCancel.event;
|
|
70
79
|
this._editor = editor;
|
|
71
80
|
this._extractLineNumberFromMouseEvent = opts?.extractLineNumberFromMouseEvent ?? ((e) => e.target.position ? e.target.position.lineNumber : 0);
|
|
72
|
-
this._opts = createOptions(this._editor.getOption(86 /* EditorOption.multiCursorModifier */));
|
|
81
|
+
this._opts = createOptions(this._editor.getOption(86 /* EditorOption.multiCursorModifier */), this._editor.getOption(87 /* EditorOption.mouseMiddleClickAction */));
|
|
73
82
|
this._lastMouseMoveEvent = null;
|
|
74
83
|
this._hasTriggerKeyOnMouseDown = false;
|
|
75
84
|
this._lineNumberOnMouseDown = 0;
|
|
76
85
|
this._register(this._editor.onDidChangeConfiguration((e) => {
|
|
77
|
-
if (e.hasChanged(86 /* EditorOption.multiCursorModifier */)) {
|
|
78
|
-
const newOpts = createOptions(this._editor.getOption(86 /* EditorOption.multiCursorModifier */));
|
|
86
|
+
if (e.hasChanged(86 /* EditorOption.multiCursorModifier */) || e.hasChanged(87 /* EditorOption.mouseMiddleClickAction */)) {
|
|
87
|
+
const newOpts = createOptions(this._editor.getOption(86 /* EditorOption.multiCursorModifier */), this._editor.getOption(87 /* EditorOption.mouseMiddleClickAction */));
|
|
79
88
|
if (this._opts.equals(newOpts)) {
|
|
80
89
|
return;
|
|
81
90
|
}
|
|
@@ -120,7 +129,8 @@ export class ClickLinkGesture extends Disposable {
|
|
|
120
129
|
}
|
|
121
130
|
_onEditorMouseUp(mouseEvent) {
|
|
122
131
|
const currentLineNumber = this._extractLineNumberFromMouseEvent(mouseEvent);
|
|
123
|
-
|
|
132
|
+
const lineNumbersCorrect = !!this._lineNumberOnMouseDown && this._lineNumberOnMouseDown === currentLineNumber;
|
|
133
|
+
if (lineNumbersCorrect && (this._hasTriggerKeyOnMouseDown || (mouseEvent.isMiddleClick && mouseEvent.mouseMiddleClickAction === 'openLink'))) {
|
|
124
134
|
this._onExecute.fire(mouseEvent);
|
|
125
135
|
}
|
|
126
136
|
}
|