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
|
@@ -11,7 +11,7 @@ export class ToggleTabFocusModeAction extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: ToggleTabFocusModeAction.ID,
|
|
14
|
-
title: nls.localize2(
|
|
14
|
+
title: nls.localize2(1513, 'Toggle Tab Key Moves Focus'),
|
|
15
15
|
precondition: undefined,
|
|
16
16
|
keybinding: {
|
|
17
17
|
primary: 2048 /* KeyMod.CtrlCmd */ | 43 /* KeyCode.KeyM */,
|
|
@@ -19,7 +19,7 @@ export class ToggleTabFocusModeAction extends Action2 {
|
|
|
19
19
|
weight: 100 /* KeybindingWeight.EditorContrib */
|
|
20
20
|
},
|
|
21
21
|
metadata: {
|
|
22
|
-
description: nls.localize2(
|
|
22
|
+
description: nls.localize2(1514, "Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode."),
|
|
23
23
|
},
|
|
24
24
|
f1: true
|
|
25
25
|
});
|
|
@@ -29,10 +29,10 @@ export class ToggleTabFocusModeAction extends Action2 {
|
|
|
29
29
|
const newValue = !oldValue;
|
|
30
30
|
TabFocus.setTabFocusMode(newValue);
|
|
31
31
|
if (newValue) {
|
|
32
|
-
alert(nls.localize(
|
|
32
|
+
alert(nls.localize(1511, "Pressing Tab will now move focus to the next focusable element"));
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
alert(nls.localize(
|
|
35
|
+
alert(nls.localize(1512, "Pressing Tab will now insert the tab character"));
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -9,7 +9,7 @@ class ForceRetokenizeAction extends EditorAction {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: 'editor.action.forceRetokenize',
|
|
12
|
-
label: nls.localize2(
|
|
12
|
+
label: nls.localize2(1515, "Developer: Force Retokenize"),
|
|
13
13
|
precondition: undefined
|
|
14
14
|
});
|
|
15
15
|
}
|
|
@@ -106,7 +106,7 @@ let Banner = class Banner extends Disposable {
|
|
|
106
106
|
// Action
|
|
107
107
|
const actionBarContainer = append(this.element, $('div.action-container'));
|
|
108
108
|
this.actionBar = this._register(new ActionBar(actionBarContainer));
|
|
109
|
-
this.actionBar.push(this._register(new Action('banner.close', localize(
|
|
109
|
+
this.actionBar.push(this._register(new Action('banner.close', localize(1516, "Close Banner"), ThemeIcon.asClassName(widgetClose), true, () => {
|
|
110
110
|
if (typeof item.onClose === 'function') {
|
|
111
111
|
item.onClose();
|
|
112
112
|
}
|
|
@@ -37,7 +37,7 @@ import { IWorkspaceTrustManagementService } from '../../../../platform/workspace
|
|
|
37
37
|
import { Action2, registerAction2 } from '../../../../platform/actions/common/actions.js';
|
|
38
38
|
import { safeIntl } from '../../../../base/common/date.js';
|
|
39
39
|
import { isModelDecorationInComment, isModelDecorationInString, isModelDecorationVisible } from '../../../common/viewModel/viewModelDecoration.js';
|
|
40
|
-
export const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, nls.localize(
|
|
40
|
+
export const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, nls.localize(1517, 'Icon shown with a warning message in the extensions editor.'));
|
|
41
41
|
let UnicodeHighlighter = class UnicodeHighlighter extends Disposable {
|
|
42
42
|
static { this.ID = 'editor.contrib.unicodeHighlighter'; }
|
|
43
43
|
constructor(_editor, _editorWorkerService, _workspaceTrustService, instantiationService) {
|
|
@@ -57,19 +57,19 @@ let UnicodeHighlighter = class UnicodeHighlighter extends Disposable {
|
|
|
57
57
|
let data;
|
|
58
58
|
if (state.nonBasicAsciiCharacterCount >= max) {
|
|
59
59
|
data = {
|
|
60
|
-
message: nls.localize(
|
|
60
|
+
message: nls.localize(1518, 'This document contains many non-basic ASCII unicode characters'),
|
|
61
61
|
command: new DisableHighlightingOfNonBasicAsciiCharactersAction(),
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (state.ambiguousCharacterCount >= max) {
|
|
65
65
|
data = {
|
|
66
|
-
message: nls.localize(
|
|
66
|
+
message: nls.localize(1519, 'This document contains many ambiguous unicode characters'),
|
|
67
67
|
command: new DisableHighlightingOfAmbiguousCharactersAction(),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (state.invisibleCharacterCount >= max) {
|
|
71
71
|
data = {
|
|
72
|
-
message: nls.localize(
|
|
72
|
+
message: nls.localize(1520, 'This document contains many invisible unicode characters'),
|
|
73
73
|
command: new DisableHighlightingOfInvisibleCharactersAction(),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -100,13 +100,13 @@ let UnicodeHighlighter = class UnicodeHighlighter extends Disposable {
|
|
|
100
100
|
this._bannerClosed = false;
|
|
101
101
|
this._updateHighlighter();
|
|
102
102
|
}));
|
|
103
|
-
this._options = _editor.getOption(
|
|
103
|
+
this._options = _editor.getOption(142 /* EditorOption.unicodeHighlighting */);
|
|
104
104
|
this._register(_workspaceTrustService.onDidChangeTrust(e => {
|
|
105
105
|
this._updateHighlighter();
|
|
106
106
|
}));
|
|
107
107
|
this._register(_editor.onDidChangeConfiguration(e => {
|
|
108
|
-
if (e.hasChanged(
|
|
109
|
-
this._options = _editor.getOption(
|
|
108
|
+
if (e.hasChanged(142 /* EditorOption.unicodeHighlighting */)) {
|
|
109
|
+
this._options = _editor.getOption(142 /* EditorOption.unicodeHighlighting */);
|
|
110
110
|
this._updateHighlighter();
|
|
111
111
|
}
|
|
112
112
|
}));
|
|
@@ -338,7 +338,7 @@ class ViewportUnicodeHighlighter extends Disposable {
|
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
const configureUnicodeHighlightOptionsStr = nls.localize(
|
|
341
|
+
const configureUnicodeHighlightOptionsStr = nls.localize(1521, 'Configure Unicode Highlight Options');
|
|
342
342
|
let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipant {
|
|
343
343
|
constructor(_editor, _languageService, _openerService) {
|
|
344
344
|
this._editor = _editor;
|
|
@@ -371,18 +371,18 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
371
371
|
switch (highlightInfo.reason.kind) {
|
|
372
372
|
case 0 /* UnicodeHighlighterReasonKind.Ambiguous */: {
|
|
373
373
|
if (isBasicASCII(highlightInfo.reason.confusableWith)) {
|
|
374
|
-
reason = nls.localize(
|
|
374
|
+
reason = nls.localize(1522, 'The character {0} could be confused with the ASCII character {1}, which is more common in source code.', codePointStr, formatCodePointMarkdown(highlightInfo.reason.confusableWith.codePointAt(0)));
|
|
375
375
|
}
|
|
376
376
|
else {
|
|
377
|
-
reason = nls.localize(
|
|
377
|
+
reason = nls.localize(1523, 'The character {0} could be confused with the character {1}, which is more common in source code.', codePointStr, formatCodePointMarkdown(highlightInfo.reason.confusableWith.codePointAt(0)));
|
|
378
378
|
}
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
381
|
case 1 /* UnicodeHighlighterReasonKind.Invisible */:
|
|
382
|
-
reason = nls.localize(
|
|
382
|
+
reason = nls.localize(1524, 'The character {0} is invisible.', codePointStr);
|
|
383
383
|
break;
|
|
384
384
|
case 2 /* UnicodeHighlighterReasonKind.NonBasicAscii */:
|
|
385
|
-
reason = nls.localize(
|
|
385
|
+
reason = nls.localize(1525, 'The character {0} is not a basic ASCII character.', codePointStr);
|
|
386
386
|
break;
|
|
387
387
|
}
|
|
388
388
|
if (existedReason.has(reason)) {
|
|
@@ -395,7 +395,7 @@ let UnicodeHighlighterHoverParticipant = class UnicodeHighlighterHoverParticipan
|
|
|
395
395
|
inComment: highlightInfo.inComment,
|
|
396
396
|
inString: highlightInfo.inString,
|
|
397
397
|
};
|
|
398
|
-
const adjustSettings = nls.localize(
|
|
398
|
+
const adjustSettings = nls.localize(1526, 'Adjust settings');
|
|
399
399
|
const uri = `command:${ShowExcludeOptions.ID}?${encodeURIComponent(JSON.stringify(adjustSettingsArgs))}`;
|
|
400
400
|
const markdown = new MarkdownString('', true)
|
|
401
401
|
.appendMarkdown(reason)
|
|
@@ -465,10 +465,10 @@ export class DisableHighlightingInCommentsAction extends EditorAction {
|
|
|
465
465
|
constructor() {
|
|
466
466
|
super({
|
|
467
467
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
468
|
-
label: nls.localize2(
|
|
468
|
+
label: nls.localize2(1535, "Disable highlighting of characters in comments"),
|
|
469
469
|
precondition: undefined
|
|
470
470
|
});
|
|
471
|
-
this.shortLabel = nls.localize(
|
|
471
|
+
this.shortLabel = nls.localize(1527, 'Disable Highlight In Comments');
|
|
472
472
|
}
|
|
473
473
|
async run(accessor, editor, args) {
|
|
474
474
|
const configurationService = accessor.get(IConfigurationService);
|
|
@@ -484,10 +484,10 @@ export class DisableHighlightingInStringsAction extends EditorAction {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
487
|
-
label: nls.localize2(
|
|
487
|
+
label: nls.localize2(1536, "Disable highlighting of characters in strings"),
|
|
488
488
|
precondition: undefined
|
|
489
489
|
});
|
|
490
|
-
this.shortLabel = nls.localize(
|
|
490
|
+
this.shortLabel = nls.localize(1528, 'Disable Highlight In Strings');
|
|
491
491
|
}
|
|
492
492
|
async run(accessor, editor, args) {
|
|
493
493
|
const configurationService = accessor.get(IConfigurationService);
|
|
@@ -504,11 +504,11 @@ export class DisableHighlightingOfAmbiguousCharactersAction extends Action2 {
|
|
|
504
504
|
constructor() {
|
|
505
505
|
super({
|
|
506
506
|
id: DisableHighlightingOfAmbiguousCharactersAction.ID,
|
|
507
|
-
title: nls.localize2(
|
|
507
|
+
title: nls.localize2(1537, "Disable highlighting of ambiguous characters"),
|
|
508
508
|
precondition: undefined,
|
|
509
509
|
f1: false,
|
|
510
510
|
});
|
|
511
|
-
this.shortLabel = nls.localize(
|
|
511
|
+
this.shortLabel = nls.localize(1529, 'Disable Ambiguous Highlight');
|
|
512
512
|
}
|
|
513
513
|
async run(accessor, editor, args) {
|
|
514
514
|
const configurationService = accessor.get(IConfigurationService);
|
|
@@ -525,11 +525,11 @@ export class DisableHighlightingOfInvisibleCharactersAction extends Action2 {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: DisableHighlightingOfInvisibleCharactersAction.ID,
|
|
528
|
-
title: nls.localize2(
|
|
528
|
+
title: nls.localize2(1538, "Disable highlighting of invisible characters"),
|
|
529
529
|
precondition: undefined,
|
|
530
530
|
f1: false,
|
|
531
531
|
});
|
|
532
|
-
this.shortLabel = nls.localize(
|
|
532
|
+
this.shortLabel = nls.localize(1530, 'Disable Invisible Highlight');
|
|
533
533
|
}
|
|
534
534
|
async run(accessor, editor, args) {
|
|
535
535
|
const configurationService = accessor.get(IConfigurationService);
|
|
@@ -546,11 +546,11 @@ export class DisableHighlightingOfNonBasicAsciiCharactersAction extends Action2
|
|
|
546
546
|
constructor() {
|
|
547
547
|
super({
|
|
548
548
|
id: DisableHighlightingOfNonBasicAsciiCharactersAction.ID,
|
|
549
|
-
title: nls.localize2(
|
|
549
|
+
title: nls.localize2(1539, "Disable highlighting of non basic ASCII characters"),
|
|
550
550
|
precondition: undefined,
|
|
551
551
|
f1: false,
|
|
552
552
|
});
|
|
553
|
-
this.shortLabel = nls.localize(
|
|
553
|
+
this.shortLabel = nls.localize(1531, 'Disable Non ASCII Highlight');
|
|
554
554
|
}
|
|
555
555
|
async run(accessor, editor, args) {
|
|
556
556
|
const configurationService = accessor.get(IConfigurationService);
|
|
@@ -567,7 +567,7 @@ export class ShowExcludeOptions extends Action2 {
|
|
|
567
567
|
constructor() {
|
|
568
568
|
super({
|
|
569
569
|
id: ShowExcludeOptions.ID,
|
|
570
|
-
title: nls.localize2(
|
|
570
|
+
title: nls.localize2(1540, "Show Exclude Options"),
|
|
571
571
|
precondition: undefined,
|
|
572
572
|
f1: false,
|
|
573
573
|
});
|
|
@@ -579,15 +579,15 @@ export class ShowExcludeOptions extends Action2 {
|
|
|
579
579
|
const configurationService = accessor.get(IConfigurationService);
|
|
580
580
|
function getExcludeCharFromBeingHighlightedLabel(codePoint) {
|
|
581
581
|
if (InvisibleCharacters.isInvisibleCharacter(codePoint)) {
|
|
582
|
-
return nls.localize(
|
|
582
|
+
return nls.localize(1532, 'Exclude {0} (invisible character) from being highlighted', codePointToHex(codePoint));
|
|
583
583
|
}
|
|
584
|
-
return nls.localize(
|
|
584
|
+
return nls.localize(1533, 'Exclude {0} from being highlighted', `${codePointToHex(codePoint)} "${char}"`);
|
|
585
585
|
}
|
|
586
586
|
const options = [];
|
|
587
587
|
if (reason.kind === 0 /* UnicodeHighlighterReasonKind.Ambiguous */) {
|
|
588
588
|
for (const locale of reason.notAmbiguousInLocales) {
|
|
589
589
|
options.push({
|
|
590
|
-
label: nls.localize(
|
|
590
|
+
label: nls.localize(1534, "Allow unicode characters that are more common in the language \"{0}\".", locale),
|
|
591
591
|
run: async () => {
|
|
592
592
|
excludeLocaleFromBeingHighlighted(configurationService, [locale]);
|
|
593
593
|
},
|
|
@@ -32,10 +32,10 @@ let UnusualLineTerminatorsDetector = class UnusualLineTerminatorsDetector extend
|
|
|
32
32
|
this._dialogService = _dialogService;
|
|
33
33
|
this._codeEditorService = _codeEditorService;
|
|
34
34
|
this._isPresentingDialog = false;
|
|
35
|
-
this._config = this._editor.getOption(
|
|
35
|
+
this._config = this._editor.getOption(143 /* EditorOption.unusualLineTerminators */);
|
|
36
36
|
this._register(this._editor.onDidChangeConfiguration((e) => {
|
|
37
|
-
if (e.hasChanged(
|
|
38
|
-
this._config = this._editor.getOption(
|
|
37
|
+
if (e.hasChanged(143 /* EditorOption.unusualLineTerminators */)) {
|
|
38
|
+
this._config = this._editor.getOption(143 /* EditorOption.unusualLineTerminators */);
|
|
39
39
|
this._checkForUnusualLineTerminators();
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
@@ -67,7 +67,7 @@ let UnusualLineTerminatorsDetector = class UnusualLineTerminatorsDetector extend
|
|
|
67
67
|
// this model should be ignored
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
70
|
-
if (this._editor.getOption(
|
|
70
|
+
if (this._editor.getOption(104 /* EditorOption.readOnly */)) {
|
|
71
71
|
// read only editor => sorry!
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
@@ -85,11 +85,11 @@ let UnusualLineTerminatorsDetector = class UnusualLineTerminatorsDetector extend
|
|
|
85
85
|
try {
|
|
86
86
|
this._isPresentingDialog = true;
|
|
87
87
|
result = await this._dialogService.confirm({
|
|
88
|
-
title: nls.localize(
|
|
89
|
-
message: nls.localize(
|
|
90
|
-
detail: nls.localize(
|
|
91
|
-
primaryButton: nls.localize(
|
|
92
|
-
cancelButton: nls.localize(
|
|
88
|
+
title: nls.localize(1541, "Unusual Line Terminators"),
|
|
89
|
+
message: nls.localize(1542, "Detected unusual line terminators"),
|
|
90
|
+
detail: nls.localize(1543, "The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.", basename(model.uri)),
|
|
91
|
+
primaryButton: nls.localize(1544, "&&Remove Unusual Line Terminators"),
|
|
92
|
+
cancelButton: nls.localize(1545, "Ignore")
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
finally {
|
|
@@ -9,15 +9,15 @@ import { DocumentHighlightKind } from '../../../common/languages.js';
|
|
|
9
9
|
import * as nls from '../../../../nls.js';
|
|
10
10
|
import { activeContrastBorder, editorSelectionHighlight, minimapSelectionOccurrenceHighlight, overviewRulerSelectionHighlightForeground, registerColor } from '../../../../platform/theme/common/colorRegistry.js';
|
|
11
11
|
import { registerThemingParticipant, themeColorFromId } from '../../../../platform/theme/common/themeService.js';
|
|
12
|
-
const wordHighlightBackground = registerColor('editor.wordHighlightBackground', { dark: '#575757B8', light: '#57575740', hcDark: null, hcLight: null }, nls.localize(
|
|
13
|
-
registerColor('editor.wordHighlightStrongBackground', { dark: '#004972B8', light: '#0e639c40', hcDark: null, hcLight: null }, nls.localize(
|
|
14
|
-
registerColor('editor.wordHighlightTextBackground', wordHighlightBackground, nls.localize(
|
|
15
|
-
const wordHighlightBorder = registerColor('editor.wordHighlightBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(
|
|
16
|
-
registerColor('editor.wordHighlightStrongBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(
|
|
17
|
-
registerColor('editor.wordHighlightTextBorder', wordHighlightBorder, nls.localize(
|
|
18
|
-
const overviewRulerWordHighlightForeground = registerColor('editorOverviewRuler.wordHighlightForeground', '#A0A0A0CC', nls.localize(
|
|
19
|
-
const overviewRulerWordHighlightStrongForeground = registerColor('editorOverviewRuler.wordHighlightStrongForeground', '#C0A0C0CC', nls.localize(
|
|
20
|
-
const overviewRulerWordHighlightTextForeground = registerColor('editorOverviewRuler.wordHighlightTextForeground', overviewRulerSelectionHighlightForeground, nls.localize(
|
|
12
|
+
const wordHighlightBackground = registerColor('editor.wordHighlightBackground', { dark: '#575757B8', light: '#57575740', hcDark: null, hcLight: null }, nls.localize(1546, 'Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
13
|
+
registerColor('editor.wordHighlightStrongBackground', { dark: '#004972B8', light: '#0e639c40', hcDark: null, hcLight: null }, nls.localize(1547, 'Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
14
|
+
registerColor('editor.wordHighlightTextBackground', wordHighlightBackground, nls.localize(1548, 'Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
15
|
+
const wordHighlightBorder = registerColor('editor.wordHighlightBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(1549, 'Border color of a symbol during read-access, like reading a variable.'));
|
|
16
|
+
registerColor('editor.wordHighlightStrongBorder', { light: null, dark: null, hcDark: activeContrastBorder, hcLight: activeContrastBorder }, nls.localize(1550, 'Border color of a symbol during write-access, like writing to a variable.'));
|
|
17
|
+
registerColor('editor.wordHighlightTextBorder', wordHighlightBorder, nls.localize(1551, "Border color of a textual occurrence for a symbol."));
|
|
18
|
+
const overviewRulerWordHighlightForeground = registerColor('editorOverviewRuler.wordHighlightForeground', '#A0A0A0CC', nls.localize(1552, 'Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
19
|
+
const overviewRulerWordHighlightStrongForeground = registerColor('editorOverviewRuler.wordHighlightStrongForeground', '#C0A0C0CC', nls.localize(1553, 'Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
20
|
+
const overviewRulerWordHighlightTextForeground = registerColor('editorOverviewRuler.wordHighlightTextForeground', overviewRulerSelectionHighlightForeground, nls.localize(1554, 'Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations.'), true);
|
|
21
21
|
const _WRITE_OPTIONS = ModelDecorationOptions.register({
|
|
22
22
|
description: 'word-highlight-strong',
|
|
23
23
|
stickiness: 1 /* TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges */,
|
|
@@ -157,7 +157,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
157
157
|
this.logService = logService;
|
|
158
158
|
this._hasWordHighlights = ctxHasWordHighlights.bindTo(contextKeyService);
|
|
159
159
|
this._ignorePositionChangeEvent = false;
|
|
160
|
-
this.occurrencesHighlightEnablement = this.editor.getOption(
|
|
160
|
+
this.occurrencesHighlightEnablement = this.editor.getOption(90 /* EditorOption.occurrencesHighlight */);
|
|
161
161
|
this.occurrencesHighlightDelay = this.configurationService.getValue('editor.occurrencesHighlightDelay');
|
|
162
162
|
this.model = this.editor.getModel();
|
|
163
163
|
this.toUnhook.add(editor.onDidChangeCursorPosition((e) => {
|
|
@@ -195,7 +195,7 @@ let WordHighlighter = class WordHighlighter {
|
|
|
195
195
|
}
|
|
196
196
|
}));
|
|
197
197
|
this.toUnhook.add(editor.onDidChangeConfiguration((e) => {
|
|
198
|
-
const newEnablement = this.editor.getOption(
|
|
198
|
+
const newEnablement = this.editor.getOption(90 /* EditorOption.occurrencesHighlight */);
|
|
199
199
|
if (this.occurrencesHighlightEnablement !== newEnablement) {
|
|
200
200
|
this.occurrencesHighlightEnablement = newEnablement;
|
|
201
201
|
switch (newEnablement) {
|
|
@@ -584,10 +584,10 @@ let WordHighlighter = class WordHighlighter {
|
|
|
584
584
|
}
|
|
585
585
|
computeWithModel(model, selection, otherModels) {
|
|
586
586
|
if (!otherModels.length) {
|
|
587
|
-
return computeOccurencesAtPosition(this.providers, model, selection, this.editor.getOption(
|
|
587
|
+
return computeOccurencesAtPosition(this.providers, model, selection, this.editor.getOption(148 /* EditorOption.wordSeparators */));
|
|
588
588
|
}
|
|
589
589
|
else {
|
|
590
|
-
return computeOccurencesMultiModel(this.multiDocumentProviders, model, selection, this.editor.getOption(
|
|
590
|
+
return computeOccurencesMultiModel(this.multiDocumentProviders, model, selection, this.editor.getOption(148 /* EditorOption.wordSeparators */), otherModels);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
_beginRenderDecorations(delay) {
|
|
@@ -742,7 +742,7 @@ class NextWordHighlightAction extends WordHighlightNavigationAction {
|
|
|
742
742
|
constructor() {
|
|
743
743
|
super(true, {
|
|
744
744
|
id: 'editor.action.wordHighlight.next',
|
|
745
|
-
label: nls.localize2(
|
|
745
|
+
label: nls.localize2(1555, "Go to Next Symbol Highlight"),
|
|
746
746
|
precondition: ctxHasWordHighlights,
|
|
747
747
|
kbOpts: {
|
|
748
748
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -756,7 +756,7 @@ class PrevWordHighlightAction extends WordHighlightNavigationAction {
|
|
|
756
756
|
constructor() {
|
|
757
757
|
super(false, {
|
|
758
758
|
id: 'editor.action.wordHighlight.prev',
|
|
759
|
-
label: nls.localize2(
|
|
759
|
+
label: nls.localize2(1556, "Go to Previous Symbol Highlight"),
|
|
760
760
|
precondition: ctxHasWordHighlights,
|
|
761
761
|
kbOpts: {
|
|
762
762
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -770,7 +770,7 @@ class TriggerWordHighlightAction extends EditorAction {
|
|
|
770
770
|
constructor() {
|
|
771
771
|
super({
|
|
772
772
|
id: 'editor.action.wordHighlight.trigger',
|
|
773
|
-
label: nls.localize2(
|
|
773
|
+
label: nls.localize2(1557, "Trigger Symbol Highlight"),
|
|
774
774
|
precondition: undefined,
|
|
775
775
|
kbOpts: {
|
|
776
776
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -27,7 +27,7 @@ export class MoveWordCommand extends EditorCommand {
|
|
|
27
27
|
if (!editor.hasModel()) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
const wordSeparators = getMapForWordSeparators(editor.getOption(
|
|
30
|
+
const wordSeparators = getMapForWordSeparators(editor.getOption(148 /* EditorOption.wordSeparators */), editor.getOption(147 /* EditorOption.wordSegmenterLocales */));
|
|
31
31
|
const model = editor.getModel();
|
|
32
32
|
const selections = editor.getSelections();
|
|
33
33
|
const hasMulticursor = selections.length > 1;
|
|
@@ -272,7 +272,7 @@ export class DeleteWordCommand extends EditorCommand {
|
|
|
272
272
|
if (!editor.hasModel() || !languageConfigurationService) {
|
|
273
273
|
return;
|
|
274
274
|
}
|
|
275
|
-
const wordSeparators = getMapForWordSeparators(editor.getOption(
|
|
275
|
+
const wordSeparators = getMapForWordSeparators(editor.getOption(148 /* EditorOption.wordSeparators */), editor.getOption(147 /* EditorOption.wordSegmenterLocales */));
|
|
276
276
|
const model = editor.getModel();
|
|
277
277
|
const selections = editor.getSelections();
|
|
278
278
|
const autoClosingBrackets = editor.getOption(10 /* EditorOption.autoClosingBrackets */);
|
|
@@ -395,14 +395,14 @@ export class DeleteInsideWord extends EditorAction {
|
|
|
395
395
|
super({
|
|
396
396
|
id: 'deleteInsideWord',
|
|
397
397
|
precondition: EditorContextKeys.writable,
|
|
398
|
-
label: nls.localize2(
|
|
398
|
+
label: nls.localize2(1558, "Delete Word"),
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
401
|
run(accessor, editor, args) {
|
|
402
402
|
if (!editor.hasModel()) {
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
|
-
const wordSeparators = getMapForWordSeparators(editor.getOption(
|
|
405
|
+
const wordSeparators = getMapForWordSeparators(editor.getOption(148 /* EditorOption.wordSeparators */), editor.getOption(147 /* EditorOption.wordSegmenterLocales */));
|
|
406
406
|
const model = editor.getModel();
|
|
407
407
|
const selections = editor.getSelections();
|
|
408
408
|
const commands = selections.map((sel) => {
|
|
@@ -3610,6 +3610,10 @@ export namespace editor {
|
|
|
3610
3610
|
* Controls the max number of text cursors that can be in an active editor at once.
|
|
3611
3611
|
*/
|
|
3612
3612
|
multiCursorLimit?: number;
|
|
3613
|
+
/**
|
|
3614
|
+
* Enables middle mouse button to open links and Go To Definition
|
|
3615
|
+
*/
|
|
3616
|
+
mouseMiddleClickAction?: MouseMiddleClickAction;
|
|
3613
3617
|
/**
|
|
3614
3618
|
* Configure the editor's accessibility support.
|
|
3615
3619
|
* Defaults to 'auto'. It is best to leave this to 'auto'.
|
|
@@ -5141,91 +5145,92 @@ export namespace editor {
|
|
|
5141
5145
|
mouseWheelZoom = 84,
|
|
5142
5146
|
multiCursorMergeOverlapping = 85,
|
|
5143
5147
|
multiCursorModifier = 86,
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5148
|
+
mouseMiddleClickAction = 87,
|
|
5149
|
+
multiCursorPaste = 88,
|
|
5150
|
+
multiCursorLimit = 89,
|
|
5151
|
+
occurrencesHighlight = 90,
|
|
5152
|
+
occurrencesHighlightDelay = 91,
|
|
5153
|
+
overtypeCursorStyle = 92,
|
|
5154
|
+
overtypeOnPaste = 93,
|
|
5155
|
+
overviewRulerBorder = 94,
|
|
5156
|
+
overviewRulerLanes = 95,
|
|
5157
|
+
padding = 96,
|
|
5158
|
+
pasteAs = 97,
|
|
5159
|
+
parameterHints = 98,
|
|
5160
|
+
peekWidgetDefaultFocus = 99,
|
|
5161
|
+
placeholder = 100,
|
|
5162
|
+
definitionLinkOpensInPeek = 101,
|
|
5163
|
+
quickSuggestions = 102,
|
|
5164
|
+
quickSuggestionsDelay = 103,
|
|
5165
|
+
readOnly = 104,
|
|
5166
|
+
readOnlyMessage = 105,
|
|
5167
|
+
renameOnType = 106,
|
|
5168
|
+
renderRichScreenReaderContent = 107,
|
|
5169
|
+
renderControlCharacters = 108,
|
|
5170
|
+
renderFinalNewline = 109,
|
|
5171
|
+
renderLineHighlight = 110,
|
|
5172
|
+
renderLineHighlightOnlyWhenFocus = 111,
|
|
5173
|
+
renderValidationDecorations = 112,
|
|
5174
|
+
renderWhitespace = 113,
|
|
5175
|
+
revealHorizontalRightPadding = 114,
|
|
5176
|
+
roundedSelection = 115,
|
|
5177
|
+
rulers = 116,
|
|
5178
|
+
scrollbar = 117,
|
|
5179
|
+
scrollBeyondLastColumn = 118,
|
|
5180
|
+
scrollBeyondLastLine = 119,
|
|
5181
|
+
scrollPredominantAxis = 120,
|
|
5182
|
+
selectionClipboard = 121,
|
|
5183
|
+
selectionHighlight = 122,
|
|
5184
|
+
selectionHighlightMaxLength = 123,
|
|
5185
|
+
selectionHighlightMultiline = 124,
|
|
5186
|
+
selectOnLineNumbers = 125,
|
|
5187
|
+
showFoldingControls = 126,
|
|
5188
|
+
showUnused = 127,
|
|
5189
|
+
snippetSuggestions = 128,
|
|
5190
|
+
smartSelect = 129,
|
|
5191
|
+
smoothScrolling = 130,
|
|
5192
|
+
stickyScroll = 131,
|
|
5193
|
+
stickyTabStops = 132,
|
|
5194
|
+
stopRenderingLineAfter = 133,
|
|
5195
|
+
suggest = 134,
|
|
5196
|
+
suggestFontSize = 135,
|
|
5197
|
+
suggestLineHeight = 136,
|
|
5198
|
+
suggestOnTriggerCharacters = 137,
|
|
5199
|
+
suggestSelection = 138,
|
|
5200
|
+
tabCompletion = 139,
|
|
5201
|
+
tabIndex = 140,
|
|
5202
|
+
trimWhitespaceOnDelete = 141,
|
|
5203
|
+
unicodeHighlighting = 142,
|
|
5204
|
+
unusualLineTerminators = 143,
|
|
5205
|
+
useShadowDOM = 144,
|
|
5206
|
+
useTabStops = 145,
|
|
5207
|
+
wordBreak = 146,
|
|
5208
|
+
wordSegmenterLocales = 147,
|
|
5209
|
+
wordSeparators = 148,
|
|
5210
|
+
wordWrap = 149,
|
|
5211
|
+
wordWrapBreakAfterCharacters = 150,
|
|
5212
|
+
wordWrapBreakBeforeCharacters = 151,
|
|
5213
|
+
wordWrapColumn = 152,
|
|
5214
|
+
wordWrapOverride1 = 153,
|
|
5215
|
+
wordWrapOverride2 = 154,
|
|
5216
|
+
wrappingIndent = 155,
|
|
5217
|
+
wrappingStrategy = 156,
|
|
5218
|
+
showDeprecated = 157,
|
|
5219
|
+
inertialScroll = 158,
|
|
5220
|
+
inlayHints = 159,
|
|
5221
|
+
wrapOnEscapedLineFeeds = 160,
|
|
5222
|
+
effectiveCursorStyle = 161,
|
|
5223
|
+
editorClassName = 162,
|
|
5224
|
+
pixelRatio = 163,
|
|
5225
|
+
tabFocusMode = 164,
|
|
5226
|
+
layoutInfo = 165,
|
|
5227
|
+
wrappingInfo = 166,
|
|
5228
|
+
defaultColorDecorators = 167,
|
|
5229
|
+
colorDecoratorsActivatedOn = 168,
|
|
5230
|
+
inlineCompletionsAccessibilityVerbose = 169,
|
|
5231
|
+
effectiveEditContext = 170,
|
|
5232
|
+
scrollOnMiddleClick = 171,
|
|
5233
|
+
effectiveAllowVariableFonts = 172
|
|
5229
5234
|
}
|
|
5230
5235
|
|
|
5231
5236
|
export const EditorOptions: {
|
|
@@ -5321,6 +5326,7 @@ export namespace editor {
|
|
|
5321
5326
|
mouseWheelZoom: IEditorOption<EditorOption.mouseWheelZoom, boolean>;
|
|
5322
5327
|
multiCursorMergeOverlapping: IEditorOption<EditorOption.multiCursorMergeOverlapping, boolean>;
|
|
5323
5328
|
multiCursorModifier: IEditorOption<EditorOption.multiCursorModifier, 'altKey' | 'metaKey' | 'ctrlKey'>;
|
|
5329
|
+
mouseMiddleClickAction: IEditorOption<EditorOption.mouseMiddleClickAction, MouseMiddleClickAction>;
|
|
5324
5330
|
multiCursorPaste: IEditorOption<EditorOption.multiCursorPaste, 'spread' | 'full'>;
|
|
5325
5331
|
multiCursorLimit: IEditorOption<EditorOption.multiCursorLimit, number>;
|
|
5326
5332
|
occurrencesHighlight: IEditorOption<EditorOption.occurrencesHighlight, 'off' | 'singleFile' | 'multiFile'>;
|
|
@@ -5413,6 +5419,8 @@ export namespace editor {
|
|
|
5413
5419
|
|
|
5414
5420
|
export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>;
|
|
5415
5421
|
|
|
5422
|
+
export type MouseMiddleClickAction = 'default' | 'openLink' | 'ctrlLeftClick';
|
|
5423
|
+
|
|
5416
5424
|
export interface IEditorConstructionOptions extends IEditorOptions {
|
|
5417
5425
|
/**
|
|
5418
5426
|
* The initial editor dimension (to avoid measuring the container).
|
|
@@ -19,7 +19,7 @@ export class IPadShowKeyboard extends Disposable {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
update() {
|
|
22
|
-
const shouldHaveWidget = (!this.editor.getOption(
|
|
22
|
+
const shouldHaveWidget = (!this.editor.getOption(104 /* EditorOption.readOnly */));
|
|
23
23
|
if (!this.widget && shouldHaveWidget) {
|
|
24
24
|
this.widget = new ShowKeyboardWidget(this.editor);
|
|
25
25
|
}
|