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 +1 -1
|
@@ -25,7 +25,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
25
25
|
'editor.codeActionWidget.showHeaders': {
|
|
26
26
|
type: 'boolean',
|
|
27
27
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
28
|
-
description: nls.localize(
|
|
28
|
+
description: nls.localize(854, "Enable/disable showing group headers in the Code Action menu."),
|
|
29
29
|
default: true,
|
|
30
30
|
},
|
|
31
31
|
}
|
|
@@ -36,7 +36,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
36
36
|
'editor.codeActionWidget.includeNearbyQuickFixes': {
|
|
37
37
|
type: 'boolean',
|
|
38
38
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
39
|
-
description: nls.localize(
|
|
39
|
+
description: nls.localize(855, "Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),
|
|
40
40
|
default: true,
|
|
41
41
|
},
|
|
42
42
|
}
|
|
@@ -47,7 +47,7 @@ Registry.as(Extensions.Configuration).registerConfiguration({
|
|
|
47
47
|
'editor.codeActions.triggerOnFocusChange': {
|
|
48
48
|
type: 'boolean',
|
|
49
49
|
scope: 6 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */,
|
|
50
|
-
markdownDescription: nls.localize(
|
|
50
|
+
markdownDescription: nls.localize(856, 'Enable triggering {0} when {1} is set to {2}. Code Actions must be set to {3} to be triggered for window and focus changes.', '`#editor.codeActionsOnSave#`', '`#files.autoSave#`', '`afterDelay`', '`always`'),
|
|
51
51
|
default: false,
|
|
52
52
|
},
|
|
53
53
|
}
|
|
@@ -267,7 +267,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
267
267
|
const diagnostic = diagnostics[0];
|
|
268
268
|
if (diagnostic.startLineNumber && diagnostic.startColumn) {
|
|
269
269
|
const selectionText = this._editor.getModel()?.getWordAtPosition({ lineNumber: diagnostic.startLineNumber, column: diagnostic.startColumn })?.word;
|
|
270
|
-
aria.status(localize(
|
|
270
|
+
aria.status(localize(857, "Context: {0} at line {1} and column {2}.", selectionText, diagnostic.startLineNumber, diagnostic.startColumn));
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -310,7 +310,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
310
310
|
if (options.includeDisabledActions && actions.validActions.length > 0 && actions.allActions.length !== actions.validActions.length) {
|
|
311
311
|
resultActions.push(this._showDisabled ? {
|
|
312
312
|
id: 'hideMoreActions',
|
|
313
|
-
label: localize(
|
|
313
|
+
label: localize(858, 'Hide Disabled'),
|
|
314
314
|
enabled: true,
|
|
315
315
|
tooltip: '',
|
|
316
316
|
class: undefined,
|
|
@@ -320,7 +320,7 @@ let CodeActionController = class CodeActionController extends Disposable {
|
|
|
320
320
|
}
|
|
321
321
|
} : {
|
|
322
322
|
id: 'showMoreActions',
|
|
323
|
-
label: localize(
|
|
323
|
+
label: localize(859, 'Show Disabled'),
|
|
324
324
|
enabled: true,
|
|
325
325
|
tooltip: '',
|
|
326
326
|
class: undefined,
|
|
@@ -8,15 +8,15 @@ import { CodeActionKind } from '../common/types.js';
|
|
|
8
8
|
import '../../symbolIcons/browser/symbolIcons.js'; // The codicon symbol colors are defined here and must be loaded to get colors
|
|
9
9
|
import { localize } from '../../../../nls.js';
|
|
10
10
|
import { HierarchicalKind } from '../../../../base/common/hierarchicalKind.js';
|
|
11
|
-
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(
|
|
11
|
+
const uncategorizedCodeActionGroup = Object.freeze({ kind: HierarchicalKind.Empty, title: localize(860, 'More Actions...') });
|
|
12
12
|
const codeActionGroups = Object.freeze([
|
|
13
|
-
{ kind: CodeActionKind.QuickFix, title: localize(
|
|
14
|
-
{ kind: CodeActionKind.RefactorExtract, title: localize(
|
|
15
|
-
{ kind: CodeActionKind.RefactorInline, title: localize(
|
|
16
|
-
{ kind: CodeActionKind.RefactorRewrite, title: localize(
|
|
17
|
-
{ kind: CodeActionKind.RefactorMove, title: localize(
|
|
18
|
-
{ kind: CodeActionKind.SurroundWith, title: localize(
|
|
19
|
-
{ kind: CodeActionKind.Source, title: localize(
|
|
13
|
+
{ kind: CodeActionKind.QuickFix, title: localize(861, 'Quick Fix') },
|
|
14
|
+
{ kind: CodeActionKind.RefactorExtract, title: localize(862, 'Extract'), icon: Codicon.wrench },
|
|
15
|
+
{ kind: CodeActionKind.RefactorInline, title: localize(863, 'Inline'), icon: Codicon.wrench },
|
|
16
|
+
{ kind: CodeActionKind.RefactorRewrite, title: localize(864, 'Rewrite'), icon: Codicon.wrench },
|
|
17
|
+
{ kind: CodeActionKind.RefactorMove, title: localize(865, 'Move'), icon: Codicon.wrench },
|
|
18
|
+
{ kind: CodeActionKind.SurroundWith, title: localize(866, 'Surround With'), icon: Codicon.surroundWith },
|
|
19
|
+
{ kind: CodeActionKind.Source, title: localize(867, 'Source Action'), icon: Codicon.symbolFile },
|
|
20
20
|
uncategorizedCodeActionGroup,
|
|
21
21
|
]);
|
|
22
22
|
export function toMenuItems(inputCodeActions, showHeaders, keybindingResolver) {
|
|
@@ -169,7 +169,7 @@ export class CodeActionModel extends Disposable {
|
|
|
169
169
|
const model = this._editor.getModel();
|
|
170
170
|
if (model
|
|
171
171
|
&& this._registry.has(model)
|
|
172
|
-
&& !this._editor.getOption(
|
|
172
|
+
&& !this._editor.getOption(104 /* EditorOption.readOnly */)) {
|
|
173
173
|
const supportedActions = this._registry.all(model).flatMap(provider => provider.providedCodeActionKinds ?? []);
|
|
174
174
|
this._supportedCodeActions.set(supportedActions.join(' '));
|
|
175
175
|
this._codeActionOracle.value = new CodeActionOracle(this._editor, this._markerService, trigger => {
|
|
@@ -27,11 +27,11 @@ import * as nls from '../../../../nls.js';
|
|
|
27
27
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
28
28
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
29
29
|
import { Range } from '../../../common/core/range.js';
|
|
30
|
-
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(
|
|
31
|
-
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(
|
|
32
|
-
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(
|
|
33
|
-
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(
|
|
34
|
-
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(
|
|
30
|
+
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, nls.localize(868, 'Icon which spawns code actions menu from the gutter when there is no space in the editor.'));
|
|
31
|
+
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, nls.localize(869, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'));
|
|
32
|
+
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, nls.localize(870, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'));
|
|
33
|
+
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, nls.localize(871, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
34
|
+
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, nls.localize(872, 'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'));
|
|
35
35
|
var LightBulbState;
|
|
36
36
|
(function (LightBulbState) {
|
|
37
37
|
LightBulbState.Hidden = { type: 0 /* Type.Hidden */ };
|
|
@@ -403,16 +403,16 @@ let LightBulbWidget = class LightBulbWidget extends Disposable {
|
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
405
|
if (autoRun) {
|
|
406
|
-
this.title = nls.localize(
|
|
406
|
+
this.title = nls.localize(873, "Run: {0}", this.state.actions.validActions[0].action.title);
|
|
407
407
|
}
|
|
408
408
|
else if (autoFix && this._preferredKbLabel) {
|
|
409
|
-
this.title = nls.localize(
|
|
409
|
+
this.title = nls.localize(874, "Show Code Actions. Preferred Quick Fix Available ({0})", this._preferredKbLabel);
|
|
410
410
|
}
|
|
411
411
|
else if (!autoFix && this._quickFixKbLabel) {
|
|
412
|
-
this.title = nls.localize(
|
|
412
|
+
this.title = nls.localize(875, "Show Code Actions ({0})", this._quickFixKbLabel);
|
|
413
413
|
}
|
|
414
414
|
else if (!autoFix) {
|
|
415
|
-
this.title = nls.localize(
|
|
415
|
+
this.title = nls.localize(876, "Show Code Actions");
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
set title(value) {
|
|
@@ -404,7 +404,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
404
404
|
super({
|
|
405
405
|
id: 'codelens.showLensesInCurrentLine',
|
|
406
406
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
407
|
-
label: localize2(
|
|
407
|
+
label: localize2(878, "Show CodeLens Commands for Current Line"),
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
async run(accessor, editor) {
|
|
@@ -439,7 +439,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
439
439
|
}
|
|
440
440
|
const item = await quickInputService.pick(items, {
|
|
441
441
|
canPickMany: false,
|
|
442
|
-
placeHolder: localize(
|
|
442
|
+
placeHolder: localize(877, "Select a command")
|
|
443
443
|
});
|
|
444
444
|
if (!item) {
|
|
445
445
|
// Nothing picked
|
|
@@ -53,9 +53,9 @@ let ColorDetector = class ColorDetector extends Disposable {
|
|
|
53
53
|
this._register(_editor.onDidChangeConfiguration((e) => {
|
|
54
54
|
const prevIsEnabled = this._isColorDecoratorsEnabled;
|
|
55
55
|
this._isColorDecoratorsEnabled = this.isEnabled();
|
|
56
|
-
this._defaultColorDecoratorsEnablement = this._editor.getOption(
|
|
56
|
+
this._defaultColorDecoratorsEnablement = this._editor.getOption(167 /* EditorOption.defaultColorDecorators */);
|
|
57
57
|
const updatedColorDecoratorsSetting = prevIsEnabled !== this._isColorDecoratorsEnabled || e.hasChanged(27 /* EditorOption.colorDecoratorsLimit */);
|
|
58
|
-
const updatedDefaultColorDecoratorsSetting = e.hasChanged(
|
|
58
|
+
const updatedDefaultColorDecoratorsSetting = e.hasChanged(167 /* EditorOption.defaultColorDecorators */);
|
|
59
59
|
if (updatedColorDecoratorsSetting || updatedDefaultColorDecoratorsSetting) {
|
|
60
60
|
if (this._isColorDecoratorsEnabled) {
|
|
61
61
|
this.updateColors();
|
|
@@ -68,7 +68,7 @@ let ColorDetector = class ColorDetector extends Disposable {
|
|
|
68
68
|
this._timeoutTimer = null;
|
|
69
69
|
this._computePromise = null;
|
|
70
70
|
this._isColorDecoratorsEnabled = this.isEnabled();
|
|
71
|
-
this._defaultColorDecoratorsEnablement = this._editor.getOption(
|
|
71
|
+
this._defaultColorDecoratorsEnablement = this._editor.getOption(167 /* EditorOption.defaultColorDecorators */);
|
|
72
72
|
this.updateColors();
|
|
73
73
|
}
|
|
74
74
|
isEnabled() {
|
package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js
CHANGED
|
@@ -22,7 +22,7 @@ export class CloseButton extends Disposable {
|
|
|
22
22
|
const innerDiv = document.createElement('div');
|
|
23
23
|
innerDiv.classList.add('close-button-inner-div');
|
|
24
24
|
dom.append(this._button, innerDiv);
|
|
25
|
-
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(
|
|
25
|
+
const closeButton = dom.append(innerDiv, $('.button' + ThemeIcon.asCSSSelector(registerIcon('color-picker-close', Codicon.close, localize(879, 'Icon to close the color picker')))));
|
|
26
26
|
closeButton.classList.add('close-icon');
|
|
27
27
|
this._register(dom.addDisposableListener(this._button, dom.EventType.CLICK, () => {
|
|
28
28
|
this._onClicked.fire();
|
|
@@ -22,7 +22,7 @@ export class ColorPickerHeader extends Disposable {
|
|
|
22
22
|
dom.append(this._pickedColorNode, $('span.codicon.codicon-color-mode'));
|
|
23
23
|
this._pickedColorPresentation = dom.append(this._pickedColorNode, document.createElement('span'));
|
|
24
24
|
this._pickedColorPresentation.classList.add('picked-color-presentation');
|
|
25
|
-
const tooltip = localize(
|
|
25
|
+
const tooltip = localize(880, "Click to toggle color options (rgb/hsl/hex)");
|
|
26
26
|
this._pickedColorNode.setAttribute('title', tooltip);
|
|
27
27
|
this._originalColorNode = dom.append(this._domNode, $('.original-color'));
|
|
28
28
|
this._originalColorNode.style.backgroundColor = Color.Format.CSS.format(this.model.originalColor) || '';
|
package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js
CHANGED
|
@@ -17,7 +17,7 @@ export class HoverColorPickerContribution extends Disposable {
|
|
|
17
17
|
super.dispose();
|
|
18
18
|
}
|
|
19
19
|
onMouseDown(mouseEvent) {
|
|
20
|
-
const colorDecoratorsActivatedOn = this._editor.getOption(
|
|
20
|
+
const colorDecoratorsActivatedOn = this._editor.getOption(168 /* EditorOption.colorDecoratorsActivatedOn */);
|
|
21
21
|
if (colorDecoratorsActivatedOn !== 'click' && colorDecoratorsActivatedOn !== 'clickAndHover') {
|
|
22
22
|
return;
|
|
23
23
|
}
|
package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js
CHANGED
|
@@ -77,7 +77,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
77
77
|
return [];
|
|
78
78
|
}
|
|
79
79
|
_isValidRequest(source) {
|
|
80
|
-
const decoratorActivatedOn = this._editor.getOption(
|
|
80
|
+
const decoratorActivatedOn = this._editor.getOption(168 /* EditorOption.colorDecoratorsActivatedOn */);
|
|
81
81
|
switch (source) {
|
|
82
82
|
case 0 /* HoverStartSource.Mouse */:
|
|
83
83
|
return decoratorActivatedOn === 'hover' || decoratorActivatedOn === 'clickAndHover';
|
|
@@ -98,7 +98,7 @@ let HoverColorPickerParticipant = class HoverColorPickerParticipant {
|
|
|
98
98
|
const colorHover = hoverParts[0];
|
|
99
99
|
const editorModel = editor.getModel();
|
|
100
100
|
const model = colorHover.model;
|
|
101
|
-
this._colorPicker = disposables.add(new ColorPickerWidget(context.fragment, model, editor.getOption(
|
|
101
|
+
this._colorPicker = disposables.add(new ColorPickerWidget(context.fragment, model, editor.getOption(163 /* EditorOption.pixelRatio */), this._themeService, "hover" /* ColorPickerWidgetType.Hover */));
|
|
102
102
|
let editorUpdatedByColorPicker = false;
|
|
103
103
|
let range = new Range(colorHover.range.startLineNumber, colorHover.range.startColumn, colorHover.range.endLineNumber, colorHover.range.endColumn);
|
|
104
104
|
disposables.add(model.onColorFlushed(async (color) => {
|
|
@@ -12,15 +12,15 @@ export class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
12
12
|
super({
|
|
13
13
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
14
14
|
title: {
|
|
15
|
-
...localize2(
|
|
16
|
-
mnemonicTitle: localize(
|
|
15
|
+
...localize2(882, "Show or Focus Standalone Color Picker"),
|
|
16
|
+
mnemonicTitle: localize(881, "&&Show or Focus Standalone Color Picker"),
|
|
17
17
|
},
|
|
18
18
|
precondition: undefined,
|
|
19
19
|
menu: [
|
|
20
20
|
{ id: MenuId.CommandPalette },
|
|
21
21
|
],
|
|
22
22
|
metadata: {
|
|
23
|
-
description: localize2(
|
|
23
|
+
description: localize2(883, "Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."),
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'editor.action.hideColorPicker',
|
|
35
|
-
label: localize2(
|
|
35
|
+
label: localize2(884, "Hide the Color Picker"),
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,7 +44,7 @@ export class HideStandaloneColorPicker extends EditorAction {
|
|
|
44
44
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
45
45
|
},
|
|
46
46
|
metadata: {
|
|
47
|
-
description: localize2(
|
|
47
|
+
description: localize2(885, "Hide the standalone color picker."),
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
59
|
-
label: localize2(
|
|
59
|
+
label: localize2(886, "Insert Color with Standalone Color Picker"),
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ export class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
68
68
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
69
69
|
},
|
|
70
70
|
metadata: {
|
|
71
|
-
description: localize2(
|
|
71
|
+
description: localize2(887, "Insert hex/rgb/hsl colors with the focused standalone color picker."),
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -37,7 +37,7 @@ export class StandaloneColorPickerRenderedParts extends Disposable {
|
|
|
37
37
|
const editorModel = editor.getModel();
|
|
38
38
|
const colorPickerModel = colorHover.model;
|
|
39
39
|
this.color = colorHover.model.color;
|
|
40
|
-
this.colorPicker = this._register(new ColorPickerWidget(context.fragment, colorPickerModel, editor.getOption(
|
|
40
|
+
this.colorPicker = this._register(new ColorPickerWidget(context.fragment, colorPickerModel, editor.getOption(163 /* EditorOption.pixelRatio */), themeService, "standalone" /* ColorPickerWidgetType.Standalone */));
|
|
41
41
|
this._register(colorPickerModel.onColorFlushed((color) => {
|
|
42
42
|
this.color = color;
|
|
43
43
|
}));
|
|
@@ -56,7 +56,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super(0 /* Type.Toggle */, {
|
|
58
58
|
id: 'editor.action.commentLine',
|
|
59
|
-
label: nls.localize2(
|
|
59
|
+
label: nls.localize2(890, "Toggle Line Comment"),
|
|
60
60
|
precondition: EditorContextKeys.writable,
|
|
61
61
|
kbOpts: {
|
|
62
62
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -66,7 +66,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
66
66
|
menuOpts: {
|
|
67
67
|
menuId: MenuId.MenubarEditMenu,
|
|
68
68
|
group: '5_insert',
|
|
69
|
-
title: nls.localize(
|
|
69
|
+
title: nls.localize(888, "&&Toggle Line Comment"),
|
|
70
70
|
order: 1
|
|
71
71
|
}
|
|
72
72
|
});
|
|
@@ -76,7 +76,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
76
76
|
constructor() {
|
|
77
77
|
super(1 /* Type.ForceAdd */, {
|
|
78
78
|
id: 'editor.action.addCommentLine',
|
|
79
|
-
label: nls.localize2(
|
|
79
|
+
label: nls.localize2(891, "Add Line Comment"),
|
|
80
80
|
precondition: EditorContextKeys.writable,
|
|
81
81
|
kbOpts: {
|
|
82
82
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -90,7 +90,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super(2 /* Type.ForceRemove */, {
|
|
92
92
|
id: 'editor.action.removeCommentLine',
|
|
93
|
-
label: nls.localize2(
|
|
93
|
+
label: nls.localize2(892, "Remove Line Comment"),
|
|
94
94
|
precondition: EditorContextKeys.writable,
|
|
95
95
|
kbOpts: {
|
|
96
96
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -104,7 +104,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super({
|
|
106
106
|
id: 'editor.action.blockComment',
|
|
107
|
-
label: nls.localize2(
|
|
107
|
+
label: nls.localize2(893, "Toggle Block Comment"),
|
|
108
108
|
precondition: EditorContextKeys.writable,
|
|
109
109
|
kbOpts: {
|
|
110
110
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -115,7 +115,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
115
115
|
menuOpts: {
|
|
116
116
|
menuId: MenuId.MenubarEditMenu,
|
|
117
117
|
group: '5_insert',
|
|
118
|
-
title: nls.localize(
|
|
118
|
+
title: nls.localize(889, "Toggle &&Block Comment"),
|
|
119
119
|
order: 2
|
|
120
120
|
}
|
|
121
121
|
});
|
|
@@ -176,7 +176,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
176
176
|
const posy = editorCoords.top + cursorCoords.top + cursorCoords.height;
|
|
177
177
|
anchor = { x: posx, y: posy };
|
|
178
178
|
}
|
|
179
|
-
const useShadowDOM = this._editor.getOption(
|
|
179
|
+
const useShadowDOM = this._editor.getOption(144 /* EditorOption.useShadowDOM */) && !isIOS; // Do not use shadow dom on IOS #122035
|
|
180
180
|
// Show menu
|
|
181
181
|
this._contextMenuIsBeingShownCount++;
|
|
182
182
|
this._contextMenuService.showContextMenu({
|
|
@@ -247,7 +247,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
247
247
|
};
|
|
248
248
|
const actions = [];
|
|
249
249
|
actions.push(createAction({
|
|
250
|
-
label: nls.localize(
|
|
250
|
+
label: nls.localize(894, "Minimap"),
|
|
251
251
|
checked: minimapOptions.enabled,
|
|
252
252
|
run: () => {
|
|
253
253
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -255,31 +255,31 @@ let ContextMenuController = class ContextMenuController {
|
|
|
255
255
|
}));
|
|
256
256
|
actions.push(new Separator());
|
|
257
257
|
actions.push(createAction({
|
|
258
|
-
label: nls.localize(
|
|
258
|
+
label: nls.localize(895, "Render Characters"),
|
|
259
259
|
enabled: minimapOptions.enabled,
|
|
260
260
|
checked: minimapOptions.renderCharacters,
|
|
261
261
|
run: () => {
|
|
262
262
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
263
263
|
}
|
|
264
264
|
}));
|
|
265
|
-
actions.push(createEnumAction(nls.localize(
|
|
266
|
-
label: nls.localize(
|
|
265
|
+
actions.push(createEnumAction(nls.localize(896, "Vertical size"), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
266
|
+
label: nls.localize(897, "Proportional"),
|
|
267
267
|
value: 'proportional'
|
|
268
268
|
}, {
|
|
269
|
-
label: nls.localize(
|
|
269
|
+
label: nls.localize(898, "Fill"),
|
|
270
270
|
value: 'fill'
|
|
271
271
|
}, {
|
|
272
|
-
label: nls.localize(
|
|
272
|
+
label: nls.localize(899, "Fit"),
|
|
273
273
|
value: 'fit'
|
|
274
274
|
}]));
|
|
275
|
-
actions.push(createEnumAction(nls.localize(
|
|
276
|
-
label: nls.localize(
|
|
275
|
+
actions.push(createEnumAction(nls.localize(900, "Slider"), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
276
|
+
label: nls.localize(901, "Mouse Over"),
|
|
277
277
|
value: 'mouseover'
|
|
278
278
|
}, {
|
|
279
|
-
label: nls.localize(
|
|
279
|
+
label: nls.localize(902, "Always"),
|
|
280
280
|
value: 'always'
|
|
281
281
|
}]));
|
|
282
|
-
const useShadowDOM = this._editor.getOption(
|
|
282
|
+
const useShadowDOM = this._editor.getOption(144 /* EditorOption.useShadowDOM */) && !isIOS; // Do not use shadow dom on IOS #122035
|
|
283
283
|
this._contextMenuIsBeingShownCount++;
|
|
284
284
|
this._contextMenuService.showContextMenu({
|
|
285
285
|
domForShadowRoot: useShadowDOM ? this._editor.getDomNode() : undefined,
|
|
@@ -315,7 +315,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
315
315
|
constructor() {
|
|
316
316
|
super({
|
|
317
317
|
id: 'editor.action.showContextMenu',
|
|
318
|
-
label: nls.localize2(
|
|
318
|
+
label: nls.localize2(903, "Show Editor Context Menu"),
|
|
319
319
|
precondition: undefined,
|
|
320
320
|
kbOpts: {
|
|
321
321
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -100,7 +100,7 @@ export class CursorUndo extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'cursorUndo',
|
|
103
|
-
label: nls.localize2(
|
|
103
|
+
label: nls.localize2(904, "Cursor Undo"),
|
|
104
104
|
precondition: undefined,
|
|
105
105
|
kbOpts: {
|
|
106
106
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -117,7 +117,7 @@ export class CursorRedo extends EditorAction {
|
|
|
117
117
|
constructor() {
|
|
118
118
|
super({
|
|
119
119
|
id: 'cursorRedo',
|
|
120
|
-
label: nls.localize2(
|
|
120
|
+
label: nls.localize2(905, "Cursor Redo"),
|
|
121
121
|
precondition: undefined
|
|
122
122
|
});
|
|
123
123
|
}
|
|
@@ -51,7 +51,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
51
51
|
properties: {
|
|
52
52
|
kind: {
|
|
53
53
|
type: 'string',
|
|
54
|
-
description: nls.localize(
|
|
54
|
+
description: nls.localize(906, "The kind of the paste edit to try pasting with.\nIf there are multiple edits for this kind, the editor will show a picker. If there are no edits of this kind, the editor will show an error message."),
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
},
|
|
@@ -61,7 +61,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
61
61
|
properties: {
|
|
62
62
|
preferences: {
|
|
63
63
|
type: 'array',
|
|
64
|
-
description: nls.localize(
|
|
64
|
+
description: nls.localize(907, "List of preferred paste edit kind to try applying.\nThe first edit matching the preferences will be applied."),
|
|
65
65
|
items: { type: 'string' }
|
|
66
66
|
}
|
|
67
67
|
},
|
|
@@ -71,7 +71,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
71
71
|
constructor() {
|
|
72
72
|
super({
|
|
73
73
|
id: pasteAsCommandId,
|
|
74
|
-
label: nls.localize2(
|
|
74
|
+
label: nls.localize2(908, "Paste As..."),
|
|
75
75
|
precondition: EditorContextKeys.writable,
|
|
76
76
|
metadata: {
|
|
77
77
|
description: 'Paste as',
|
|
@@ -99,7 +99,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
99
99
|
constructor() {
|
|
100
100
|
super({
|
|
101
101
|
id: 'editor.action.pasteAsText',
|
|
102
|
-
label: nls.localize2(
|
|
102
|
+
label: nls.localize2(909, "Paste as Text"),
|
|
103
103
|
precondition: EditorContextKeys.writable,
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -47,7 +47,7 @@ import { createCombinedWorkspaceEdit, sortEditsByYieldTo } from './edit.js';
|
|
|
47
47
|
import { PostEditWidgetManager } from './postEditWidget.js';
|
|
48
48
|
export const changePasteTypeCommandId = 'editor.changePasteType';
|
|
49
49
|
export const pasteAsPreferenceConfig = 'editor.pasteAs.preferences';
|
|
50
|
-
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(
|
|
50
|
+
export const pasteWidgetVisibleCtx = new RawContextKey('pasteWidgetVisible', false, localize(910, "Whether the paste widget is showing"));
|
|
51
51
|
const vscodeClipboardMime = 'application/vnd.code.copymetadata';
|
|
52
52
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
53
53
|
static { CopyPasteController_1 = this; }
|
|
@@ -71,7 +71,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
71
71
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
72
72
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
73
73
|
this._pasteProgressManager = this._register(new InlineProgressManager('pasteIntoEditor', editor, instantiationService));
|
|
74
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(
|
|
74
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: localize(911, "Show paste options...") }, () => CopyPasteController_1._configureDefaultAction ? [CopyPasteController_1._configureDefaultAction] : []));
|
|
75
75
|
}
|
|
76
76
|
changePasteType() {
|
|
77
77
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -92,7 +92,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
92
92
|
this._postPasteWidgetManager.clear();
|
|
93
93
|
}
|
|
94
94
|
isPasteAsEnabled() {
|
|
95
|
-
return this._editor.getOption(
|
|
95
|
+
return this._editor.getOption(97 /* EditorOption.pasteAs */).enabled;
|
|
96
96
|
}
|
|
97
97
|
async finishedPaste() {
|
|
98
98
|
await this._currentPasteOperation;
|
|
@@ -188,7 +188,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
188
188
|
if (!selections?.length || !model) {
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
if (this._editor.getOption(
|
|
191
|
+
if (this._editor.getOption(104 /* EditorOption.readOnly */) // Never enabled if editor is readonly.
|
|
192
192
|
|| (!this.isPasteAsEnabled() && !this._pasteAsActionContext) // Or feature disabled (but still enable if paste was explicitly requested)
|
|
193
193
|
) {
|
|
194
194
|
return;
|
|
@@ -245,9 +245,9 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
245
245
|
const kindLabel = 'only' in preference
|
|
246
246
|
? preference.only.value
|
|
247
247
|
: 'preferences' in preference
|
|
248
|
-
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(
|
|
248
|
+
? (preference.preferences.length ? preference.preferences.map(preference => preference.value).join(', ') : localize(912, "empty"))
|
|
249
249
|
: preference.providerId;
|
|
250
|
-
MessageController.get(this._editor)?.showMessage(localize(
|
|
250
|
+
MessageController.get(this._editor)?.showMessage(localize(913, "No paste edits for '{0}' found", kindLabel), selections[0].getStartPosition());
|
|
251
251
|
}
|
|
252
252
|
doPasteInline(allProviders, selections, dataTransfer, metadata, clipboardEvent) {
|
|
253
253
|
this._logService.trace('CopyPasteController#doPasteInline');
|
|
@@ -290,14 +290,14 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
290
290
|
return this.applyDefaultPasteHandler(dataTransfer, metadata, token, clipboardEvent);
|
|
291
291
|
}
|
|
292
292
|
if (editSession.edits.length) {
|
|
293
|
-
const canShowWidget = editor.getOption(
|
|
293
|
+
const canShowWidget = editor.getOption(97 /* EditorOption.pasteAs */).showPasteSelector === 'afterPaste';
|
|
294
294
|
return this._postPasteWidgetManager.applyEditAndShowIfNeeded(selections, { activeEditIndex: this.getInitialActiveEditIndex(model, editSession.edits), allEdits: editSession.edits }, canShowWidget, async (edit, resolveToken) => {
|
|
295
295
|
if (!edit.provider.resolveDocumentPasteEdit) {
|
|
296
296
|
return edit;
|
|
297
297
|
}
|
|
298
298
|
const resolveP = edit.provider.resolveDocumentPasteEdit(edit, resolveToken);
|
|
299
299
|
const showP = new DeferredPromise();
|
|
300
|
-
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
300
|
+
const resolved = await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(914, "Resolving paste edit for '{0}'. Click to cancel", edit.title), raceCancellation(Promise.race([showP.p, resolveP]), resolveToken), {
|
|
301
301
|
cancel: () => showP.cancel()
|
|
302
302
|
}, 0);
|
|
303
303
|
if (resolved) {
|
|
@@ -316,7 +316,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(
|
|
319
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), localize(915, "Running paste handlers. Click to cancel and do basic paste"), p, {
|
|
320
320
|
cancel: async () => {
|
|
321
321
|
p.cancel();
|
|
322
322
|
if (editorStateCts.token.isCancellationRequested) {
|
|
@@ -388,7 +388,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
388
388
|
else {
|
|
389
389
|
const configureDefaultItem = {
|
|
390
390
|
id: 'editor.pasteAs.default',
|
|
391
|
-
label: localize(
|
|
391
|
+
label: localize(916, "Configure default paste action"),
|
|
392
392
|
edit: undefined,
|
|
393
393
|
};
|
|
394
394
|
const selected = await this._quickInputService.pick([
|
|
@@ -405,7 +405,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
405
405
|
}
|
|
406
406
|
] : [])
|
|
407
407
|
], {
|
|
408
|
-
placeHolder: localize(
|
|
408
|
+
placeHolder: localize(917, "Select Paste Action"),
|
|
409
409
|
});
|
|
410
410
|
if (selected === configureDefaultItem) {
|
|
411
411
|
CopyPasteController_1._configureDefaultAction?.run();
|
|
@@ -428,7 +428,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
428
428
|
});
|
|
429
429
|
this._progressService.withProgress({
|
|
430
430
|
location: 10 /* ProgressLocation.Window */,
|
|
431
|
-
title: localize(
|
|
431
|
+
title: localize(918, "Running paste handlers"),
|
|
432
432
|
}, () => p);
|
|
433
433
|
}
|
|
434
434
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -72,7 +72,7 @@ export class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvid
|
|
|
72
72
|
const insertText = await textEntry.asString();
|
|
73
73
|
return {
|
|
74
74
|
handledMimeType: Mimes.text,
|
|
75
|
-
title: localize(
|
|
75
|
+
title: localize(919, "Insert Plain Text"),
|
|
76
76
|
insertText,
|
|
77
77
|
kind: this.kind,
|
|
78
78
|
};
|
|
@@ -105,14 +105,14 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
105
105
|
if (uriCount > 0) {
|
|
106
106
|
// Dropping at least one generic uri (such as https) so use most generic label
|
|
107
107
|
label = entries.length > 1
|
|
108
|
-
? localize(
|
|
109
|
-
: localize(
|
|
108
|
+
? localize(920, "Insert Uris")
|
|
109
|
+
: localize(921, "Insert Uri");
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
// All the paths are file paths
|
|
113
113
|
label = entries.length > 1
|
|
114
|
-
? localize(
|
|
115
|
-
: localize(
|
|
114
|
+
? localize(922, "Insert Paths")
|
|
115
|
+
: localize(923, "Insert Path");
|
|
116
116
|
}
|
|
117
117
|
return {
|
|
118
118
|
handledMimeType: Mimes.uriList,
|
|
@@ -145,8 +145,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
145
145
|
handledMimeType: Mimes.uriList,
|
|
146
146
|
insertText: relativeUris.join(' '),
|
|
147
147
|
title: entries.length > 1
|
|
148
|
-
? localize(
|
|
149
|
-
: localize(
|
|
148
|
+
? localize(924, "Insert Relative Paths")
|
|
149
|
+
: localize(925, "Insert Relative Path"),
|
|
150
150
|
kind: this.kind,
|
|
151
151
|
};
|
|
152
152
|
}
|
|
@@ -176,7 +176,7 @@ class PasteHtmlProvider {
|
|
|
176
176
|
edits: [{
|
|
177
177
|
insertText: htmlText,
|
|
178
178
|
yieldTo: this._yieldTo,
|
|
179
|
-
title: localize(
|
|
179
|
+
title: localize(926, 'Insert HTML'),
|
|
180
180
|
kind: this.kind,
|
|
181
181
|
}],
|
|
182
182
|
};
|