monaco-editor-core 0.54.0-dev-20250910 → 0.54.0-dev-20250912
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/browser/ui/menu/menu.js +2 -0
- package/esm/vs/base/browser/ui/menu/menu.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/observableInternal/index.js +3 -0
- package/esm/vs/base/common/observableInternal/index.js.map +1 -1
- package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +71 -0
- package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js.map +1 -0
- package/esm/vs/base/common/observableInternal/observables/baseObservable.js +4 -0
- package/esm/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -1
- package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
- package/esm/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
- package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
- package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
- package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
- package/esm/vs/base/common/observableInternal/reactions/autorunImpl.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/commands.js +12 -1
- package/esm/vs/editor/browser/widget/diffEditor/commands.js.map +1 -1
- 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/diffEditorWidget.js +25 -0
- package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
- 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/core/ranges/lineRange.js +3 -0
- package/esm/vs/editor/common/core/ranges/lineRange.js.map +1 -1
- 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/components/gutterIndicatorView.js +4 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +2 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +1 -0
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js.map +1 -1
- 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 +21 -13
- 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 +10 -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/browser/tree/quickInputTreeController.js +12 -0
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +11 -5
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +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 +6 -2
- package/version.txt +1 -1
|
@@ -24,7 +24,7 @@ import { createDecorator } from '../../../../platform/instantiation/common/insta
|
|
|
24
24
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
25
25
|
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
26
26
|
import { INotificationService } from '../../../../platform/notification/common/notification.js';
|
|
27
|
-
export const ctxHasSymbols = new RawContextKey('hasSymbols', false, localize(
|
|
27
|
+
export const ctxHasSymbols = new RawContextKey('hasSymbols', false, localize(1088, "Whether there are symbol locations that can be navigated via keyboard-only."));
|
|
28
28
|
export const ISymbolNavigationService = createDecorator('ISymbolNavigationService');
|
|
29
29
|
let SymbolNavigationService = class SymbolNavigationService {
|
|
30
30
|
constructor(contextKeyService, _editorService, _notificationService, _keybindingService) {
|
|
@@ -110,8 +110,8 @@ let SymbolNavigationService = class SymbolNavigationService {
|
|
|
110
110
|
this._currentMessage?.close();
|
|
111
111
|
const kb = this._keybindingService.lookupKeybinding('editor.gotoNextSymbolFromResult');
|
|
112
112
|
const message = kb
|
|
113
|
-
? localize(
|
|
114
|
-
: localize(
|
|
113
|
+
? localize(1089, "Symbol {0} of {1}, {2} for next", this._currentIdx + 1, this._currentModel.references.length, kb.getLabel())
|
|
114
|
+
: localize(1090, "Symbol {0} of {1}", this._currentIdx + 1, this._currentModel.references.length);
|
|
115
115
|
this._currentMessage = this._notificationService.status(message);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
@@ -21,7 +21,7 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'editor.action.debugEditorGpuRenderer',
|
|
24
|
-
label: localize2(
|
|
24
|
+
label: localize2(1094, "Developer: Debug Editor GPU Renderer"),
|
|
25
25
|
// TODO: Why doesn't `ContextKeyExpr.equals('config:editor.experimentalGpuAcceleration', 'on')` work?
|
|
26
26
|
precondition: ContextKeyExpr.true(),
|
|
27
27
|
});
|
|
@@ -31,15 +31,15 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
31
31
|
const quickInputService = accessor.get(IQuickInputService);
|
|
32
32
|
const choice = await quickInputService.pick([
|
|
33
33
|
{
|
|
34
|
-
label: localize(
|
|
34
|
+
label: localize(1091, "Log Texture Atlas Stats"),
|
|
35
35
|
id: 'logTextureAtlasStats',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
label: localize(
|
|
38
|
+
label: localize(1092, "Save Texture Atlas"),
|
|
39
39
|
id: 'saveTextureAtlas',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
label: localize(
|
|
42
|
+
label: localize(1093, "Draw Glyph"),
|
|
43
43
|
id: 'drawGlyph',
|
|
44
44
|
},
|
|
45
45
|
], { canPickMany: false });
|
|
@@ -15,7 +15,7 @@ export const PAGE_DOWN_HOVER_ACTION_ID = 'editor.action.pageDownHover';
|
|
|
15
15
|
export const GO_TO_TOP_HOVER_ACTION_ID = 'editor.action.goToTopHover';
|
|
16
16
|
export const GO_TO_BOTTOM_HOVER_ACTION_ID = 'editor.action.goToBottomHover';
|
|
17
17
|
export const INCREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.increaseHoverVerbosityLevel';
|
|
18
|
-
export const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(
|
|
18
|
+
export const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(1095, "Increase Hover Verbosity Level");
|
|
19
19
|
export const DECREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.decreaseHoverVerbosityLevel';
|
|
20
|
-
export const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(
|
|
20
|
+
export const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(1096, "Decrease Hover Verbosity Level");
|
|
21
21
|
//# sourceMappingURL=hoverActionIds.js.map
|
|
@@ -22,7 +22,7 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: SHOW_OR_FOCUS_HOVER_ACTION_ID,
|
|
25
|
-
label: nls.localize2(
|
|
25
|
+
label: nls.localize2(1100, "Show or Focus Hover"),
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -31,7 +31,7 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
metadata: {
|
|
34
|
-
description: nls.localize2(
|
|
34
|
+
description: nls.localize2(1101, 'Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position.'),
|
|
35
35
|
args: [{
|
|
36
36
|
name: 'args',
|
|
37
37
|
schema: {
|
|
@@ -41,9 +41,9 @@ export class ShowOrFocusHoverAction extends EditorAction {
|
|
|
41
41
|
description: 'Controls if and when the hover should take focus upon being triggered by this action.',
|
|
42
42
|
enum: [HoverFocusBehavior.NoAutoFocus, HoverFocusBehavior.FocusIfVisible, HoverFocusBehavior.AutoFocusImmediately],
|
|
43
43
|
enumDescriptions: [
|
|
44
|
-
nls.localize(
|
|
45
|
-
nls.localize(
|
|
46
|
-
nls.localize(
|
|
44
|
+
nls.localize(1097, 'The hover will not automatically take focus.'),
|
|
45
|
+
nls.localize(1098, 'The hover will take focus only if it is already visible.'),
|
|
46
|
+
nls.localize(1099, 'The hover will automatically take focus when it appears.'),
|
|
47
47
|
],
|
|
48
48
|
default: HoverFocusBehavior.FocusIfVisible,
|
|
49
49
|
}
|
|
@@ -98,7 +98,7 @@ export class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
98
98
|
constructor() {
|
|
99
99
|
super({
|
|
100
100
|
id: SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID,
|
|
101
|
-
label: nls.localize2(
|
|
101
|
+
label: nls.localize2(1102, "Show Definition Preview Hover"),
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
@@ -107,7 +107,7 @@ export class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
107
107
|
|
|
108
108
|
precondition: undefined,
|
|
109
109
|
metadata: {
|
|
110
|
-
description: nls.localize2(
|
|
110
|
+
description: nls.localize2(1103, 'Show the definition preview hover in the editor.'),
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -135,7 +135,7 @@ export class HideContentHoverAction extends EditorAction {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super({
|
|
137
137
|
id: HIDE_HOVER_ACTION_ID,
|
|
138
|
-
label: nls.localize2(
|
|
138
|
+
label: nls.localize2(1104, "Hide Hover"),
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
|
|
@@ -151,7 +151,7 @@ export class ScrollUpHoverAction extends EditorAction {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: SCROLL_UP_HOVER_ACTION_ID,
|
|
154
|
-
label: nls.localize2(
|
|
154
|
+
label: nls.localize2(1105, "Scroll Up Hover"),
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
@@ -164,7 +164,7 @@ export class ScrollUpHoverAction extends EditorAction {
|
|
|
164
164
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
165
165
|
},
|
|
166
166
|
metadata: {
|
|
167
|
-
description: nls.localize2(
|
|
167
|
+
description: nls.localize2(1106, 'Scroll up the editor hover.')
|
|
168
168
|
},
|
|
169
169
|
});
|
|
170
170
|
}
|
|
@@ -180,7 +180,7 @@ export class ScrollDownHoverAction extends EditorAction {
|
|
|
180
180
|
constructor() {
|
|
181
181
|
super({
|
|
182
182
|
id: SCROLL_DOWN_HOVER_ACTION_ID,
|
|
183
|
-
label: nls.localize2(
|
|
183
|
+
label: nls.localize2(1107, "Scroll Down Hover"),
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
|
|
@@ -193,7 +193,7 @@ export class ScrollDownHoverAction extends EditorAction {
|
|
|
193
193
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
194
194
|
},
|
|
195
195
|
metadata: {
|
|
196
|
-
description: nls.localize2(
|
|
196
|
+
description: nls.localize2(1108, 'Scroll down the editor hover.'),
|
|
197
197
|
},
|
|
198
198
|
});
|
|
199
199
|
}
|
|
@@ -209,7 +209,7 @@ export class ScrollLeftHoverAction extends EditorAction {
|
|
|
209
209
|
constructor() {
|
|
210
210
|
super({
|
|
211
211
|
id: SCROLL_LEFT_HOVER_ACTION_ID,
|
|
212
|
-
label: nls.localize2(
|
|
212
|
+
label: nls.localize2(1109, "Scroll Left Hover"),
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
|
|
@@ -222,7 +222,7 @@ export class ScrollLeftHoverAction extends EditorAction {
|
|
|
222
222
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
223
223
|
},
|
|
224
224
|
metadata: {
|
|
225
|
-
description: nls.localize2(
|
|
225
|
+
description: nls.localize2(1110, 'Scroll left the editor hover.'),
|
|
226
226
|
},
|
|
227
227
|
});
|
|
228
228
|
}
|
|
@@ -238,7 +238,7 @@ export class ScrollRightHoverAction extends EditorAction {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: SCROLL_RIGHT_HOVER_ACTION_ID,
|
|
241
|
-
label: nls.localize2(
|
|
241
|
+
label: nls.localize2(1111, "Scroll Right Hover"),
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
|
|
@@ -251,7 +251,7 @@ export class ScrollRightHoverAction extends EditorAction {
|
|
|
251
251
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
252
252
|
},
|
|
253
253
|
metadata: {
|
|
254
|
-
description: nls.localize2(
|
|
254
|
+
description: nls.localize2(1112, 'Scroll right the editor hover.')
|
|
255
255
|
},
|
|
256
256
|
});
|
|
257
257
|
}
|
|
@@ -267,7 +267,7 @@ export class PageUpHoverAction extends EditorAction {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: PAGE_UP_HOVER_ACTION_ID,
|
|
270
|
-
label: nls.localize2(
|
|
270
|
+
label: nls.localize2(1113, "Page Up Hover"),
|
|
271
271
|
|
|
272
272
|
|
|
273
273
|
|
|
@@ -281,7 +281,7 @@ export class PageUpHoverAction extends EditorAction {
|
|
|
281
281
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
282
282
|
},
|
|
283
283
|
metadata: {
|
|
284
|
-
description: nls.localize2(
|
|
284
|
+
description: nls.localize2(1114, 'Page up the editor hover.'),
|
|
285
285
|
},
|
|
286
286
|
});
|
|
287
287
|
}
|
|
@@ -297,7 +297,7 @@ export class PageDownHoverAction extends EditorAction {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: PAGE_DOWN_HOVER_ACTION_ID,
|
|
300
|
-
label: nls.localize2(
|
|
300
|
+
label: nls.localize2(1115, "Page Down Hover"),
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
|
|
@@ -311,7 +311,7 @@ export class PageDownHoverAction extends EditorAction {
|
|
|
311
311
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
312
312
|
},
|
|
313
313
|
metadata: {
|
|
314
|
-
description: nls.localize2(
|
|
314
|
+
description: nls.localize2(1116, 'Page down the editor hover.'),
|
|
315
315
|
},
|
|
316
316
|
});
|
|
317
317
|
}
|
|
@@ -327,7 +327,7 @@ export class GoToTopHoverAction extends EditorAction {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: GO_TO_TOP_HOVER_ACTION_ID,
|
|
330
|
-
label: nls.localize2(
|
|
330
|
+
label: nls.localize2(1117, "Go To Top Hover"),
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
|
|
@@ -341,7 +341,7 @@ export class GoToTopHoverAction extends EditorAction {
|
|
|
341
341
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
342
342
|
},
|
|
343
343
|
metadata: {
|
|
344
|
-
description: nls.localize2(
|
|
344
|
+
description: nls.localize2(1118, 'Go to the top of the editor hover.'),
|
|
345
345
|
},
|
|
346
346
|
});
|
|
347
347
|
}
|
|
@@ -357,7 +357,7 @@ export class GoToBottomHoverAction extends EditorAction {
|
|
|
357
357
|
constructor() {
|
|
358
358
|
super({
|
|
359
359
|
id: GO_TO_BOTTOM_HOVER_ACTION_ID,
|
|
360
|
-
label: nls.localize2(
|
|
360
|
+
label: nls.localize2(1119, "Go To Bottom Hover"),
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
@@ -371,7 +371,7 @@ export class GoToBottomHoverAction extends EditorAction {
|
|
|
371
371
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
372
372
|
},
|
|
373
373
|
metadata: {
|
|
374
|
-
description: nls.localize2(
|
|
374
|
+
description: nls.localize2(1120, 'Go to the bottom of the editor hover.')
|
|
375
375
|
},
|
|
376
376
|
});
|
|
377
377
|
}
|
|
@@ -37,8 +37,8 @@ import { AsyncIterableProducer } from '../../../../base/common/async.js';
|
|
|
37
37
|
import { getHoverProviderResultsAsAsyncIterable } from './getHover.js';
|
|
38
38
|
import { ICommandService } from '../../../../platform/commands/common/commands.js';
|
|
39
39
|
const $ = dom.$;
|
|
40
|
-
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, nls.localize(
|
|
41
|
-
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, nls.localize(
|
|
40
|
+
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, nls.localize(1121, 'Icon for increaseing hover verbosity.'));
|
|
41
|
+
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, nls.localize(1122, 'Icon for decreasing hover verbosity.'));
|
|
42
42
|
export class MarkdownHover {
|
|
43
43
|
constructor(owner, range, contents, isBeforeContent, ordinal, source = undefined) {
|
|
44
44
|
this.owner = owner;
|
|
@@ -82,7 +82,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
82
82
|
this.hoverOrdinal = 3;
|
|
83
83
|
}
|
|
84
84
|
createLoadingMessage(anchor) {
|
|
85
|
-
return new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(nls.localize(
|
|
85
|
+
return new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(nls.localize(1123, "Loading..."))], false, 2000);
|
|
86
86
|
}
|
|
87
87
|
computeSync(anchor, lineDecorations) {
|
|
88
88
|
if (!this._editor.hasModel() || anchor.type !== 1 /* HoverAnchorType.Range */) {
|
|
@@ -95,7 +95,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
95
95
|
let index = 1000;
|
|
96
96
|
const lineLength = model.getLineLength(lineNumber);
|
|
97
97
|
const languageId = model.getLanguageIdAtPosition(anchor.range.startLineNumber, anchor.range.startColumn);
|
|
98
|
-
const stopRenderingLineAfter = this._editor.getOption(
|
|
98
|
+
const stopRenderingLineAfter = this._editor.getOption(133 /* EditorOption.stopRenderingLineAfter */);
|
|
99
99
|
const maxTokenizationLineLength = this._configurationService.getValue('editor.maxTokenizationLineLength', {
|
|
100
100
|
overrideIdentifier: languageId
|
|
101
101
|
});
|
|
@@ -103,12 +103,12 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
103
103
|
if (stopRenderingLineAfter >= 0 && lineLength > stopRenderingLineAfter && anchor.range.startColumn >= stopRenderingLineAfter) {
|
|
104
104
|
stopRenderingMessage = true;
|
|
105
105
|
result.push(new MarkdownHover(this, anchor.range, [{
|
|
106
|
-
value: nls.localize(
|
|
106
|
+
value: nls.localize(1124, "Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")
|
|
107
107
|
}], false, index++));
|
|
108
108
|
}
|
|
109
109
|
if (!stopRenderingMessage && typeof maxTokenizationLineLength === 'number' && lineLength >= maxTokenizationLineLength) {
|
|
110
110
|
result.push(new MarkdownHover(this, anchor.range, [{
|
|
111
|
-
value: nls.localize(
|
|
111
|
+
value: nls.localize(1125, "Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")
|
|
112
112
|
}], false, index++));
|
|
113
113
|
}
|
|
114
114
|
let isBeforeContent = false;
|
|
@@ -393,14 +393,14 @@ export function labelForHoverVerbosityAction(keybindingService, action) {
|
|
|
393
393
|
case HoverVerbosityAction.Increase: {
|
|
394
394
|
const kb = keybindingService.lookupKeybinding(INCREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
395
395
|
return kb ?
|
|
396
|
-
nls.localize(
|
|
397
|
-
nls.localize(
|
|
396
|
+
nls.localize(1126, "Increase Hover Verbosity ({0})", kb.getLabel()) :
|
|
397
|
+
nls.localize(1127, "Increase Hover Verbosity");
|
|
398
398
|
}
|
|
399
399
|
case HoverVerbosityAction.Decrease: {
|
|
400
400
|
const kb = keybindingService.lookupKeybinding(DECREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
401
401
|
return kb ?
|
|
402
|
-
nls.localize(
|
|
403
|
-
nls.localize(
|
|
402
|
+
nls.localize(1128, "Decrease Hover Verbosity ({0})", kb.getLabel()) :
|
|
403
|
+
nls.localize(1129, "Decrease Hover Verbosity");
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -169,7 +169,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
169
169
|
const markerController = MarkerController.get(this._editor);
|
|
170
170
|
if (markerController) {
|
|
171
171
|
context.statusBar.addAction({
|
|
172
|
-
label: nls.localize(
|
|
172
|
+
label: nls.localize(1130, "View Problem"),
|
|
173
173
|
commandId: NextMarkerAction.ID,
|
|
174
174
|
run: () => {
|
|
175
175
|
context.hide();
|
|
@@ -179,19 +179,19 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
if (!this._editor.getOption(
|
|
182
|
+
if (!this._editor.getOption(104 /* EditorOption.readOnly */)) {
|
|
183
183
|
const quickfixPlaceholderElement = context.statusBar.append($('div'));
|
|
184
184
|
if (this.recentMarkerCodeActionsInfo) {
|
|
185
185
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
186
186
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
187
|
-
quickfixPlaceholderElement.textContent = nls.localize(
|
|
187
|
+
quickfixPlaceholderElement.textContent = nls.localize(1131, "No quick fixes available");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
else {
|
|
191
191
|
this.recentMarkerCodeActionsInfo = undefined;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = nls.localize(
|
|
194
|
+
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = nls.localize(1132, "Checking for quick fixes..."), 200, disposables);
|
|
195
195
|
if (!quickfixPlaceholderElement.textContent) {
|
|
196
196
|
// Have some content in here to avoid flickering
|
|
197
197
|
quickfixPlaceholderElement.textContent = String.fromCharCode(0xA0); //
|
|
@@ -203,7 +203,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
203
203
|
this.recentMarkerCodeActionsInfo = { marker: markerHover.marker, hasCodeActions: actions.validActions.length > 0 };
|
|
204
204
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
205
205
|
actions.dispose();
|
|
206
|
-
quickfixPlaceholderElement.textContent = nls.localize(
|
|
206
|
+
quickfixPlaceholderElement.textContent = nls.localize(1133, "No quick fixes available");
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
quickfixPlaceholderElement.style.display = 'none';
|
|
@@ -214,7 +214,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
214
214
|
}
|
|
215
215
|
}));
|
|
216
216
|
context.statusBar.addAction({
|
|
217
|
-
label: nls.localize(
|
|
217
|
+
label: nls.localize(1134, "Quick Fix..."),
|
|
218
218
|
commandId: quickFixCommandId,
|
|
219
219
|
run: (target) => {
|
|
220
220
|
showing = true;
|
|
@@ -107,7 +107,7 @@ class InPlaceReplaceUp extends EditorAction {
|
|
|
107
107
|
constructor() {
|
|
108
108
|
super({
|
|
109
109
|
id: 'editor.action.inPlaceReplace.up',
|
|
110
|
-
label: nls.localize2(
|
|
110
|
+
label: nls.localize2(1228, "Replace with Previous Value"),
|
|
111
111
|
precondition: EditorContextKeys.writable,
|
|
112
112
|
kbOpts: {
|
|
113
113
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -128,7 +128,7 @@ class InPlaceReplaceDown extends EditorAction {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: 'editor.action.inPlaceReplace.down',
|
|
131
|
-
label: nls.localize2(
|
|
131
|
+
label: nls.localize2(1229, "Replace with Next Value"),
|
|
132
132
|
precondition: EditorContextKeys.writable,
|
|
133
133
|
kbOpts: {
|
|
134
134
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -30,10 +30,10 @@ export class IndentationToSpacesAction extends EditorAction {
|
|
|
30
30
|
constructor() {
|
|
31
31
|
super({
|
|
32
32
|
id: IndentationToSpacesAction.ID,
|
|
33
|
-
label: nls.localize2(
|
|
33
|
+
label: nls.localize2(1139, "Convert Indentation to Spaces"),
|
|
34
34
|
precondition: EditorContextKeys.writable,
|
|
35
35
|
metadata: {
|
|
36
|
-
description: nls.localize2(
|
|
36
|
+
description: nls.localize2(1140, "Convert the tab indentation to spaces."),
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -61,10 +61,10 @@ export class IndentationToTabsAction extends EditorAction {
|
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: IndentationToTabsAction.ID,
|
|
64
|
-
label: nls.localize2(
|
|
64
|
+
label: nls.localize2(1141, "Convert Indentation to Tabs"),
|
|
65
65
|
precondition: EditorContextKeys.writable,
|
|
66
66
|
metadata: {
|
|
67
|
-
description: nls.localize2(
|
|
67
|
+
description: nls.localize2(1142, "Convert the spaces indentation to tabs."),
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -107,17 +107,17 @@ export class ChangeIndentationSizeAction extends EditorAction {
|
|
|
107
107
|
label: n.toString(),
|
|
108
108
|
// add description for tabSize value set in the configuration
|
|
109
109
|
description: (n === creationOpts.tabSize && n === modelOpts.tabSize
|
|
110
|
-
? nls.localize(
|
|
110
|
+
? nls.localize(1135, "Configured Tab Size")
|
|
111
111
|
: n === creationOpts.tabSize
|
|
112
|
-
? nls.localize(
|
|
112
|
+
? nls.localize(1136, "Default Tab Size")
|
|
113
113
|
: n === modelOpts.tabSize
|
|
114
|
-
? nls.localize(
|
|
114
|
+
? nls.localize(1137, "Current Tab Size")
|
|
115
115
|
: undefined)
|
|
116
116
|
}));
|
|
117
117
|
// auto focus the tabSize set for the current editor
|
|
118
118
|
const autoFocusIndex = Math.min(model.getOptions().tabSize - 1, 7);
|
|
119
119
|
setTimeout(() => {
|
|
120
|
-
quickInputService.pick(picks, { placeHolder: nls.localize(
|
|
120
|
+
quickInputService.pick(picks, { placeHolder: nls.localize(1138, "Select Tab Size for Current File"), activeItem: picks[autoFocusIndex] }).then(pick => {
|
|
121
121
|
if (pick) {
|
|
122
122
|
if (model && !model.isDisposed()) {
|
|
123
123
|
const pickedVal = parseInt(pick.label, 10);
|
|
@@ -144,10 +144,10 @@ export class IndentUsingTabs extends ChangeIndentationSizeAction {
|
|
|
144
144
|
constructor() {
|
|
145
145
|
super(false, false, {
|
|
146
146
|
id: IndentUsingTabs.ID,
|
|
147
|
-
label: nls.localize2(
|
|
147
|
+
label: nls.localize2(1143, "Indent Using Tabs"),
|
|
148
148
|
precondition: undefined,
|
|
149
149
|
metadata: {
|
|
150
|
-
description: nls.localize2(
|
|
150
|
+
description: nls.localize2(1144, "Use indentation with tabs."),
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -157,10 +157,10 @@ export class IndentUsingSpaces extends ChangeIndentationSizeAction {
|
|
|
157
157
|
constructor() {
|
|
158
158
|
super(true, false, {
|
|
159
159
|
id: IndentUsingSpaces.ID,
|
|
160
|
-
label: nls.localize2(
|
|
160
|
+
label: nls.localize2(1145, "Indent Using Spaces"),
|
|
161
161
|
precondition: undefined,
|
|
162
162
|
metadata: {
|
|
163
|
-
description: nls.localize2(
|
|
163
|
+
description: nls.localize2(1146, "Use indentation with spaces."),
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
}
|
|
@@ -170,10 +170,10 @@ export class ChangeTabDisplaySize extends ChangeIndentationSizeAction {
|
|
|
170
170
|
constructor() {
|
|
171
171
|
super(true, true, {
|
|
172
172
|
id: ChangeTabDisplaySize.ID,
|
|
173
|
-
label: nls.localize2(
|
|
173
|
+
label: nls.localize2(1147, "Change Tab Display Size"),
|
|
174
174
|
precondition: undefined,
|
|
175
175
|
metadata: {
|
|
176
|
-
description: nls.localize2(
|
|
176
|
+
description: nls.localize2(1148, "Change the space size equivalent of the tab."),
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
}
|
|
@@ -183,10 +183,10 @@ export class DetectIndentation extends EditorAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: DetectIndentation.ID,
|
|
186
|
-
label: nls.localize2(
|
|
186
|
+
label: nls.localize2(1149, "Detect Indentation from Content"),
|
|
187
187
|
precondition: undefined,
|
|
188
188
|
metadata: {
|
|
189
|
-
description: nls.localize2(
|
|
189
|
+
description: nls.localize2(1150, "Detect the indentation from content."),
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
}
|
|
@@ -204,10 +204,10 @@ export class ReindentLinesAction extends EditorAction {
|
|
|
204
204
|
constructor() {
|
|
205
205
|
super({
|
|
206
206
|
id: 'editor.action.reindentlines',
|
|
207
|
-
label: nls.localize2(
|
|
207
|
+
label: nls.localize2(1151, "Reindent Lines"),
|
|
208
208
|
precondition: EditorContextKeys.writable,
|
|
209
209
|
metadata: {
|
|
210
|
-
description: nls.localize2(
|
|
210
|
+
description: nls.localize2(1152, "Reindent the lines of the editor."),
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
}
|
|
@@ -229,10 +229,10 @@ export class ReindentSelectedLinesAction extends EditorAction {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: 'editor.action.reindentselectedlines',
|
|
232
|
-
label: nls.localize2(
|
|
232
|
+
label: nls.localize2(1153, "Reindent Selected Lines"),
|
|
233
233
|
precondition: EditorContextKeys.writable,
|
|
234
234
|
metadata: {
|
|
235
|
-
description: nls.localize2(
|
|
235
|
+
description: nls.localize2(1154, "Reindent the selected lines of the editor."),
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -108,7 +108,7 @@ let InlayHintsController = class InlayHintsController {
|
|
|
108
108
|
this._disposables.add(_editor.onDidChangeModel(() => this._update()));
|
|
109
109
|
this._disposables.add(_editor.onDidChangeModelLanguage(() => this._update()));
|
|
110
110
|
this._disposables.add(_editor.onDidChangeConfiguration(e => {
|
|
111
|
-
if (e.hasChanged(
|
|
111
|
+
if (e.hasChanged(159 /* EditorOption.inlayHints */)) {
|
|
112
112
|
this._update();
|
|
113
113
|
}
|
|
114
114
|
}));
|
|
@@ -122,7 +122,7 @@ let InlayHintsController = class InlayHintsController {
|
|
|
122
122
|
_update() {
|
|
123
123
|
this._sessionDisposables.clear();
|
|
124
124
|
this._removeAllDecorations();
|
|
125
|
-
const options = this._editor.getOption(
|
|
125
|
+
const options = this._editor.getOption(159 /* EditorOption.inlayHints */);
|
|
126
126
|
if (options.enabled === 'off') {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -231,7 +231,7 @@ let InlayHintsController = class InlayHintsController {
|
|
|
231
231
|
scheduler.schedule();
|
|
232
232
|
}));
|
|
233
233
|
this._sessionDisposables.add(this._editor.onDidChangeConfiguration(e => {
|
|
234
|
-
if (e.hasChanged(
|
|
234
|
+
if (e.hasChanged(159 /* EditorOption.inlayHints */)) {
|
|
235
235
|
scheduler.schedule();
|
|
236
236
|
}
|
|
237
237
|
}));
|
|
@@ -469,7 +469,7 @@ let InlayHintsController = class InlayHintsController {
|
|
|
469
469
|
};
|
|
470
470
|
//
|
|
471
471
|
const { fontSize, fontFamily, padding, isUniform } = this._getLayoutInfo();
|
|
472
|
-
const maxLength = this._editor.getOption(
|
|
472
|
+
const maxLength = this._editor.getOption(159 /* EditorOption.inlayHints */).maximumLength;
|
|
473
473
|
const fontFamilyVar = '--code-editorInlayHintsFontFamily';
|
|
474
474
|
this._editor.getContainerDomNode().style.setProperty(fontFamilyVar, fontFamily);
|
|
475
475
|
let currentLineInfo = { line: 0, totalLen: 0 };
|
|
@@ -605,7 +605,7 @@ let InlayHintsController = class InlayHintsController {
|
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
_getLayoutInfo() {
|
|
608
|
-
const options = this._editor.getOption(
|
|
608
|
+
const options = this._editor.getOption(159 /* EditorOption.inlayHints */);
|
|
609
609
|
const padding = options.padding;
|
|
610
610
|
const editorFontSize = this._editor.getOption(61 /* EditorOption.fontSize */);
|
|
611
611
|
const editorFontFamily = this._editor.getOption(58 /* EditorOption.fontFamily */);
|
|
@@ -83,7 +83,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
83
83
|
}
|
|
84
84
|
// (1.2) Inlay dbl-click gesture
|
|
85
85
|
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
|
86
|
-
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(
|
|
86
|
+
executor.emitOne(new MarkdownHover(this, anchor.range, [new MarkdownString().appendText(localize(1155, "Double-click to insert"))], false, 10001));
|
|
87
87
|
}
|
|
88
88
|
// (2) Inlay Label Part Tooltip
|
|
89
89
|
let partTooltip;
|
|
@@ -102,19 +102,19 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
102
102
|
const useMetaKey = this._editor.getOption(86 /* EditorOption.multiCursorModifier */) === 'altKey';
|
|
103
103
|
const kb = useMetaKey
|
|
104
104
|
? platform.isMacintosh
|
|
105
|
-
? localize(
|
|
106
|
-
: localize(
|
|
105
|
+
? localize(1156, "cmd + click")
|
|
106
|
+
: localize(1157, "ctrl + click")
|
|
107
107
|
: platform.isMacintosh
|
|
108
|
-
? localize(
|
|
109
|
-
: localize(
|
|
108
|
+
? localize(1158, "option + click")
|
|
109
|
+
: localize(1159, "alt + click");
|
|
110
110
|
if (part.part.location && part.part.command) {
|
|
111
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
111
|
+
linkHint = new MarkdownString().appendText(localize(1160, 'Go to Definition ({0}), right click for more', kb));
|
|
112
112
|
}
|
|
113
113
|
else if (part.part.location) {
|
|
114
|
-
linkHint = new MarkdownString().appendText(localize(
|
|
114
|
+
linkHint = new MarkdownString().appendText(localize(1161, 'Go to Definition ({0})', kb));
|
|
115
115
|
}
|
|
116
116
|
else if (part.part.command) {
|
|
117
|
-
linkHint = new MarkdownString(`[${localize(
|
|
117
|
+
linkHint = new MarkdownString(`[${localize(1162, "Execute Command")}](${asCommandLink(part.part.command)} "${part.part.command.title}") (${kb})`, { isTrusted: true });
|
|
118
118
|
}
|
|
119
119
|
if (linkHint) {
|
|
120
120
|
executor.emitOne(new MarkdownHover(this, anchor.range, [linkHint], false, 10000));
|
|
@@ -64,7 +64,7 @@ export async function showGoToContextMenu(accessor, editor, anchor, part) {
|
|
|
64
64
|
}));
|
|
65
65
|
}
|
|
66
66
|
// show context menu
|
|
67
|
-
const useShadowDOM = editor.getOption(
|
|
67
|
+
const useShadowDOM = editor.getOption(144 /* EditorOption.useShadowDOM */);
|
|
68
68
|
contextMenuService.showContextMenu({
|
|
69
69
|
domForShadowRoot: useShadowDOM ? editor.getDomNode() ?? undefined : undefined,
|
|
70
70
|
getAnchor: () => {
|
|
@@ -85,7 +85,7 @@ export async function goToDefinitionWithLocation(accessor, event, editor, locati
|
|
|
85
85
|
const openToSide = event.hasSideBySideModifier;
|
|
86
86
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
87
87
|
const isInPeek = PeekContext.inPeekEditor.getValue(contextKeyService);
|
|
88
|
-
const canPeek = !openToSide && editor.getOption(
|
|
88
|
+
const canPeek = !openToSide && editor.getOption(101 /* EditorOption.definitionLinkOpensInPeek */) && !isInPeek;
|
|
89
89
|
const action = new DefinitionAction({ openToSide, openInPeek: canPeek, muteMessage: true }, { title: { value: '', original: '' }, id: '', precondition: undefined });
|
|
90
90
|
return action.run(accessor, new SymbolNavigationAnchor(ref.object.textEditorModel, Range.getStartPosition(location.range)), Range.lift(location.range));
|
|
91
91
|
});
|