monaco-editor-core 0.57.0 → 0.58.0-dev-20261104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +38 -6
- package/esm/vs/base/browser/browser.js +8 -0
- package/esm/vs/base/browser/browser.js.map +1 -1
- package/esm/vs/base/browser/contextmenu.js +8 -1
- package/esm/vs/base/browser/contextmenu.js.map +1 -1
- package/esm/vs/base/browser/dom.js +34 -5
- package/esm/vs/base/browser/dom.js.map +1 -1
- package/esm/vs/base/browser/dompurify/dompurify.js +2457 -2640
- package/esm/vs/base/browser/markdownRenderer.js +48 -21
- package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
- package/esm/vs/base/browser/pixelRatio.js +3 -2
- package/esm/vs/base/browser/pixelRatio.js.map +1 -1
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js.map +1 -1
- package/esm/vs/base/browser/ui/actionbar/actionbar.js +7 -2
- package/esm/vs/base/browser/ui/actionbar/actionbar.js.map +1 -1
- package/esm/vs/base/browser/ui/animations/animations.js +68 -40
- package/esm/vs/base/browser/ui/animations/animations.js.map +1 -1
- package/esm/vs/base/browser/ui/button/button.js +7 -0
- package/esm/vs/base/browser/ui/button/button.js.map +1 -1
- package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/esm/vs/base/browser/ui/contextview/contextview.css +15 -0
- package/esm/vs/base/browser/ui/contextview/contextview.js +266 -40
- package/esm/vs/base/browser/ui/contextview/contextview.js.map +1 -1
- package/esm/vs/base/browser/ui/contextview/windowControlsOverlay.js +72 -0
- package/esm/vs/base/browser/ui/contextview/windowControlsOverlay.js.map +1 -0
- package/esm/vs/base/browser/ui/dialog/dialog.css +5 -0
- package/esm/vs/base/browser/ui/dropdown/dropdown.js +2 -1
- package/esm/vs/base/browser/ui/dropdown/dropdown.js.map +1 -1
- package/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -0
- package/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js.map +1 -1
- package/esm/vs/base/browser/ui/hover/hover.js.map +1 -1
- package/esm/vs/base/browser/ui/list/listView.js +87 -15
- package/esm/vs/base/browser/ui/list/listView.js.map +1 -1
- package/esm/vs/base/browser/ui/list/listWidget.js +37 -15
- package/esm/vs/base/browser/ui/list/listWidget.js.map +1 -1
- package/esm/vs/base/browser/ui/menu/menu.js +189 -52
- package/esm/vs/base/browser/ui/menu/menu.js.map +1 -1
- package/esm/vs/base/browser/ui/radio/radio.css +11 -0
- package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -1
- package/esm/vs/base/browser/ui/scrollbar/scrollableElement.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBox.js.map +1 -1
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -8
- package/esm/vs/base/browser/ui/selectBox/selectBoxCustom.js.map +1 -1
- package/esm/vs/base/browser/ui/splitview/splitview.js +11 -7
- package/esm/vs/base/browser/ui/splitview/splitview.js.map +1 -1
- package/esm/vs/base/browser/ui/toggle/switch.css +16 -7
- package/esm/vs/base/browser/ui/toggle/switch.js +9 -6
- package/esm/vs/base/browser/ui/toggle/switch.js.map +1 -1
- package/esm/vs/base/browser/ui/toolbar/toolbar.css +1 -2
- package/esm/vs/base/browser/ui/toolbar/toolbar.js +85 -38
- package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/abstractTree.js +48 -9
- package/esm/vs/base/browser/ui/tree/abstractTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/asyncDataTree.js +10 -1
- package/esm/vs/base/browser/ui/tree/asyncDataTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/objectTree.js +3 -0
- package/esm/vs/base/browser/ui/tree/objectTree.js.map +1 -1
- package/esm/vs/base/browser/ui/tree/tree.js.map +1 -1
- package/esm/vs/base/common/actions.js +8 -2
- package/esm/vs/base/common/actions.js.map +1 -1
- package/esm/vs/base/common/arrays.js +4 -4
- package/esm/vs/base/common/arrays.js.map +1 -1
- package/esm/vs/base/common/async.js +12 -8
- package/esm/vs/base/common/async.js.map +1 -1
- package/esm/vs/base/common/cancellation.js +25 -0
- package/esm/vs/base/common/cancellation.js.map +1 -1
- package/esm/vs/base/common/codicons.js +2 -0
- package/esm/vs/base/common/codicons.js.map +1 -1
- package/esm/vs/base/common/codiconsLibrary.js +2 -0
- package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
- package/esm/vs/base/common/color.js +1 -1
- package/esm/vs/base/common/color.js.map +1 -1
- package/esm/vs/base/common/diff/diff.js +60 -1
- package/esm/vs/base/common/diff/diff.js.map +1 -1
- package/esm/vs/base/common/event.js +1 -1
- package/esm/vs/base/common/event.js.map +1 -1
- package/esm/vs/base/common/glob.js +1 -0
- package/esm/vs/base/common/glob.js.map +1 -1
- package/esm/vs/base/common/htmlContent.js +74 -12
- package/esm/vs/base/common/htmlContent.js.map +1 -1
- package/esm/vs/base/common/json.js +19 -0
- package/esm/vs/base/common/json.js.map +1 -0
- package/esm/vs/base/common/network.js +16 -0
- package/esm/vs/base/common/network.js.map +1 -1
- package/esm/vs/base/common/resources.js +14 -2
- package/esm/vs/base/common/resources.js.map +1 -1
- package/esm/vs/base/common/strings.js +1 -1
- package/esm/vs/base/common/strings.js.map +1 -1
- package/esm/vs/base/common/uri.js +2 -2
- package/esm/vs/base/common/uri.js.map +1 -1
- package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/esm/vs/editor/browser/config/fontMeasurements.js +19 -6
- package/esm/vs/editor/browser/config/fontMeasurements.js.map +1 -1
- package/esm/vs/editor/browser/controller/dragScrolling.js +3 -3
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js +11 -5
- package/esm/vs/editor/browser/controller/editContext/clipboardUtils.js.map +1 -1
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +8 -38
- package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js.map +1 -1
- 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 +12 -10
- package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js.map +1 -1
- package/esm/vs/editor/browser/controller/mouseHandler.js +7 -7
- package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
- package/esm/vs/editor/browser/coreCommands.js +2 -2
- package/esm/vs/editor/browser/editorBrowser.js.map +1 -1
- package/esm/vs/editor/browser/editorMarkdownSanitizer.js +19 -0
- package/esm/vs/editor/browser/editorMarkdownSanitizer.js.map +1 -0
- 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/services/editorWorkerService.js +3 -2
- package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
- package/esm/vs/editor/browser/services/openerService.js +6 -2
- package/esm/vs/editor/browser/services/openerService.js.map +1 -1
- package/esm/vs/editor/browser/view/domLineBreaksComputer.js +34 -11
- package/esm/vs/editor/browser/view/domLineBreaksComputer.js.map +1 -1
- package/esm/vs/editor/browser/view/viewController.js +7 -7
- package/esm/vs/editor/browser/view/viewController.js.map +1 -1
- 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 +11 -3
- package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
- package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +12 -12
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +9 -2
- package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js.map +1 -1
- 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 +6 -6
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +9 -2
- package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js.map +1 -1
- package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +5 -5
- 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 +5 -5
- 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/viewParts/wordWrapIndicator/wordWrapIndicator.js +2 -2
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +22 -21
- package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +18 -18
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +10 -10
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +4 -4
- package/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +21 -3
- package/esm/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js.map +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +10 -10
- package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.js +2 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollLayout.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.js +21 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/compressedVirtualizedScrollView.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -2
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +11 -3
- package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js.map +1 -1
- package/esm/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.js +1 -0
- package/esm/vs/editor/browser/widget/multiDiffEditor/virtualizedItemManager.js.map +1 -1
- package/esm/vs/editor/common/commands/columnSelectionPasteCommand.js +64 -0
- package/esm/vs/editor/common/commands/columnSelectionPasteCommand.js.map +1 -0
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +68 -58
- package/esm/vs/editor/common/config/editorConfigurationSchema.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +560 -500
- package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
- package/esm/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/esm/vs/editor/common/core/edits/textEdit.js +16 -0
- package/esm/vs/editor/common/core/edits/textEdit.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursor.js +20 -10
- package/esm/vs/editor/common/cursor/cursor.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js +67 -14
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeOperations.js +2 -2
- package/esm/vs/editor/common/cursor/cursorTypeOperations.js.map +1 -1
- package/esm/vs/editor/common/cursorCommon.js +22 -21
- package/esm/vs/editor/common/cursorCommon.js.map +1 -1
- package/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +21 -8
- package/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js.map +1 -1
- package/esm/vs/editor/common/diff/documentDiffProvider.js.map +1 -1
- package/esm/vs/editor/common/diff/externalLinesDiffComputer.js +38 -26
- package/esm/vs/editor/common/diff/externalLinesDiffComputer.js.map +1 -1
- package/esm/vs/editor/common/diff/rangeMapping.js +11 -1
- package/esm/vs/editor/common/diff/rangeMapping.js.map +1 -1
- package/esm/vs/editor/common/diff/verifyLinesDiff.js +28 -0
- package/esm/vs/editor/common/diff/verifyLinesDiff.js.map +1 -0
- package/esm/vs/editor/common/editorContextKeys.js +53 -53
- package/esm/vs/editor/common/languages/languageConfiguration.js +8 -0
- package/esm/vs/editor/common/languages/languageConfiguration.js.map +1 -1
- 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/services/editorWebWorker.js +27 -6
- package/esm/vs/editor/common/services/editorWebWorker.js.map +1 -1
- package/esm/vs/editor/common/services/editorWorker.js.map +1 -1
- package/esm/vs/editor/common/services/languageService.js +6 -4
- package/esm/vs/editor/common/services/languageService.js.map +1 -1
- package/esm/vs/editor/common/services/markerDecorationsService.js +21 -2
- package/esm/vs/editor/common/services/markerDecorationsService.js.map +1 -1
- package/esm/vs/editor/common/standalone/standaloneEnums.js +100 -97
- package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/textModelEditSource.js +9 -0
- package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
- package/esm/vs/editor/common/viewLayout/viewLayout.js +16 -16
- 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 +19 -19
- package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +9 -9
- 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 +23 -20
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js.map +1 -1
- 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 +25 -10
- package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js.map +1 -1
- 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 +3 -3
- 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 +17 -17
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js.map +1 -1
- 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 +39 -39
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js.map +1 -1
- 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/pasteEditSession.js +19 -0
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/pasteEditSession.js.map +1 -0
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +26 -18
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js.map +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js.map +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +18 -18
- package/esm/vs/editor/contrib/find/browser/findController.js.map +1 -1
- package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
- package/esm/vs/editor/contrib/find/browser/findWidget.js +40 -40
- package/esm/vs/editor/contrib/find/browser/findWidget.js.map +1 -1
- 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/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 +3 -3
- 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/referencesController.js.map +1 -1
- 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/contentHoverController.js +9 -3
- package/esm/vs/editor/contrib/hover/browser/contentHoverController.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/glyphHoverController.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +2 -1
- package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js.map +1 -1
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -8
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
- 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 +9 -9
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +3 -3
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +7 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +7 -7
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +5 -4
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js.map +1 -1
- package/esm/vs/editor/contrib/links/browser/links.js +16 -15
- 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 +16 -12
- package/esm/vs/editor/contrib/message/browser/messageController.js.map +1 -1
- package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +91 -55
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js.map +1 -1
- 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/parameterHintsModel.js.map +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +6 -4
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
- 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/quickAccess/browser/editorNavigationQuickAccess.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +12 -12
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +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/sectionHeaders/browser/sectionHeaders.js +6 -6
- package/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +23 -13
- package/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js.map +1 -1
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +5 -5
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- 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 +10 -8
- 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 +2 -2
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +6 -6
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +15 -15
- 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 +27 -27
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +8 -6
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js.map +1 -1
- 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/textualHighlightProvider.js +1 -1
- package/esm/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js.map +1 -1
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +50 -14
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js.map +1 -1
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +6 -6
- package/esm/vs/editor/editor.api.d.ts +133 -98
- package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +5 -3
- package/esm/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js.map +1 -1
- package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js +15 -1
- package/esm/vs/editor/standalone/browser/standaloneCodeEditor.js.map +1 -1
- package/esm/vs/nls.js.map +1 -1
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +72 -66
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js.map +1 -1
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +434 -136
- package/esm/vs/platform/actionWidget/browser/actionList.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidget.css +74 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +24 -26
- package/esm/vs/platform/actionWidget/browser/actionWidget.js.map +1 -1
- package/esm/vs/platform/actionWidget/browser/actionWidgetMotion.js +16 -0
- package/esm/vs/platform/actionWidget/browser/actionWidgetMotion.js.map +1 -0
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +15 -17
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js.map +1 -1
- package/esm/vs/platform/actions/browser/toolbar.js +25 -12
- package/esm/vs/platform/actions/browser/toolbar.js.map +1 -1
- package/esm/vs/platform/actions/common/actions.js +4 -2
- package/esm/vs/platform/actions/common/actions.js.map +1 -1
- package/esm/vs/platform/actions/common/menuService.js +15 -8
- package/esm/vs/platform/actions/common/menuService.js.map +1 -1
- package/esm/vs/platform/configuration/common/configuration.js +3 -1
- package/esm/vs/platform/configuration/common/configuration.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationModels.js +16 -11
- package/esm/vs/platform/configuration/common/configurationModels.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurationRegistry.js +29 -27
- package/esm/vs/platform/configuration/common/configurationRegistry.js.map +1 -1
- package/esm/vs/platform/configuration/common/configurations.js +13 -1
- package/esm/vs/platform/configuration/common/configurations.js.map +1 -1
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +2 -2
- package/esm/vs/platform/contextkey/browser/contextKeyService.js.map +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +28 -14
- package/esm/vs/platform/contextkey/common/contextkey.js.map +1 -1
- package/esm/vs/platform/contextkey/common/contextkeys.js +10 -10
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/contextview/browser/contextMenuHandler.js +17 -4
- package/esm/vs/platform/contextview/browser/contextMenuHandler.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextMenuService.js +1 -1
- package/esm/vs/platform/contextview/browser/contextMenuService.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextView.js.map +1 -1
- package/esm/vs/platform/contextview/browser/contextViewService.js +7 -2
- package/esm/vs/platform/contextview/browser/contextViewService.js.map +1 -1
- package/esm/vs/platform/editor/common/editor.js +17 -0
- package/esm/vs/platform/editor/common/editor.js.map +1 -1
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverService.js +6 -3
- package/esm/vs/platform/hover/browser/hoverService.js.map +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +38 -6
- package/esm/vs/platform/hover/browser/hoverWidget.js.map +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +32 -5
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js.map +1 -1
- package/esm/vs/platform/instantiation/common/instantiationService.js +1 -1
- package/esm/vs/platform/instantiation/common/instantiationService.js.map +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/esm/vs/platform/keybinding/common/keybindingResolver.js +1 -1
- package/esm/vs/platform/keybinding/common/keybindingResolver.js.map +1 -1
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +11 -8
- package/esm/vs/platform/markers/common/markerService.js.map +1 -1
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/markers/common/markers.js.map +1 -1
- package/esm/vs/platform/notification/common/notification.js.map +1 -1
- package/esm/vs/platform/notification/common/notificationMessage.js +37 -0
- package/esm/vs/platform/notification/common/notificationMessage.js.map +1 -0
- package/esm/vs/platform/opener/common/opener.js.map +1 -1
- package/esm/vs/platform/progress/common/progress.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +33 -2
- package/esm/vs/platform/quickinput/browser/quickAccess.js +7 -4
- package/esm/vs/platform/quickinput/browser/quickAccess.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputController.js +65 -15
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +96 -90
- package/esm/vs/platform/quickinput/browser/quickInputList.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputService.js +5 -7
- package/esm/vs/platform/quickinput/browser/quickInputService.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
- package/esm/vs/platform/quickinput/common/quickAccess.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/storage/common/storage.js.map +1 -1
- package/esm/vs/platform/theme/common/colorRegistry.js +1 -0
- package/esm/vs/platform/theme/common/colorRegistry.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +11 -3
- package/esm/vs/platform/theme/common/colorUtils.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/baseColors.js +19 -19
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -9
- package/esm/vs/platform/theme/common/colors/chartsColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/confettiColors.js +14 -0
- package/esm/vs/platform/theme/common/colors/confettiColors.js.map +1 -0
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +48 -48
- package/esm/vs/platform/theme/common/colors/inputColors.js.map +1 -1
- 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 +13 -13
- package/esm/vs/platform/theme/common/colors/minimapColors.js.map +1 -1
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +10 -10
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/monaco.d.ts +133 -98
- package/package.json +3 -3
- package/version.txt +1 -1
|
@@ -304,13 +304,13 @@ class EditorAccessibilitySupport extends BaseEditorOption {
|
|
|
304
304
|
type: 'string',
|
|
305
305
|
enum: ['auto', 'on', 'off'],
|
|
306
306
|
enumDescriptions: [
|
|
307
|
-
nls.localize(
|
|
308
|
-
nls.localize(
|
|
309
|
-
nls.localize(
|
|
307
|
+
nls.localize(228, "Use platform APIs to detect when a Screen Reader is attached."),
|
|
308
|
+
nls.localize(229, "Optimize for usage with a Screen Reader."),
|
|
309
|
+
nls.localize(230, "Assume a screen reader is not attached."),
|
|
310
310
|
],
|
|
311
311
|
default: 'auto',
|
|
312
312
|
tags: ['accessibility'],
|
|
313
|
-
description: nls.localize(
|
|
313
|
+
description: nls.localize(231, "Controls if the UI should run in a mode where it is optimized for screen readers.")
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
validate(input) {
|
|
@@ -339,12 +339,12 @@ class EditorComments extends BaseEditorOption {
|
|
|
339
339
|
'editor.comments.insertSpace': {
|
|
340
340
|
type: 'boolean',
|
|
341
341
|
default: defaults.insertSpace,
|
|
342
|
-
description: nls.localize(
|
|
342
|
+
description: nls.localize(232, "Controls whether a space character is inserted when commenting.")
|
|
343
343
|
},
|
|
344
344
|
'editor.comments.ignoreEmptyLines': {
|
|
345
345
|
type: 'boolean',
|
|
346
346
|
default: defaults.ignoreEmptyLines,
|
|
347
|
-
description: nls.localize(
|
|
347
|
+
description: nls.localize(233, 'Controls if empty lines should be ignored with toggle, add or remove actions for line comments.')
|
|
348
348
|
},
|
|
349
349
|
});
|
|
350
350
|
}
|
|
@@ -420,7 +420,7 @@ export function cursorStyleFromString(cursorStyle) {
|
|
|
420
420
|
//#region editorClassName
|
|
421
421
|
class EditorClassName extends ComputedEditorOption {
|
|
422
422
|
constructor() {
|
|
423
|
-
super(
|
|
423
|
+
super(166 /* EditorOption.editorClassName */, '');
|
|
424
424
|
}
|
|
425
425
|
compute(env, options, _) {
|
|
426
426
|
const classNames = ['monaco-editor'];
|
|
@@ -430,16 +430,16 @@ class EditorClassName extends ComputedEditorOption {
|
|
|
430
430
|
if (env.extraEditorClassName) {
|
|
431
431
|
classNames.push(env.extraEditorClassName);
|
|
432
432
|
}
|
|
433
|
-
if (options.get(
|
|
433
|
+
if (options.get(83 /* EditorOption.mouseStyle */) === 'default') {
|
|
434
434
|
classNames.push('mouse-default');
|
|
435
435
|
}
|
|
436
|
-
else if (options.get(
|
|
436
|
+
else if (options.get(83 /* EditorOption.mouseStyle */) === 'copy') {
|
|
437
437
|
classNames.push('mouse-copy');
|
|
438
438
|
}
|
|
439
|
-
if (options.get(
|
|
439
|
+
if (options.get(130 /* EditorOption.showUnused */)) {
|
|
440
440
|
classNames.push('showUnused');
|
|
441
441
|
}
|
|
442
|
-
if (options.get(
|
|
442
|
+
if (options.get(160 /* EditorOption.showDeprecated */)) {
|
|
443
443
|
classNames.push('showDeprecated');
|
|
444
444
|
}
|
|
445
445
|
return classNames.join(' ');
|
|
@@ -449,7 +449,7 @@ class EditorClassName extends ComputedEditorOption {
|
|
|
449
449
|
//#region emptySelectionClipboard
|
|
450
450
|
class EditorEmptySelectionClipboard extends EditorBooleanOption {
|
|
451
451
|
constructor() {
|
|
452
|
-
super(45 /* EditorOption.emptySelectionClipboard */, 'emptySelectionClipboard', true, { description: nls.localize(
|
|
452
|
+
super(45 /* EditorOption.emptySelectionClipboard */, 'emptySelectionClipboard', true, { description: nls.localize(234, "Controls whether copying without a selection copies the current line.") });
|
|
453
453
|
}
|
|
454
454
|
compute(env, options, value) {
|
|
455
455
|
return value && env.emptySelectionClipboard;
|
|
@@ -473,75 +473,75 @@ class EditorFind extends BaseEditorOption {
|
|
|
473
473
|
'editor.find.cursorMoveOnType': {
|
|
474
474
|
type: 'boolean',
|
|
475
475
|
default: defaults.cursorMoveOnType,
|
|
476
|
-
description: nls.localize(
|
|
476
|
+
description: nls.localize(235, "Controls whether the cursor should jump to find matches while typing.")
|
|
477
477
|
},
|
|
478
478
|
'editor.find.seedSearchStringFromSelection': {
|
|
479
479
|
type: 'string',
|
|
480
480
|
enum: ['never', 'always', 'selection'],
|
|
481
481
|
default: defaults.seedSearchStringFromSelection,
|
|
482
482
|
enumDescriptions: [
|
|
483
|
-
nls.localize(
|
|
484
|
-
nls.localize(
|
|
485
|
-
nls.localize(
|
|
483
|
+
nls.localize(236, 'Never seed search string from the editor selection.'),
|
|
484
|
+
nls.localize(237, 'Always seed search string from the editor selection, including word at cursor position.'),
|
|
485
|
+
nls.localize(238, 'Only seed search string from the editor selection.')
|
|
486
486
|
],
|
|
487
|
-
description: nls.localize(
|
|
487
|
+
description: nls.localize(239, "Controls whether the search string in the Find Widget is seeded from the editor selection.")
|
|
488
488
|
},
|
|
489
489
|
'editor.find.autoFindInSelection': {
|
|
490
490
|
type: 'string',
|
|
491
491
|
enum: ['never', 'always', 'multiline'],
|
|
492
492
|
default: defaults.autoFindInSelection,
|
|
493
493
|
enumDescriptions: [
|
|
494
|
-
nls.localize(
|
|
495
|
-
nls.localize(
|
|
496
|
-
nls.localize(
|
|
494
|
+
nls.localize(240, 'Never turn on Find in Selection automatically (default).'),
|
|
495
|
+
nls.localize(241, 'Always turn on Find in Selection automatically.'),
|
|
496
|
+
nls.localize(242, 'Turn on Find in Selection automatically when multiple lines of content are selected.')
|
|
497
497
|
],
|
|
498
|
-
description: nls.localize(
|
|
498
|
+
description: nls.localize(243, "Controls the condition for turning on Find in Selection automatically.")
|
|
499
499
|
},
|
|
500
500
|
'editor.find.globalFindClipboard': {
|
|
501
501
|
type: 'boolean',
|
|
502
502
|
default: defaults.globalFindClipboard,
|
|
503
|
-
description: nls.localize(
|
|
503
|
+
description: nls.localize(244, "Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),
|
|
504
504
|
included: platform.isMacintosh
|
|
505
505
|
},
|
|
506
506
|
'editor.find.addExtraSpaceOnTop': {
|
|
507
507
|
type: 'boolean',
|
|
508
508
|
default: defaults.addExtraSpaceOnTop,
|
|
509
|
-
description: nls.localize(
|
|
509
|
+
description: nls.localize(245, "Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")
|
|
510
510
|
},
|
|
511
511
|
'editor.find.loop': {
|
|
512
512
|
type: 'boolean',
|
|
513
513
|
default: defaults.loop,
|
|
514
|
-
description: nls.localize(
|
|
514
|
+
description: nls.localize(246, "Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")
|
|
515
515
|
},
|
|
516
516
|
'editor.find.closeOnResult': {
|
|
517
517
|
type: 'boolean',
|
|
518
518
|
default: defaults.closeOnResult,
|
|
519
|
-
description: nls.localize(
|
|
519
|
+
description: nls.localize(247, "Controls whether the Find Widget closes after an explicit find navigation command lands on a result.")
|
|
520
520
|
},
|
|
521
521
|
'editor.find.history': {
|
|
522
522
|
type: 'string',
|
|
523
523
|
enum: ['never', 'workspace'],
|
|
524
524
|
default: 'workspace',
|
|
525
525
|
enumDescriptions: [
|
|
526
|
-
nls.localize(
|
|
527
|
-
nls.localize(
|
|
526
|
+
nls.localize(248, 'Do not store search history from the find widget.'),
|
|
527
|
+
nls.localize(249, 'Store search history across the active workspace'),
|
|
528
528
|
],
|
|
529
|
-
description: nls.localize(
|
|
529
|
+
description: nls.localize(250, "Controls how the find widget history should be stored")
|
|
530
530
|
},
|
|
531
531
|
'editor.find.replaceHistory': {
|
|
532
532
|
type: 'string',
|
|
533
533
|
enum: ['never', 'workspace'],
|
|
534
534
|
default: 'workspace',
|
|
535
535
|
enumDescriptions: [
|
|
536
|
-
nls.localize(
|
|
537
|
-
nls.localize(
|
|
536
|
+
nls.localize(251, 'Do not store history from the replace widget.'),
|
|
537
|
+
nls.localize(252, 'Store replace history across the active workspace'),
|
|
538
538
|
],
|
|
539
|
-
description: nls.localize(
|
|
539
|
+
description: nls.localize(253, "Controls how the replace widget history should be stored")
|
|
540
540
|
},
|
|
541
541
|
'editor.find.findOnType': {
|
|
542
542
|
type: 'boolean',
|
|
543
543
|
default: defaults.findOnType,
|
|
544
|
-
description: nls.localize(
|
|
544
|
+
description: nls.localize(254, "Controls whether the Find Widget should search as you type.")
|
|
545
545
|
},
|
|
546
546
|
});
|
|
547
547
|
}
|
|
@@ -581,14 +581,14 @@ export class EditorFontLigatures extends BaseEditorOption {
|
|
|
581
581
|
anyOf: [
|
|
582
582
|
{
|
|
583
583
|
type: 'boolean',
|
|
584
|
-
description: nls.localize(
|
|
584
|
+
description: nls.localize(255, "Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property."),
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
type: 'string',
|
|
588
|
-
description: nls.localize(
|
|
588
|
+
description: nls.localize(256, "Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")
|
|
589
589
|
}
|
|
590
590
|
],
|
|
591
|
-
description: nls.localize(
|
|
591
|
+
description: nls.localize(257, "Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),
|
|
592
592
|
default: false
|
|
593
593
|
});
|
|
594
594
|
}
|
|
@@ -626,14 +626,14 @@ export class EditorFontVariations extends BaseEditorOption {
|
|
|
626
626
|
anyOf: [
|
|
627
627
|
{
|
|
628
628
|
type: 'boolean',
|
|
629
|
-
description: nls.localize(
|
|
629
|
+
description: nls.localize(258, "Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property."),
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
632
|
type: 'string',
|
|
633
|
-
description: nls.localize(
|
|
633
|
+
description: nls.localize(259, "Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")
|
|
634
634
|
}
|
|
635
635
|
],
|
|
636
|
-
description: nls.localize(
|
|
636
|
+
description: nls.localize(260, "Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),
|
|
637
637
|
default: false
|
|
638
638
|
});
|
|
639
639
|
}
|
|
@@ -692,11 +692,11 @@ class EditorFontInfo extends ComputedEditorOption {
|
|
|
692
692
|
//#region effectiveCursorStyle
|
|
693
693
|
class EffectiveCursorStyle extends ComputedEditorOption {
|
|
694
694
|
constructor() {
|
|
695
|
-
super(
|
|
695
|
+
super(165 /* EditorOption.effectiveCursorStyle */, TextEditorCursorStyle.Line);
|
|
696
696
|
}
|
|
697
697
|
compute(env, options, _) {
|
|
698
698
|
return env.inputMode === 'overtype' ?
|
|
699
|
-
options.get(
|
|
699
|
+
options.get(94 /* EditorOption.overtypeCursorStyle */) :
|
|
700
700
|
options.get(34 /* EditorOption.cursorStyle */);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -704,7 +704,7 @@ class EffectiveCursorStyle extends ComputedEditorOption {
|
|
|
704
704
|
//#region effectiveExperimentalEditContext
|
|
705
705
|
class EffectiveEditContextEnabled extends ComputedEditorOption {
|
|
706
706
|
constructor() {
|
|
707
|
-
super(
|
|
707
|
+
super(174 /* EditorOption.effectiveEditContext */, false);
|
|
708
708
|
}
|
|
709
709
|
compute(env, options) {
|
|
710
710
|
return env.editContextSupported && options.get(44 /* EditorOption.editContext */);
|
|
@@ -714,7 +714,7 @@ class EffectiveEditContextEnabled extends ComputedEditorOption {
|
|
|
714
714
|
//#region effectiveAllowVariableFonts
|
|
715
715
|
class EffectiveAllowVariableFonts extends ComputedEditorOption {
|
|
716
716
|
constructor() {
|
|
717
|
-
super(
|
|
717
|
+
super(176 /* EditorOption.effectiveAllowVariableFonts */, false);
|
|
718
718
|
}
|
|
719
719
|
compute(env, options) {
|
|
720
720
|
const accessibilitySupport = env.accessibilitySupport;
|
|
@@ -730,10 +730,10 @@ class EffectiveAllowVariableFonts extends ComputedEditorOption {
|
|
|
730
730
|
//#region effectiveFullwidthCharacterWidth
|
|
731
731
|
class EffectiveFullwidthCharacterWidth extends ComputedEditorOption {
|
|
732
732
|
constructor() {
|
|
733
|
-
super(
|
|
733
|
+
super(179 /* EditorOption.effectiveFullwidthCharacterWidth */, 'font');
|
|
734
734
|
}
|
|
735
735
|
compute(env, options) {
|
|
736
|
-
if (options.get(
|
|
736
|
+
if (options.get(178 /* EditorOption.fullwidthCharacterWidth */) === 'twoCells' && env.fontInfo.isMonospace) {
|
|
737
737
|
return 'twoCells';
|
|
738
738
|
}
|
|
739
739
|
return 'font';
|
|
@@ -748,7 +748,7 @@ class EditorFontSize extends SimpleEditorOption {
|
|
|
748
748
|
minimum: 6,
|
|
749
749
|
maximum: 100,
|
|
750
750
|
default: EDITOR_FONT_DEFAULTS.fontSize,
|
|
751
|
-
description: nls.localize(
|
|
751
|
+
description: nls.localize(261, "Controls the font size in pixels.")
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
754
|
validate(input) {
|
|
@@ -777,7 +777,7 @@ class EditorFontWeight extends BaseEditorOption {
|
|
|
777
777
|
type: 'number',
|
|
778
778
|
minimum: EditorFontWeight.MINIMUM_VALUE,
|
|
779
779
|
maximum: EditorFontWeight.MAXIMUM_VALUE,
|
|
780
|
-
errorMessage: nls.localize(
|
|
780
|
+
errorMessage: nls.localize(262, "Only \"normal\" and \"bold\" keywords or numbers between 1 and 1000 are allowed.")
|
|
781
781
|
},
|
|
782
782
|
{
|
|
783
783
|
type: 'string',
|
|
@@ -788,7 +788,7 @@ class EditorFontWeight extends BaseEditorOption {
|
|
|
788
788
|
}
|
|
789
789
|
],
|
|
790
790
|
default: EDITOR_FONT_DEFAULTS.fontWeight,
|
|
791
|
-
description: nls.localize(
|
|
791
|
+
description: nls.localize(263, "Controls the font weight. Accepts \"normal\" and \"bold\" keywords or numbers between 1 and 1000.")
|
|
792
792
|
});
|
|
793
793
|
}
|
|
794
794
|
validate(input) {
|
|
@@ -820,65 +820,65 @@ class EditorGoToLocation extends BaseEditorOption {
|
|
|
820
820
|
enum: ['peek', 'gotoAndPeek', 'goto'],
|
|
821
821
|
default: defaults.multiple,
|
|
822
822
|
enumDescriptions: [
|
|
823
|
-
nls.localize(
|
|
824
|
-
nls.localize(
|
|
825
|
-
nls.localize(
|
|
823
|
+
nls.localize(264, 'Show Peek view of the results (default)'),
|
|
824
|
+
nls.localize(265, 'Go to the primary result and show a Peek view'),
|
|
825
|
+
nls.localize(266, 'Go to the primary result and enable Peek-less navigation to others')
|
|
826
826
|
]
|
|
827
827
|
};
|
|
828
828
|
const alternativeCommandOptions = ['', 'editor.action.referenceSearch.trigger', 'editor.action.goToReferences', 'editor.action.peekImplementation', 'editor.action.goToImplementation', 'editor.action.peekTypeDefinition', 'editor.action.goToTypeDefinition', 'editor.action.peekDeclaration', 'editor.action.revealDeclaration', 'editor.action.peekDefinition', 'editor.action.revealDefinitionAside', 'editor.action.revealDefinition'];
|
|
829
829
|
super(67 /* EditorOption.gotoLocation */, 'gotoLocation', defaults, {
|
|
830
830
|
'editor.gotoLocation.multiple': {
|
|
831
|
-
deprecationMessage: nls.localize(
|
|
831
|
+
deprecationMessage: nls.localize(267, "This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead."),
|
|
832
832
|
},
|
|
833
833
|
'editor.gotoLocation.multipleDefinitions': {
|
|
834
|
-
description: nls.localize(
|
|
834
|
+
description: nls.localize(268, "Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),
|
|
835
835
|
...jsonSubset,
|
|
836
836
|
},
|
|
837
837
|
'editor.gotoLocation.multipleTypeDefinitions': {
|
|
838
|
-
description: nls.localize(
|
|
838
|
+
description: nls.localize(269, "Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),
|
|
839
839
|
...jsonSubset,
|
|
840
840
|
},
|
|
841
841
|
'editor.gotoLocation.multipleDeclarations': {
|
|
842
|
-
description: nls.localize(
|
|
842
|
+
description: nls.localize(270, "Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),
|
|
843
843
|
...jsonSubset,
|
|
844
844
|
},
|
|
845
845
|
'editor.gotoLocation.multipleImplementations': {
|
|
846
|
-
description: nls.localize(
|
|
846
|
+
description: nls.localize(271, "Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),
|
|
847
847
|
...jsonSubset,
|
|
848
848
|
},
|
|
849
849
|
'editor.gotoLocation.multipleReferences': {
|
|
850
|
-
description: nls.localize(
|
|
850
|
+
description: nls.localize(272, "Controls the behavior the 'Go to References'-command when multiple target locations exist."),
|
|
851
851
|
...jsonSubset,
|
|
852
852
|
},
|
|
853
853
|
'editor.gotoLocation.alternativeDefinitionCommand': {
|
|
854
854
|
type: 'string',
|
|
855
855
|
default: defaults.alternativeDefinitionCommand,
|
|
856
856
|
enum: alternativeCommandOptions,
|
|
857
|
-
description: nls.localize(
|
|
857
|
+
description: nls.localize(273, "Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")
|
|
858
858
|
},
|
|
859
859
|
'editor.gotoLocation.alternativeTypeDefinitionCommand': {
|
|
860
860
|
type: 'string',
|
|
861
861
|
default: defaults.alternativeTypeDefinitionCommand,
|
|
862
862
|
enum: alternativeCommandOptions,
|
|
863
|
-
description: nls.localize(
|
|
863
|
+
description: nls.localize(274, "Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")
|
|
864
864
|
},
|
|
865
865
|
'editor.gotoLocation.alternativeDeclarationCommand': {
|
|
866
866
|
type: 'string',
|
|
867
867
|
default: defaults.alternativeDeclarationCommand,
|
|
868
868
|
enum: alternativeCommandOptions,
|
|
869
|
-
description: nls.localize(
|
|
869
|
+
description: nls.localize(275, "Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")
|
|
870
870
|
},
|
|
871
871
|
'editor.gotoLocation.alternativeImplementationCommand': {
|
|
872
872
|
type: 'string',
|
|
873
873
|
default: defaults.alternativeImplementationCommand,
|
|
874
874
|
enum: alternativeCommandOptions,
|
|
875
|
-
description: nls.localize(
|
|
875
|
+
description: nls.localize(276, "Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")
|
|
876
876
|
},
|
|
877
877
|
'editor.gotoLocation.alternativeReferenceCommand': {
|
|
878
878
|
type: 'string',
|
|
879
879
|
default: defaults.alternativeReferenceCommand,
|
|
880
880
|
enum: alternativeCommandOptions,
|
|
881
|
-
description: nls.localize(
|
|
881
|
+
description: nls.localize(277, "Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")
|
|
882
882
|
},
|
|
883
883
|
});
|
|
884
884
|
}
|
|
@@ -920,11 +920,11 @@ class EditorHover extends BaseEditorOption {
|
|
|
920
920
|
enum: ['on', 'off', 'onKeyboardModifier'],
|
|
921
921
|
default: defaults.enabled,
|
|
922
922
|
markdownEnumDescriptions: [
|
|
923
|
-
nls.localize(
|
|
924
|
-
nls.localize(
|
|
925
|
-
nls.localize(
|
|
923
|
+
nls.localize(278, "Hover is enabled."),
|
|
924
|
+
nls.localize(279, "Hover is disabled."),
|
|
925
|
+
nls.localize(280, "Hover is shown when holding `{0}` or `Alt` (the opposite modifier of `#editor.multiCursorModifier#`)", platform.isMacintosh ? `Command` : `Control`)
|
|
926
926
|
],
|
|
927
|
-
description: nls.localize(
|
|
927
|
+
description: nls.localize(281, "Controls whether the hover is shown."),
|
|
928
928
|
keywords: ['hint', 'info', 'tooltip']
|
|
929
929
|
},
|
|
930
930
|
'editor.hover.delay': {
|
|
@@ -932,28 +932,28 @@ class EditorHover extends BaseEditorOption {
|
|
|
932
932
|
default: defaults.delay,
|
|
933
933
|
minimum: 0,
|
|
934
934
|
maximum: 10000,
|
|
935
|
-
description: nls.localize(
|
|
935
|
+
description: nls.localize(282, "Controls the delay in milliseconds after which the hover is shown.")
|
|
936
936
|
},
|
|
937
937
|
'editor.hover.sticky': {
|
|
938
938
|
type: 'boolean',
|
|
939
939
|
default: defaults.sticky,
|
|
940
|
-
description: nls.localize(
|
|
940
|
+
description: nls.localize(283, "Controls whether the hover should remain visible when mouse is moved over it.")
|
|
941
941
|
},
|
|
942
942
|
'editor.hover.hidingDelay': {
|
|
943
943
|
type: 'integer',
|
|
944
944
|
minimum: 0,
|
|
945
945
|
default: defaults.hidingDelay,
|
|
946
|
-
markdownDescription: nls.localize(
|
|
946
|
+
markdownDescription: nls.localize(284, "Controls the delay in milliseconds after which the hover is hidden. Requires `#editor.hover.sticky#` to be enabled.")
|
|
947
947
|
},
|
|
948
948
|
'editor.hover.above': {
|
|
949
949
|
type: 'boolean',
|
|
950
950
|
default: defaults.above,
|
|
951
|
-
description: nls.localize(
|
|
951
|
+
description: nls.localize(285, "Prefer showing hovers above the line, if there's space.")
|
|
952
952
|
},
|
|
953
953
|
'editor.hover.showLongLineWarning': {
|
|
954
954
|
type: 'boolean',
|
|
955
955
|
default: defaults.showLongLineWarning,
|
|
956
|
-
description: nls.localize(
|
|
956
|
+
description: nls.localize(286, "Controls whether long line warning hovers are shown, such as when tokenization is skipped or rendering is paused.")
|
|
957
957
|
},
|
|
958
958
|
});
|
|
959
959
|
}
|
|
@@ -972,12 +972,60 @@ class EditorHover extends BaseEditorOption {
|
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* Returns the origin of an absolute URL, or `undefined` if it has none (for example `data:` URLs).
|
|
977
|
+
* @internal
|
|
978
|
+
*/
|
|
979
|
+
export function getUrlOrigin(url) {
|
|
980
|
+
try {
|
|
981
|
+
const origin = new URL(url).origin;
|
|
982
|
+
return origin === 'null' ? undefined : origin;
|
|
983
|
+
}
|
|
984
|
+
catch {
|
|
985
|
+
return undefined;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
/**
|
|
989
|
+
* @internal
|
|
990
|
+
*/
|
|
991
|
+
export function isMarkdownImageAllowed(options, url) {
|
|
992
|
+
if (options.allowedOrigins === true) {
|
|
993
|
+
return true;
|
|
994
|
+
}
|
|
995
|
+
const origin = getUrlOrigin(url);
|
|
996
|
+
return origin !== undefined && options.allowedOrigins.includes(origin);
|
|
997
|
+
}
|
|
998
|
+
class EditorMarkdownImages extends BaseEditorOption {
|
|
999
|
+
constructor() {
|
|
1000
|
+
super(80 /* EditorOption.markdownImages */, 'markdownImages', { allowedOrigins: true });
|
|
1001
|
+
}
|
|
1002
|
+
validate(_input) {
|
|
1003
|
+
if (!_input || typeof _input !== 'object') {
|
|
1004
|
+
return this.defaultValue;
|
|
1005
|
+
}
|
|
1006
|
+
const input = _input;
|
|
1007
|
+
if (input.allowedOrigins === true) {
|
|
1008
|
+
return { allowedOrigins: true };
|
|
1009
|
+
}
|
|
1010
|
+
if (!Array.isArray(input.allowedOrigins)) {
|
|
1011
|
+
return this.defaultValue;
|
|
1012
|
+
}
|
|
1013
|
+
const allowedOrigins = [];
|
|
1014
|
+
for (const value of input.allowedOrigins) {
|
|
1015
|
+
const origin = typeof value === 'string' ? getUrlOrigin(value) : undefined;
|
|
1016
|
+
if (origin !== undefined && !allowedOrigins.includes(origin)) {
|
|
1017
|
+
allowedOrigins.push(origin);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
return { allowedOrigins };
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
975
1023
|
/**
|
|
976
1024
|
* @internal
|
|
977
1025
|
*/
|
|
978
1026
|
export class EditorLayoutInfoComputer extends ComputedEditorOption {
|
|
979
1027
|
constructor() {
|
|
980
|
-
super(
|
|
1028
|
+
super(169 /* EditorOption.layoutInfo */, {
|
|
981
1029
|
width: 0,
|
|
982
1030
|
height: 0,
|
|
983
1031
|
glyphMarginLeft: 0,
|
|
@@ -1213,25 +1261,25 @@ export class EditorLayoutInfoComputer extends ComputedEditorOption {
|
|
|
1213
1261
|
const maxDigitWidth = env.maxDigitWidth;
|
|
1214
1262
|
const pixelRatio = env.pixelRatio;
|
|
1215
1263
|
const viewLineCount = env.viewLineCount;
|
|
1216
|
-
const wordWrapOverride2 = options.get(
|
|
1217
|
-
const wordWrapOverride1 = (wordWrapOverride2 === 'inherit' ? options.get(
|
|
1218
|
-
const wordWrap = (wordWrapOverride1 === 'inherit' ? options.get(
|
|
1219
|
-
const wordWrapColumn = options.get(
|
|
1220
|
-
const wordWrapIndicator = options.get(
|
|
1264
|
+
const wordWrapOverride2 = options.get(157 /* EditorOption.wordWrapOverride2 */);
|
|
1265
|
+
const wordWrapOverride1 = (wordWrapOverride2 === 'inherit' ? options.get(156 /* EditorOption.wordWrapOverride1 */) : wordWrapOverride2);
|
|
1266
|
+
const wordWrap = (wordWrapOverride1 === 'inherit' ? options.get(152 /* EditorOption.wordWrap */) : wordWrapOverride1);
|
|
1267
|
+
const wordWrapColumn = options.get(155 /* EditorOption.wordWrapColumn */);
|
|
1268
|
+
const wordWrapIndicator = options.get(164 /* EditorOption.wordWrapIndicator */);
|
|
1221
1269
|
const isDominatedByLongLines = env.isDominatedByLongLines;
|
|
1222
1270
|
const showGlyphMargin = options.get(66 /* EditorOption.glyphMargin */);
|
|
1223
1271
|
const showLineNumbers = (options.get(76 /* EditorOption.lineNumbers */).renderType !== 0 /* RenderLineNumbersType.Off */);
|
|
1224
1272
|
const lineNumbersMinChars = options.get(77 /* EditorOption.lineNumbersMinChars */);
|
|
1225
|
-
const scrollBeyondLastLine = options.get(
|
|
1226
|
-
const padding = options.get(
|
|
1227
|
-
const minimap = options.get(
|
|
1228
|
-
const scrollbar = options.get(
|
|
1273
|
+
const scrollBeyondLastLine = options.get(121 /* EditorOption.scrollBeyondLastLine */);
|
|
1274
|
+
const padding = options.get(98 /* EditorOption.padding */);
|
|
1275
|
+
const minimap = options.get(82 /* EditorOption.minimap */);
|
|
1276
|
+
const scrollbar = options.get(119 /* EditorOption.scrollbar */);
|
|
1229
1277
|
const verticalScrollbarWidth = scrollbar.verticalScrollbarSize;
|
|
1230
1278
|
const verticalScrollbarHasArrows = scrollbar.verticalHasArrows;
|
|
1231
1279
|
const scrollbarArrowSize = scrollbar.arrowSize;
|
|
1232
1280
|
const horizontalScrollbarHeight = scrollbar.horizontalScrollbarSize;
|
|
1233
1281
|
const folding = options.get(52 /* EditorOption.folding */);
|
|
1234
|
-
const showFoldingDecoration = options.get(
|
|
1282
|
+
const showFoldingDecoration = options.get(129 /* EditorOption.showFoldingControls */) !== 'never';
|
|
1235
1283
|
let lineDecorationsWidth = options.get(74 /* EditorOption.lineDecorationsWidth */);
|
|
1236
1284
|
if (folding && showFoldingDecoration) {
|
|
1237
1285
|
lineDecorationsWidth += 16;
|
|
@@ -1331,16 +1379,16 @@ export class EditorLayoutInfoComputer extends ComputedEditorOption {
|
|
|
1331
1379
|
//#region WrappingStrategy
|
|
1332
1380
|
class WrappingStrategy extends BaseEditorOption {
|
|
1333
1381
|
constructor() {
|
|
1334
|
-
super(
|
|
1382
|
+
super(159 /* EditorOption.wrappingStrategy */, 'wrappingStrategy', 'simple', {
|
|
1335
1383
|
'editor.wrappingStrategy': {
|
|
1336
1384
|
enumDescriptions: [
|
|
1337
|
-
nls.localize(
|
|
1338
|
-
nls.localize(
|
|
1385
|
+
nls.localize(287, "Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),
|
|
1386
|
+
nls.localize(288, "Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")
|
|
1339
1387
|
],
|
|
1340
1388
|
type: 'string',
|
|
1341
1389
|
enum: ['simple', 'advanced'],
|
|
1342
1390
|
default: 'simple',
|
|
1343
|
-
description: nls.localize(
|
|
1391
|
+
description: nls.localize(289, "Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")
|
|
1344
1392
|
}
|
|
1345
1393
|
});
|
|
1346
1394
|
}
|
|
@@ -1374,11 +1422,11 @@ class EditorLightbulb extends BaseEditorOption {
|
|
|
1374
1422
|
enum: [ShowLightbulbIconMode.Off, ShowLightbulbIconMode.OnCode, ShowLightbulbIconMode.On],
|
|
1375
1423
|
default: defaults.enabled,
|
|
1376
1424
|
enumDescriptions: [
|
|
1377
|
-
nls.localize(
|
|
1378
|
-
nls.localize(
|
|
1379
|
-
nls.localize(
|
|
1425
|
+
nls.localize(290, 'Disable the code action menu.'),
|
|
1426
|
+
nls.localize(291, 'Show the code action menu when the cursor is on lines with code.'),
|
|
1427
|
+
nls.localize(292, 'Show the code action menu when the cursor is on lines with code or on empty lines.'),
|
|
1380
1428
|
],
|
|
1381
|
-
description: nls.localize(
|
|
1429
|
+
description: nls.localize(293, "Enables the Code Action lightbulb in the editor.")
|
|
1382
1430
|
}
|
|
1383
1431
|
});
|
|
1384
1432
|
}
|
|
@@ -1395,29 +1443,29 @@ class EditorLightbulb extends BaseEditorOption {
|
|
|
1395
1443
|
class EditorStickyScroll extends BaseEditorOption {
|
|
1396
1444
|
constructor() {
|
|
1397
1445
|
const defaults = { enabled: true, maxLineCount: 5, defaultModel: 'outlineModel', scrollWithEditor: true };
|
|
1398
|
-
super(
|
|
1446
|
+
super(134 /* EditorOption.stickyScroll */, 'stickyScroll', defaults, {
|
|
1399
1447
|
'editor.stickyScroll.enabled': {
|
|
1400
1448
|
type: 'boolean',
|
|
1401
1449
|
default: defaults.enabled,
|
|
1402
|
-
description: nls.localize(
|
|
1450
|
+
description: nls.localize(294, "Shows the nested current scopes during the scroll at the top of the editor.")
|
|
1403
1451
|
},
|
|
1404
1452
|
'editor.stickyScroll.maxLineCount': {
|
|
1405
1453
|
type: 'number',
|
|
1406
1454
|
default: defaults.maxLineCount,
|
|
1407
1455
|
minimum: 1,
|
|
1408
1456
|
maximum: 20,
|
|
1409
|
-
description: nls.localize(
|
|
1457
|
+
description: nls.localize(295, "Defines the maximum number of sticky lines to show.")
|
|
1410
1458
|
},
|
|
1411
1459
|
'editor.stickyScroll.defaultModel': {
|
|
1412
1460
|
type: 'string',
|
|
1413
1461
|
enum: ['outlineModel', 'foldingProviderModel', 'indentationModel'],
|
|
1414
1462
|
default: defaults.defaultModel,
|
|
1415
|
-
description: nls.localize(
|
|
1463
|
+
description: nls.localize(296, "Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")
|
|
1416
1464
|
},
|
|
1417
1465
|
'editor.stickyScroll.scrollWithEditor': {
|
|
1418
1466
|
type: 'boolean',
|
|
1419
1467
|
default: defaults.scrollWithEditor,
|
|
1420
|
-
description: nls.localize(
|
|
1468
|
+
description: nls.localize(297, "Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")
|
|
1421
1469
|
},
|
|
1422
1470
|
});
|
|
1423
1471
|
}
|
|
@@ -1437,38 +1485,38 @@ class EditorStickyScroll extends BaseEditorOption {
|
|
|
1437
1485
|
class EditorInlayHints extends BaseEditorOption {
|
|
1438
1486
|
constructor() {
|
|
1439
1487
|
const defaults = { enabled: 'on', fontSize: 0, fontFamily: '', padding: false, maximumLength: 43 };
|
|
1440
|
-
super(
|
|
1488
|
+
super(162 /* EditorOption.inlayHints */, 'inlayHints', defaults, {
|
|
1441
1489
|
'editor.inlayHints.enabled': {
|
|
1442
1490
|
type: 'string',
|
|
1443
1491
|
default: defaults.enabled,
|
|
1444
|
-
description: nls.localize(
|
|
1492
|
+
description: nls.localize(298, "Enables the inlay hints in the editor."),
|
|
1445
1493
|
enum: ['on', 'onUnlessPressed', 'offUnlessPressed', 'off'],
|
|
1446
1494
|
markdownEnumDescriptions: [
|
|
1447
|
-
nls.localize(
|
|
1448
|
-
nls.localize(
|
|
1449
|
-
nls.localize(
|
|
1450
|
-
nls.localize(
|
|
1495
|
+
nls.localize(299, "Inlay hints are enabled"),
|
|
1496
|
+
nls.localize(300, "Inlay hints are showing by default and hide when holding {0}", platform.isMacintosh ? `Ctrl+Option` : `Ctrl+Alt`),
|
|
1497
|
+
nls.localize(301, "Inlay hints are hidden by default and show when holding {0}", platform.isMacintosh ? `Ctrl+Option` : `Ctrl+Alt`),
|
|
1498
|
+
nls.localize(302, "Inlay hints are disabled"),
|
|
1451
1499
|
],
|
|
1452
1500
|
},
|
|
1453
1501
|
'editor.inlayHints.fontSize': {
|
|
1454
1502
|
type: 'number',
|
|
1455
1503
|
default: defaults.fontSize,
|
|
1456
|
-
markdownDescription: nls.localize(
|
|
1504
|
+
markdownDescription: nls.localize(303, "Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.", '`#editor.fontSize#`', '`5`')
|
|
1457
1505
|
},
|
|
1458
1506
|
'editor.inlayHints.fontFamily': {
|
|
1459
1507
|
type: 'string',
|
|
1460
1508
|
default: defaults.fontFamily,
|
|
1461
|
-
markdownDescription: nls.localize(
|
|
1509
|
+
markdownDescription: nls.localize(304, "Controls font family of inlay hints in the editor. When set to empty, the {0} is used.", '`#editor.fontFamily#`')
|
|
1462
1510
|
},
|
|
1463
1511
|
'editor.inlayHints.padding': {
|
|
1464
1512
|
type: 'boolean',
|
|
1465
1513
|
default: defaults.padding,
|
|
1466
|
-
description: nls.localize(
|
|
1514
|
+
description: nls.localize(305, "Enables the padding around the inlay hints in the editor.")
|
|
1467
1515
|
},
|
|
1468
1516
|
'editor.inlayHints.maximumLength': {
|
|
1469
1517
|
type: 'number',
|
|
1470
1518
|
default: defaults.maximumLength,
|
|
1471
|
-
markdownDescription: nls.localize(
|
|
1519
|
+
markdownDescription: nls.localize(306, "Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate")
|
|
1472
1520
|
}
|
|
1473
1521
|
});
|
|
1474
1522
|
}
|
|
@@ -1518,7 +1566,7 @@ class EditorLineDecorationsWidth extends BaseEditorOption {
|
|
|
1518
1566
|
//#region lineHeight
|
|
1519
1567
|
class EditorLineHeight extends EditorFloatOption {
|
|
1520
1568
|
constructor() {
|
|
1521
|
-
super(75 /* EditorOption.lineHeight */, 'lineHeight', EDITOR_FONT_DEFAULTS.lineHeight, x => EditorFloatOption.clamp(x, 0, 150), { markdownDescription: nls.localize(
|
|
1569
|
+
super(75 /* EditorOption.lineHeight */, 'lineHeight', EDITOR_FONT_DEFAULTS.lineHeight, x => EditorFloatOption.clamp(x, 0, 150), { markdownDescription: nls.localize(307, "Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.") }, 0, 150);
|
|
1522
1570
|
}
|
|
1523
1571
|
compute(env, options, value) {
|
|
1524
1572
|
// The lineHeight is computed from the fontSize if it is 0.
|
|
@@ -1544,45 +1592,45 @@ class EditorMinimap extends BaseEditorOption {
|
|
|
1544
1592
|
sectionHeaderFontSize: 9,
|
|
1545
1593
|
sectionHeaderLetterSpacing: 1,
|
|
1546
1594
|
};
|
|
1547
|
-
super(
|
|
1595
|
+
super(82 /* EditorOption.minimap */, 'minimap', defaults, {
|
|
1548
1596
|
'editor.minimap.enabled': {
|
|
1549
1597
|
type: 'boolean',
|
|
1550
1598
|
default: defaults.enabled,
|
|
1551
|
-
description: nls.localize(
|
|
1599
|
+
description: nls.localize(308, "Controls whether the minimap is shown.")
|
|
1552
1600
|
},
|
|
1553
1601
|
'editor.minimap.autohide': {
|
|
1554
1602
|
type: 'string',
|
|
1555
1603
|
enum: ['none', 'mouseover', 'scroll'],
|
|
1556
1604
|
enumDescriptions: [
|
|
1557
|
-
nls.localize(
|
|
1558
|
-
nls.localize(
|
|
1559
|
-
nls.localize(
|
|
1605
|
+
nls.localize(309, "The minimap is always shown."),
|
|
1606
|
+
nls.localize(310, "The minimap is hidden when mouse is not over the minimap and shown when mouse is over the minimap."),
|
|
1607
|
+
nls.localize(311, "The minimap is only shown when the editor is scrolled"),
|
|
1560
1608
|
],
|
|
1561
1609
|
default: defaults.autohide,
|
|
1562
|
-
description: nls.localize(
|
|
1610
|
+
description: nls.localize(312, "Controls whether the minimap is hidden automatically.")
|
|
1563
1611
|
},
|
|
1564
1612
|
'editor.minimap.size': {
|
|
1565
1613
|
type: 'string',
|
|
1566
1614
|
enum: ['proportional', 'fill', 'fit'],
|
|
1567
1615
|
enumDescriptions: [
|
|
1568
|
-
nls.localize(
|
|
1569
|
-
nls.localize(
|
|
1570
|
-
nls.localize(
|
|
1616
|
+
nls.localize(313, "The minimap has the same size as the editor contents (and might scroll)."),
|
|
1617
|
+
nls.localize(314, "The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),
|
|
1618
|
+
nls.localize(315, "The minimap will shrink as necessary to never be larger than the editor (no scrolling)."),
|
|
1571
1619
|
],
|
|
1572
1620
|
default: defaults.size,
|
|
1573
|
-
description: nls.localize(
|
|
1621
|
+
description: nls.localize(316, "Controls the size of the minimap.")
|
|
1574
1622
|
},
|
|
1575
1623
|
'editor.minimap.side': {
|
|
1576
1624
|
type: 'string',
|
|
1577
1625
|
enum: ['left', 'right'],
|
|
1578
1626
|
default: defaults.side,
|
|
1579
|
-
description: nls.localize(
|
|
1627
|
+
description: nls.localize(317, "Controls the side where to render the minimap.")
|
|
1580
1628
|
},
|
|
1581
1629
|
'editor.minimap.showSlider': {
|
|
1582
1630
|
type: 'string',
|
|
1583
1631
|
enum: ['always', 'mouseover'],
|
|
1584
1632
|
default: defaults.showSlider,
|
|
1585
|
-
description: nls.localize(
|
|
1633
|
+
description: nls.localize(318, "Controls when the minimap slider is shown.")
|
|
1586
1634
|
},
|
|
1587
1635
|
'editor.minimap.scale': {
|
|
1588
1636
|
type: 'number',
|
|
@@ -1590,42 +1638,42 @@ class EditorMinimap extends BaseEditorOption {
|
|
|
1590
1638
|
minimum: 1,
|
|
1591
1639
|
maximum: 3,
|
|
1592
1640
|
enum: [1, 2, 3],
|
|
1593
|
-
description: nls.localize(
|
|
1641
|
+
description: nls.localize(319, "Scale of content drawn in the minimap: 1, 2 or 3.")
|
|
1594
1642
|
},
|
|
1595
1643
|
'editor.minimap.renderCharacters': {
|
|
1596
1644
|
type: 'boolean',
|
|
1597
1645
|
default: defaults.renderCharacters,
|
|
1598
|
-
description: nls.localize(
|
|
1646
|
+
description: nls.localize(320, "Render the actual characters on a line as opposed to color blocks.")
|
|
1599
1647
|
},
|
|
1600
1648
|
'editor.minimap.maxColumn': {
|
|
1601
1649
|
type: 'number',
|
|
1602
1650
|
default: defaults.maxColumn,
|
|
1603
|
-
description: nls.localize(
|
|
1651
|
+
description: nls.localize(321, "Limit the width of the minimap to render at most a certain number of columns.")
|
|
1604
1652
|
},
|
|
1605
1653
|
'editor.minimap.showRegionSectionHeaders': {
|
|
1606
1654
|
type: 'boolean',
|
|
1607
1655
|
default: defaults.showRegionSectionHeaders,
|
|
1608
|
-
description: nls.localize(
|
|
1656
|
+
description: nls.localize(322, "Controls whether named regions are shown as section headers in the minimap.")
|
|
1609
1657
|
},
|
|
1610
1658
|
'editor.minimap.showMarkSectionHeaders': {
|
|
1611
1659
|
type: 'boolean',
|
|
1612
1660
|
default: defaults.showMarkSectionHeaders,
|
|
1613
|
-
description: nls.localize(
|
|
1661
|
+
description: nls.localize(323, "Controls whether MARK: comments are shown as section headers in the minimap.")
|
|
1614
1662
|
},
|
|
1615
1663
|
'editor.minimap.markSectionHeaderRegex': {
|
|
1616
1664
|
type: 'string',
|
|
1617
1665
|
default: defaults.markSectionHeaderRegex,
|
|
1618
|
-
description: nls.localize(
|
|
1666
|
+
description: nls.localize(324, "Defines the regular expression used to find section headers in comments. The regex must contain a named match group `label` (written as `(?<label>.+)`) that encapsulates the section header, otherwise it will not work. Optionally you can include another match group named `separator`. Use \\n in the pattern to match multi-line headers."),
|
|
1619
1667
|
},
|
|
1620
1668
|
'editor.minimap.sectionHeaderFontSize': {
|
|
1621
1669
|
type: 'number',
|
|
1622
1670
|
default: defaults.sectionHeaderFontSize,
|
|
1623
|
-
description: nls.localize(
|
|
1671
|
+
description: nls.localize(325, "Controls the font size of section headers in the minimap.")
|
|
1624
1672
|
},
|
|
1625
1673
|
'editor.minimap.sectionHeaderLetterSpacing': {
|
|
1626
1674
|
type: 'number',
|
|
1627
1675
|
default: defaults.sectionHeaderLetterSpacing,
|
|
1628
|
-
description: nls.localize(
|
|
1676
|
+
description: nls.localize(326, "Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")
|
|
1629
1677
|
}
|
|
1630
1678
|
});
|
|
1631
1679
|
}
|
|
@@ -1671,20 +1719,20 @@ function _multiCursorModifierFromString(multiCursorModifier) {
|
|
|
1671
1719
|
}
|
|
1672
1720
|
class EditorPadding extends BaseEditorOption {
|
|
1673
1721
|
constructor() {
|
|
1674
|
-
super(
|
|
1722
|
+
super(98 /* EditorOption.padding */, 'padding', { top: 0, bottom: 0 }, {
|
|
1675
1723
|
'editor.padding.top': {
|
|
1676
1724
|
type: 'number',
|
|
1677
1725
|
default: 0,
|
|
1678
1726
|
minimum: 0,
|
|
1679
1727
|
maximum: 1000,
|
|
1680
|
-
description: nls.localize(
|
|
1728
|
+
description: nls.localize(327, "Controls the amount of space between the top edge of the editor and the first line.")
|
|
1681
1729
|
},
|
|
1682
1730
|
'editor.padding.bottom': {
|
|
1683
1731
|
type: 'number',
|
|
1684
1732
|
default: 0,
|
|
1685
1733
|
minimum: 0,
|
|
1686
1734
|
maximum: 1000,
|
|
1687
|
-
description: nls.localize(
|
|
1735
|
+
description: nls.localize(328, "Controls the amount of space between the bottom edge of the editor and the last line.")
|
|
1688
1736
|
}
|
|
1689
1737
|
});
|
|
1690
1738
|
}
|
|
@@ -1705,16 +1753,16 @@ class EditorParameterHints extends BaseEditorOption {
|
|
|
1705
1753
|
enabled: true,
|
|
1706
1754
|
cycle: true
|
|
1707
1755
|
};
|
|
1708
|
-
super(
|
|
1756
|
+
super(100 /* EditorOption.parameterHints */, 'parameterHints', defaults, {
|
|
1709
1757
|
'editor.parameterHints.enabled': {
|
|
1710
1758
|
type: 'boolean',
|
|
1711
1759
|
default: defaults.enabled,
|
|
1712
|
-
description: nls.localize(
|
|
1760
|
+
description: nls.localize(329, "Enables a pop-up that shows parameter documentation and type information as you type.")
|
|
1713
1761
|
},
|
|
1714
1762
|
'editor.parameterHints.cycle': {
|
|
1715
1763
|
type: 'boolean',
|
|
1716
1764
|
default: defaults.cycle,
|
|
1717
|
-
description: nls.localize(
|
|
1765
|
+
description: nls.localize(330, "Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")
|
|
1718
1766
|
},
|
|
1719
1767
|
});
|
|
1720
1768
|
}
|
|
@@ -1733,7 +1781,7 @@ class EditorParameterHints extends BaseEditorOption {
|
|
|
1733
1781
|
//#region pixelRatio
|
|
1734
1782
|
class EditorPixelRatio extends ComputedEditorOption {
|
|
1735
1783
|
constructor() {
|
|
1736
|
-
super(
|
|
1784
|
+
super(167 /* EditorOption.pixelRatio */, 1);
|
|
1737
1785
|
}
|
|
1738
1786
|
compute(env, options, _) {
|
|
1739
1787
|
return env.pixelRatio;
|
|
@@ -1743,7 +1791,7 @@ class EditorPixelRatio extends ComputedEditorOption {
|
|
|
1743
1791
|
//#region
|
|
1744
1792
|
class PlaceholderOption extends BaseEditorOption {
|
|
1745
1793
|
constructor() {
|
|
1746
|
-
super(
|
|
1794
|
+
super(102 /* EditorOption.placeholder */, 'placeholder', undefined);
|
|
1747
1795
|
}
|
|
1748
1796
|
validate(input) {
|
|
1749
1797
|
if (typeof input === 'undefined') {
|
|
@@ -1767,16 +1815,16 @@ class EditorQuickSuggestions extends BaseEditorOption {
|
|
|
1767
1815
|
{
|
|
1768
1816
|
type: 'string',
|
|
1769
1817
|
enum: ['on', 'inline', 'off', 'offWhenInlineCompletions'],
|
|
1770
|
-
enumDescriptions: [nls.localize(
|
|
1818
|
+
enumDescriptions: [nls.localize(331, "Quick suggestions show inside the suggest widget"), nls.localize(332, "Quick suggestions show as ghost text"), nls.localize(333, "Quick suggestions are disabled"), nls.localize(334, "Quick suggestions are disabled when inline completions are showing")]
|
|
1771
1819
|
}
|
|
1772
1820
|
];
|
|
1773
|
-
super(
|
|
1821
|
+
super(104 /* EditorOption.quickSuggestions */, 'quickSuggestions', defaults, {
|
|
1774
1822
|
anyOf: [
|
|
1775
1823
|
{ type: 'boolean' },
|
|
1776
1824
|
{
|
|
1777
1825
|
type: 'string',
|
|
1778
1826
|
enum: ['on', 'inline', 'off', 'offWhenInlineCompletions'],
|
|
1779
|
-
enumDescriptions: [nls.localize(
|
|
1827
|
+
enumDescriptions: [nls.localize(335, "Quick suggestions are enabled for all token types"), nls.localize(336, "Quick suggestions show as ghost text for all token types"), nls.localize(337, "Quick suggestions are disabled for all token types"), nls.localize(338, "Quick suggestions are disabled for all token types when inline completions are showing")]
|
|
1780
1828
|
},
|
|
1781
1829
|
{
|
|
1782
1830
|
type: 'object',
|
|
@@ -1785,23 +1833,23 @@ class EditorQuickSuggestions extends BaseEditorOption {
|
|
|
1785
1833
|
strings: {
|
|
1786
1834
|
anyOf: types,
|
|
1787
1835
|
default: defaults.strings,
|
|
1788
|
-
description: nls.localize(
|
|
1836
|
+
description: nls.localize(339, "Enable quick suggestions inside strings.")
|
|
1789
1837
|
},
|
|
1790
1838
|
comments: {
|
|
1791
1839
|
anyOf: types,
|
|
1792
1840
|
default: defaults.comments,
|
|
1793
|
-
description: nls.localize(
|
|
1841
|
+
description: nls.localize(340, "Enable quick suggestions inside comments.")
|
|
1794
1842
|
},
|
|
1795
1843
|
other: {
|
|
1796
1844
|
anyOf: types,
|
|
1797
1845
|
default: defaults.other,
|
|
1798
|
-
description: nls.localize(
|
|
1846
|
+
description: nls.localize(341, "Enable quick suggestions outside of strings and comments.")
|
|
1799
1847
|
},
|
|
1800
1848
|
},
|
|
1801
1849
|
}
|
|
1802
1850
|
],
|
|
1803
1851
|
default: defaults,
|
|
1804
|
-
markdownDescription: nls.localize(
|
|
1852
|
+
markdownDescription: nls.localize(342, "Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.", '`#editor.suggestOnTriggerCharacters#`'),
|
|
1805
1853
|
experiment: {
|
|
1806
1854
|
mode: 'auto'
|
|
1807
1855
|
}
|
|
@@ -1860,13 +1908,13 @@ class EditorRenderLineNumbersOption extends BaseEditorOption {
|
|
|
1860
1908
|
type: 'string',
|
|
1861
1909
|
enum: ['off', 'on', 'relative', 'interval'],
|
|
1862
1910
|
enumDescriptions: [
|
|
1863
|
-
nls.localize(
|
|
1864
|
-
nls.localize(
|
|
1865
|
-
nls.localize(
|
|
1866
|
-
nls.localize(
|
|
1911
|
+
nls.localize(343, "Line numbers are not rendered."),
|
|
1912
|
+
nls.localize(344, "Line numbers are rendered as absolute number."),
|
|
1913
|
+
nls.localize(345, "Line numbers are rendered as distance in lines to cursor position."),
|
|
1914
|
+
nls.localize(346, "Line numbers are rendered every 10 lines.")
|
|
1867
1915
|
],
|
|
1868
1916
|
default: 'on',
|
|
1869
|
-
description: nls.localize(
|
|
1917
|
+
description: nls.localize(347, "Controls the display of line numbers.")
|
|
1870
1918
|
});
|
|
1871
1919
|
}
|
|
1872
1920
|
validate(lineNumbers) {
|
|
@@ -1902,9 +1950,9 @@ class EditorRenderLineNumbersOption extends BaseEditorOption {
|
|
|
1902
1950
|
* @internal
|
|
1903
1951
|
*/
|
|
1904
1952
|
export function filterValidationDecorations(options) {
|
|
1905
|
-
const renderValidationDecorations = options.get(
|
|
1953
|
+
const renderValidationDecorations = options.get(114 /* EditorOption.renderValidationDecorations */);
|
|
1906
1954
|
if (renderValidationDecorations === 'editable') {
|
|
1907
|
-
return options.get(
|
|
1955
|
+
return options.get(106 /* EditorOption.readOnly */);
|
|
1908
1956
|
}
|
|
1909
1957
|
return renderValidationDecorations === 'on' ? false : true;
|
|
1910
1958
|
}
|
|
@@ -1914,13 +1962,13 @@ export function filterValidationDecorations(options) {
|
|
|
1914
1962
|
* @internal
|
|
1915
1963
|
*/
|
|
1916
1964
|
export function filterFontDecorations(options) {
|
|
1917
|
-
return !options.get(
|
|
1965
|
+
return !options.get(176 /* EditorOption.effectiveAllowVariableFonts */);
|
|
1918
1966
|
}
|
|
1919
1967
|
class EditorRulers extends BaseEditorOption {
|
|
1920
1968
|
constructor() {
|
|
1921
1969
|
const defaults = [];
|
|
1922
|
-
const columnSchema = { type: 'number', description: nls.localize(
|
|
1923
|
-
super(
|
|
1970
|
+
const columnSchema = { type: 'number', description: nls.localize(348, "Number of monospace characters at which this editor ruler will render.") };
|
|
1971
|
+
super(118 /* EditorOption.rulers */, 'rulers', defaults, {
|
|
1924
1972
|
type: 'array',
|
|
1925
1973
|
items: {
|
|
1926
1974
|
anyOf: [
|
|
@@ -1933,7 +1981,7 @@ class EditorRulers extends BaseEditorOption {
|
|
|
1933
1981
|
column: columnSchema,
|
|
1934
1982
|
color: {
|
|
1935
1983
|
type: 'string',
|
|
1936
|
-
description: nls.localize(
|
|
1984
|
+
description: nls.localize(349, "Color of this editor ruler."),
|
|
1937
1985
|
format: 'color-hex'
|
|
1938
1986
|
}
|
|
1939
1987
|
}
|
|
@@ -1941,7 +1989,7 @@ class EditorRulers extends BaseEditorOption {
|
|
|
1941
1989
|
]
|
|
1942
1990
|
},
|
|
1943
1991
|
default: defaults,
|
|
1944
|
-
description: nls.localize(
|
|
1992
|
+
description: nls.localize(350, "Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")
|
|
1945
1993
|
});
|
|
1946
1994
|
}
|
|
1947
1995
|
validate(input) {
|
|
@@ -1976,7 +2024,7 @@ class EditorRulers extends BaseEditorOption {
|
|
|
1976
2024
|
class ReadonlyMessage extends BaseEditorOption {
|
|
1977
2025
|
constructor() {
|
|
1978
2026
|
const defaults = undefined;
|
|
1979
|
-
super(
|
|
2027
|
+
super(107 /* EditorOption.readOnlyMessage */, 'readOnlyMessage', defaults);
|
|
1980
2028
|
}
|
|
1981
2029
|
validate(_input) {
|
|
1982
2030
|
if (!_input || typeof _input !== 'object') {
|
|
@@ -2013,48 +2061,48 @@ class EditorScrollbar extends BaseEditorOption {
|
|
|
2013
2061
|
scrollByPage: false,
|
|
2014
2062
|
ignoreHorizontalScrollbarInContentHeight: false,
|
|
2015
2063
|
};
|
|
2016
|
-
super(
|
|
2064
|
+
super(119 /* EditorOption.scrollbar */, 'scrollbar', defaults, {
|
|
2017
2065
|
'editor.scrollbar.vertical': {
|
|
2018
2066
|
type: 'string',
|
|
2019
2067
|
enum: ['auto', 'visible', 'hidden'],
|
|
2020
2068
|
enumDescriptions: [
|
|
2021
|
-
nls.localize(
|
|
2022
|
-
nls.localize(
|
|
2023
|
-
nls.localize(
|
|
2069
|
+
nls.localize(351, "The vertical scrollbar will be visible only when necessary."),
|
|
2070
|
+
nls.localize(352, "The vertical scrollbar will always be visible."),
|
|
2071
|
+
nls.localize(353, "The vertical scrollbar will always be hidden."),
|
|
2024
2072
|
],
|
|
2025
2073
|
default: 'auto',
|
|
2026
|
-
description: nls.localize(
|
|
2074
|
+
description: nls.localize(354, "Controls the visibility of the vertical scrollbar.")
|
|
2027
2075
|
},
|
|
2028
2076
|
'editor.scrollbar.horizontal': {
|
|
2029
2077
|
type: 'string',
|
|
2030
2078
|
enum: ['auto', 'visible', 'hidden'],
|
|
2031
2079
|
enumDescriptions: [
|
|
2032
|
-
nls.localize(
|
|
2033
|
-
nls.localize(
|
|
2034
|
-
nls.localize(
|
|
2080
|
+
nls.localize(355, "The horizontal scrollbar will be visible only when necessary."),
|
|
2081
|
+
nls.localize(356, "The horizontal scrollbar will always be visible."),
|
|
2082
|
+
nls.localize(357, "The horizontal scrollbar will always be hidden."),
|
|
2035
2083
|
],
|
|
2036
2084
|
default: 'auto',
|
|
2037
|
-
description: nls.localize(
|
|
2085
|
+
description: nls.localize(358, "Controls the visibility of the horizontal scrollbar.")
|
|
2038
2086
|
},
|
|
2039
2087
|
'editor.scrollbar.verticalScrollbarSize': {
|
|
2040
2088
|
type: 'number',
|
|
2041
2089
|
default: defaults.verticalScrollbarSize,
|
|
2042
|
-
description: nls.localize(
|
|
2090
|
+
description: nls.localize(359, "The width of the vertical scrollbar.")
|
|
2043
2091
|
},
|
|
2044
2092
|
'editor.scrollbar.horizontalScrollbarSize': {
|
|
2045
2093
|
type: 'number',
|
|
2046
2094
|
default: defaults.horizontalScrollbarSize,
|
|
2047
|
-
description: nls.localize(
|
|
2095
|
+
description: nls.localize(360, "The height of the horizontal scrollbar.")
|
|
2048
2096
|
},
|
|
2049
2097
|
'editor.scrollbar.scrollByPage': {
|
|
2050
2098
|
type: 'boolean',
|
|
2051
2099
|
default: defaults.scrollByPage,
|
|
2052
|
-
description: nls.localize(
|
|
2100
|
+
description: nls.localize(361, "Controls whether clicks scroll by page or jump to click position.")
|
|
2053
2101
|
},
|
|
2054
2102
|
'editor.scrollbar.ignoreHorizontalScrollbarInContentHeight': {
|
|
2055
2103
|
type: 'boolean',
|
|
2056
2104
|
default: defaults.ignoreHorizontalScrollbarInContentHeight,
|
|
2057
|
-
description: nls.localize(
|
|
2105
|
+
description: nls.localize(362, "When set, the horizontal scrollbar will not increase the size of the editor's content.")
|
|
2058
2106
|
}
|
|
2059
2107
|
});
|
|
2060
2108
|
}
|
|
@@ -2110,45 +2158,45 @@ class UnicodeHighlight extends BaseEditorOption {
|
|
|
2110
2158
|
allowedCharacters: {},
|
|
2111
2159
|
allowedLocales: { _os: true, _vscode: true },
|
|
2112
2160
|
};
|
|
2113
|
-
super(
|
|
2161
|
+
super(145 /* EditorOption.unicodeHighlighting */, 'unicodeHighlight', defaults, {
|
|
2114
2162
|
[unicodeHighlightConfigKeys.nonBasicASCII]: {
|
|
2115
2163
|
restricted: true,
|
|
2116
2164
|
type: ['boolean', 'string'],
|
|
2117
2165
|
enum: [true, false, inUntrustedWorkspace],
|
|
2118
2166
|
default: defaults.nonBasicASCII,
|
|
2119
|
-
description: nls.localize(
|
|
2167
|
+
description: nls.localize(363, "Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")
|
|
2120
2168
|
},
|
|
2121
2169
|
[unicodeHighlightConfigKeys.invisibleCharacters]: {
|
|
2122
2170
|
restricted: true,
|
|
2123
2171
|
type: 'boolean',
|
|
2124
2172
|
default: defaults.invisibleCharacters,
|
|
2125
|
-
description: nls.localize(
|
|
2173
|
+
description: nls.localize(364, "Controls whether characters that just reserve space or have no width at all are highlighted.")
|
|
2126
2174
|
},
|
|
2127
2175
|
[unicodeHighlightConfigKeys.ambiguousCharacters]: {
|
|
2128
2176
|
restricted: true,
|
|
2129
2177
|
type: 'boolean',
|
|
2130
2178
|
default: defaults.ambiguousCharacters,
|
|
2131
|
-
description: nls.localize(
|
|
2179
|
+
description: nls.localize(365, "Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")
|
|
2132
2180
|
},
|
|
2133
2181
|
[unicodeHighlightConfigKeys.includeComments]: {
|
|
2134
2182
|
restricted: true,
|
|
2135
2183
|
type: ['boolean', 'string'],
|
|
2136
2184
|
enum: [true, false, inUntrustedWorkspace],
|
|
2137
2185
|
default: defaults.includeComments,
|
|
2138
|
-
description: nls.localize(
|
|
2186
|
+
description: nls.localize(366, "Controls whether characters in comments should also be subject to Unicode highlighting.")
|
|
2139
2187
|
},
|
|
2140
2188
|
[unicodeHighlightConfigKeys.includeStrings]: {
|
|
2141
2189
|
restricted: true,
|
|
2142
2190
|
type: ['boolean', 'string'],
|
|
2143
2191
|
enum: [true, false, inUntrustedWorkspace],
|
|
2144
2192
|
default: defaults.includeStrings,
|
|
2145
|
-
description: nls.localize(
|
|
2193
|
+
description: nls.localize(367, "Controls whether characters in strings should also be subject to Unicode highlighting.")
|
|
2146
2194
|
},
|
|
2147
2195
|
[unicodeHighlightConfigKeys.allowedCharacters]: {
|
|
2148
2196
|
restricted: true,
|
|
2149
2197
|
type: 'object',
|
|
2150
2198
|
default: defaults.allowedCharacters,
|
|
2151
|
-
description: nls.localize(
|
|
2199
|
+
description: nls.localize(368, "Defines allowed characters that are not being highlighted."),
|
|
2152
2200
|
additionalProperties: {
|
|
2153
2201
|
type: 'boolean'
|
|
2154
2202
|
}
|
|
@@ -2160,7 +2208,7 @@ class UnicodeHighlight extends BaseEditorOption {
|
|
|
2160
2208
|
type: 'boolean'
|
|
2161
2209
|
},
|
|
2162
2210
|
default: defaults.allowedLocales,
|
|
2163
|
-
description: nls.localize(
|
|
2211
|
+
description: nls.localize(369, "Unicode characters that are common in allowed locales are not being highlighted.")
|
|
2164
2212
|
},
|
|
2165
2213
|
});
|
|
2166
2214
|
}
|
|
@@ -2248,46 +2296,46 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2248
2296
|
'editor.inlineSuggest.enabled': {
|
|
2249
2297
|
type: 'boolean',
|
|
2250
2298
|
default: defaults.enabled,
|
|
2251
|
-
description: nls.localize(
|
|
2299
|
+
description: nls.localize(370, "Controls whether to automatically show inline suggestions in the editor.")
|
|
2252
2300
|
},
|
|
2253
2301
|
'editor.inlineSuggest.showToolbar': {
|
|
2254
2302
|
type: 'string',
|
|
2255
2303
|
default: defaults.showToolbar,
|
|
2256
2304
|
enum: ['always', 'onHover', 'never'],
|
|
2257
2305
|
enumDescriptions: [
|
|
2258
|
-
nls.localize(
|
|
2259
|
-
nls.localize(
|
|
2260
|
-
nls.localize(
|
|
2306
|
+
nls.localize(371, "Show the inline suggestion toolbar whenever an inline suggestion is shown."),
|
|
2307
|
+
nls.localize(372, "Show the inline suggestion toolbar when hovering over an inline suggestion."),
|
|
2308
|
+
nls.localize(373, "Never show the inline suggestion toolbar."),
|
|
2261
2309
|
],
|
|
2262
|
-
description: nls.localize(
|
|
2310
|
+
description: nls.localize(374, "Controls when to show the inline suggestion toolbar."),
|
|
2263
2311
|
},
|
|
2264
2312
|
'editor.inlineSuggest.syntaxHighlightingEnabled': {
|
|
2265
2313
|
type: 'boolean',
|
|
2266
2314
|
default: defaults.syntaxHighlightingEnabled,
|
|
2267
|
-
description: nls.localize(
|
|
2315
|
+
description: nls.localize(375, "Controls whether to show syntax highlighting for inline suggestions in the editor."),
|
|
2268
2316
|
},
|
|
2269
2317
|
'editor.inlineSuggest.suppressSuggestions': {
|
|
2270
2318
|
type: 'boolean',
|
|
2271
2319
|
default: defaults.suppressSuggestions,
|
|
2272
|
-
description: nls.localize(
|
|
2320
|
+
description: nls.localize(376, "Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")
|
|
2273
2321
|
},
|
|
2274
2322
|
'editor.inlineSuggest.suppressInSnippetMode': {
|
|
2275
2323
|
type: 'boolean',
|
|
2276
2324
|
default: defaults.suppressInSnippetMode,
|
|
2277
|
-
description: nls.localize(
|
|
2325
|
+
description: nls.localize(377, "Controls whether inline suggestions are suppressed when in snippet mode."),
|
|
2278
2326
|
},
|
|
2279
2327
|
'editor.inlineSuggest.minShowDelay': {
|
|
2280
2328
|
type: 'number',
|
|
2281
2329
|
default: 0,
|
|
2282
2330
|
minimum: 0,
|
|
2283
2331
|
maximum: 10000,
|
|
2284
|
-
description: nls.localize(
|
|
2332
|
+
description: nls.localize(378, "Controls the minimal delay in milliseconds after which inline suggestions are shown after typing."),
|
|
2285
2333
|
},
|
|
2286
2334
|
'editor.inlineSuggest.experimental.suppressInlineSuggestions': {
|
|
2287
2335
|
type: 'string',
|
|
2288
2336
|
default: defaults.experimental.suppressInlineSuggestions,
|
|
2289
2337
|
tags: ['experimental'],
|
|
2290
|
-
description: nls.localize(
|
|
2338
|
+
description: nls.localize(379, "Suppresses inline completions for specified extension IDs -- comma separated."),
|
|
2291
2339
|
experiment: {
|
|
2292
2340
|
mode: 'auto'
|
|
2293
2341
|
}
|
|
@@ -2296,7 +2344,7 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2296
2344
|
type: 'boolean',
|
|
2297
2345
|
default: defaults.experimental.emptyResponseInformation,
|
|
2298
2346
|
tags: ['experimental'],
|
|
2299
|
-
description: nls.localize(
|
|
2347
|
+
description: nls.localize(380, "Controls whether to send request information from the inline suggestion provider."),
|
|
2300
2348
|
experiment: {
|
|
2301
2349
|
mode: 'auto'
|
|
2302
2350
|
}
|
|
@@ -2305,7 +2353,7 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2305
2353
|
type: 'boolean',
|
|
2306
2354
|
default: defaults.triggerCommandOnProviderChange,
|
|
2307
2355
|
tags: ['experimental'],
|
|
2308
|
-
description: nls.localize(
|
|
2356
|
+
description: nls.localize(381, "Controls whether to trigger a command when the inline suggestion provider changes."),
|
|
2309
2357
|
experiment: {
|
|
2310
2358
|
mode: 'auto'
|
|
2311
2359
|
}
|
|
@@ -2315,7 +2363,7 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2315
2363
|
default: defaults.experimental.showOnSuggestConflict,
|
|
2316
2364
|
tags: ['experimental'],
|
|
2317
2365
|
enum: ['always', 'never', 'whenSuggestListIsIncomplete'],
|
|
2318
|
-
description: nls.localize(
|
|
2366
|
+
description: nls.localize(382, "Controls whether to show inline suggestions when there is a suggest conflict."),
|
|
2319
2367
|
experiment: {
|
|
2320
2368
|
mode: 'auto'
|
|
2321
2369
|
}
|
|
@@ -2323,19 +2371,19 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2323
2371
|
'editor.inlineSuggest.fontFamily': {
|
|
2324
2372
|
type: 'string',
|
|
2325
2373
|
default: defaults.fontFamily,
|
|
2326
|
-
description: nls.localize(
|
|
2374
|
+
description: nls.localize(383, "Controls the font family of the inline suggestions.")
|
|
2327
2375
|
},
|
|
2328
2376
|
'editor.inlineSuggest.edits.allowCodeShifting': {
|
|
2329
2377
|
type: 'string',
|
|
2330
2378
|
default: defaults.edits.allowCodeShifting,
|
|
2331
|
-
description: nls.localize(
|
|
2379
|
+
description: nls.localize(384, "Controls whether showing a suggestion will shift the code to make space for the suggestion inline."),
|
|
2332
2380
|
enum: ['always', 'horizontal', 'never'],
|
|
2333
2381
|
tags: ['nextEditSuggestions']
|
|
2334
2382
|
},
|
|
2335
2383
|
'editor.inlineSuggest.edits.showLongDistanceHint': {
|
|
2336
2384
|
type: 'boolean',
|
|
2337
2385
|
default: defaults.edits.showLongDistanceHint,
|
|
2338
|
-
description: nls.localize(
|
|
2386
|
+
description: nls.localize(385, "Controls whether long distance inline suggestions are shown."),
|
|
2339
2387
|
tags: ['nextEditSuggestions', 'experimental']
|
|
2340
2388
|
},
|
|
2341
2389
|
'editor.inlineSuggest.edits.longDistanceHintContextLineCount': {
|
|
@@ -2343,7 +2391,7 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2343
2391
|
default: defaults.edits.longDistanceHintContextLineCount,
|
|
2344
2392
|
minimum: 0,
|
|
2345
2393
|
maximum: 10,
|
|
2346
|
-
description: nls.localize(
|
|
2394
|
+
description: nls.localize(386, "Controls how many lines of surrounding context are shown above and below the target line in the long distance inline suggestion preview. Set to 0 to only show the target line."),
|
|
2347
2395
|
tags: ['nextEditSuggestions', 'experimental'],
|
|
2348
2396
|
experiment: {
|
|
2349
2397
|
mode: 'auto'
|
|
@@ -2352,18 +2400,18 @@ class InlineEditorSuggest extends BaseEditorOption {
|
|
|
2352
2400
|
'editor.inlineSuggest.edits.renderSideBySide': {
|
|
2353
2401
|
type: 'string',
|
|
2354
2402
|
default: defaults.edits.renderSideBySide,
|
|
2355
|
-
description: nls.localize(
|
|
2403
|
+
description: nls.localize(387, "Controls whether larger suggestions can be shown side by side."),
|
|
2356
2404
|
enum: ['auto', 'never'],
|
|
2357
2405
|
enumDescriptions: [
|
|
2358
|
-
nls.localize(
|
|
2359
|
-
nls.localize(
|
|
2406
|
+
nls.localize(388, "Larger suggestions will show side by side if there is enough space, otherwise they will be shown below."),
|
|
2407
|
+
nls.localize(389, "Larger suggestions are never shown side by side and will always be shown below."),
|
|
2360
2408
|
],
|
|
2361
2409
|
tags: ['nextEditSuggestions']
|
|
2362
2410
|
},
|
|
2363
2411
|
'editor.inlineSuggest.edits.showCollapsed': {
|
|
2364
2412
|
type: 'boolean',
|
|
2365
2413
|
default: defaults.edits.showCollapsed,
|
|
2366
|
-
description: nls.localize(
|
|
2414
|
+
description: nls.localize(390, "Controls whether the suggestion will show as collapsed until jumping to it."),
|
|
2367
2415
|
tags: ['nextEditSuggestions']
|
|
2368
2416
|
},
|
|
2369
2417
|
});
|
|
@@ -2427,12 +2475,12 @@ class BracketPairColorization extends BaseEditorOption {
|
|
|
2427
2475
|
'editor.bracketPairColorization.enabled': {
|
|
2428
2476
|
type: 'boolean',
|
|
2429
2477
|
default: defaults.enabled,
|
|
2430
|
-
markdownDescription: nls.localize(
|
|
2478
|
+
markdownDescription: nls.localize(391, "Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.", '`#workbench.colorCustomizations#`')
|
|
2431
2479
|
},
|
|
2432
2480
|
'editor.bracketPairColorization.independentColorPoolPerBracketType': {
|
|
2433
2481
|
type: 'boolean',
|
|
2434
2482
|
default: defaults.independentColorPoolPerBracketType,
|
|
2435
|
-
description: nls.localize(
|
|
2483
|
+
description: nls.localize(392, "Controls whether each bracket type has its own independent color pool.")
|
|
2436
2484
|
},
|
|
2437
2485
|
});
|
|
2438
2486
|
}
|
|
@@ -2464,44 +2512,44 @@ class GuideOptions extends BaseEditorOption {
|
|
|
2464
2512
|
type: ['boolean', 'string'],
|
|
2465
2513
|
enum: [true, 'active', false],
|
|
2466
2514
|
enumDescriptions: [
|
|
2467
|
-
nls.localize(
|
|
2468
|
-
nls.localize(
|
|
2469
|
-
nls.localize(
|
|
2515
|
+
nls.localize(393, "Enables bracket pair guides."),
|
|
2516
|
+
nls.localize(394, "Enables bracket pair guides only for the active bracket pair."),
|
|
2517
|
+
nls.localize(395, "Disables bracket pair guides."),
|
|
2470
2518
|
],
|
|
2471
2519
|
default: defaults.bracketPairs,
|
|
2472
|
-
description: nls.localize(
|
|
2520
|
+
description: nls.localize(396, "Controls whether bracket pair guides are enabled or not.")
|
|
2473
2521
|
},
|
|
2474
2522
|
'editor.guides.bracketPairsHorizontal': {
|
|
2475
2523
|
type: ['boolean', 'string'],
|
|
2476
2524
|
enum: [true, 'active', false],
|
|
2477
2525
|
enumDescriptions: [
|
|
2478
|
-
nls.localize(
|
|
2479
|
-
nls.localize(
|
|
2480
|
-
nls.localize(
|
|
2526
|
+
nls.localize(397, "Enables horizontal guides as addition to vertical bracket pair guides."),
|
|
2527
|
+
nls.localize(398, "Enables horizontal guides only for the active bracket pair."),
|
|
2528
|
+
nls.localize(399, "Disables horizontal bracket pair guides."),
|
|
2481
2529
|
],
|
|
2482
2530
|
default: defaults.bracketPairsHorizontal,
|
|
2483
|
-
description: nls.localize(
|
|
2531
|
+
description: nls.localize(400, "Controls whether horizontal bracket pair guides are enabled or not.")
|
|
2484
2532
|
},
|
|
2485
2533
|
'editor.guides.highlightActiveBracketPair': {
|
|
2486
2534
|
type: 'boolean',
|
|
2487
2535
|
default: defaults.highlightActiveBracketPair,
|
|
2488
|
-
description: nls.localize(
|
|
2536
|
+
description: nls.localize(401, "Controls whether the editor should highlight the active bracket pair.")
|
|
2489
2537
|
},
|
|
2490
2538
|
'editor.guides.indentation': {
|
|
2491
2539
|
type: 'boolean',
|
|
2492
2540
|
default: defaults.indentation,
|
|
2493
|
-
description: nls.localize(
|
|
2541
|
+
description: nls.localize(402, "Controls whether the editor should render indent guides.")
|
|
2494
2542
|
},
|
|
2495
2543
|
'editor.guides.highlightActiveIndentation': {
|
|
2496
2544
|
type: ['boolean', 'string'],
|
|
2497
2545
|
enum: [true, 'always', false],
|
|
2498
2546
|
enumDescriptions: [
|
|
2499
|
-
nls.localize(
|
|
2500
|
-
nls.localize(
|
|
2501
|
-
nls.localize(
|
|
2547
|
+
nls.localize(403, "Highlights the active indent guide."),
|
|
2548
|
+
nls.localize(404, "Highlights the active indent guide even if bracket guides are highlighted."),
|
|
2549
|
+
nls.localize(405, "Do not highlight the active indent guide."),
|
|
2502
2550
|
],
|
|
2503
2551
|
default: defaults.highlightActiveIndentation,
|
|
2504
|
-
description: nls.localize(
|
|
2552
|
+
description: nls.localize(406, "Controls whether the editor should highlight the active indent guide.")
|
|
2505
2553
|
}
|
|
2506
2554
|
});
|
|
2507
2555
|
}
|
|
@@ -2571,222 +2619,222 @@ class EditorSuggest extends BaseEditorOption {
|
|
|
2571
2619
|
showUsers: true,
|
|
2572
2620
|
showIssues: true,
|
|
2573
2621
|
};
|
|
2574
|
-
super(
|
|
2622
|
+
super(137 /* EditorOption.suggest */, 'suggest', defaults, {
|
|
2575
2623
|
'editor.suggest.insertMode': {
|
|
2576
2624
|
type: 'string',
|
|
2577
2625
|
enum: ['insert', 'replace'],
|
|
2578
2626
|
enumDescriptions: [
|
|
2579
|
-
nls.localize(
|
|
2580
|
-
nls.localize(
|
|
2627
|
+
nls.localize(407, "Insert suggestion without overwriting text right of the cursor."),
|
|
2628
|
+
nls.localize(408, "Insert suggestion and overwrite text right of the cursor."),
|
|
2581
2629
|
],
|
|
2582
2630
|
default: defaults.insertMode,
|
|
2583
|
-
description: nls.localize(
|
|
2631
|
+
description: nls.localize(409, "Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")
|
|
2584
2632
|
},
|
|
2585
2633
|
'editor.suggest.filterGraceful': {
|
|
2586
2634
|
type: 'boolean',
|
|
2587
2635
|
default: defaults.filterGraceful,
|
|
2588
|
-
description: nls.localize(
|
|
2636
|
+
description: nls.localize(410, "Controls whether filtering and sorting suggestions accounts for small typos.")
|
|
2589
2637
|
},
|
|
2590
2638
|
'editor.suggest.localityBonus': {
|
|
2591
2639
|
type: 'boolean',
|
|
2592
2640
|
default: defaults.localityBonus,
|
|
2593
|
-
description: nls.localize(
|
|
2641
|
+
description: nls.localize(411, "Controls whether sorting favors words that appear close to the cursor.")
|
|
2594
2642
|
},
|
|
2595
2643
|
'editor.suggest.shareSuggestSelections': {
|
|
2596
2644
|
type: 'boolean',
|
|
2597
2645
|
default: defaults.shareSuggestSelections,
|
|
2598
|
-
markdownDescription: nls.localize(
|
|
2646
|
+
markdownDescription: nls.localize(412, "Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")
|
|
2599
2647
|
},
|
|
2600
2648
|
'editor.suggest.selectionMode': {
|
|
2601
2649
|
type: 'string',
|
|
2602
2650
|
enum: ['always', 'never', 'whenTriggerCharacter', 'whenQuickSuggestion'],
|
|
2603
2651
|
enumDescriptions: [
|
|
2604
|
-
nls.localize(
|
|
2605
|
-
nls.localize(
|
|
2606
|
-
nls.localize(
|
|
2607
|
-
nls.localize(
|
|
2652
|
+
nls.localize(413, "Always select a suggestion when automatically triggering IntelliSense."),
|
|
2653
|
+
nls.localize(414, "Never select a suggestion when automatically triggering IntelliSense."),
|
|
2654
|
+
nls.localize(415, "Select a suggestion only when triggering IntelliSense from a trigger character."),
|
|
2655
|
+
nls.localize(416, "Select a suggestion only when triggering IntelliSense as you type."),
|
|
2608
2656
|
],
|
|
2609
2657
|
default: defaults.selectionMode,
|
|
2610
|
-
markdownDescription: nls.localize(
|
|
2658
|
+
markdownDescription: nls.localize(417, "Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.", '`#editor.quickSuggestions#`', '`#editor.suggestOnTriggerCharacters#`')
|
|
2611
2659
|
},
|
|
2612
2660
|
'editor.suggest.snippetsPreventQuickSuggestions': {
|
|
2613
2661
|
type: 'boolean',
|
|
2614
2662
|
default: defaults.snippetsPreventQuickSuggestions,
|
|
2615
|
-
description: nls.localize(
|
|
2663
|
+
description: nls.localize(418, "Controls whether an active snippet prevents quick suggestions.")
|
|
2616
2664
|
},
|
|
2617
2665
|
'editor.suggest.showIcons': {
|
|
2618
2666
|
type: 'boolean',
|
|
2619
2667
|
default: defaults.showIcons,
|
|
2620
|
-
description: nls.localize(
|
|
2668
|
+
description: nls.localize(419, "Controls whether to show or hide icons in suggestions.")
|
|
2621
2669
|
},
|
|
2622
2670
|
'editor.suggest.showStatusBar': {
|
|
2623
2671
|
type: 'boolean',
|
|
2624
2672
|
default: defaults.showStatusBar,
|
|
2625
|
-
description: nls.localize(
|
|
2673
|
+
description: nls.localize(420, "Controls the visibility of the status bar at the bottom of the suggest widget.")
|
|
2626
2674
|
},
|
|
2627
2675
|
'editor.suggest.preview': {
|
|
2628
2676
|
type: 'boolean',
|
|
2629
2677
|
default: defaults.preview,
|
|
2630
|
-
description: nls.localize(
|
|
2678
|
+
description: nls.localize(421, "Controls whether to preview the suggestion outcome in the editor.")
|
|
2631
2679
|
},
|
|
2632
2680
|
'editor.suggest.showInlineDetails': {
|
|
2633
2681
|
type: 'boolean',
|
|
2634
2682
|
default: defaults.showInlineDetails,
|
|
2635
|
-
description: nls.localize(
|
|
2683
|
+
description: nls.localize(422, "Controls whether suggest details show inline with the label or only in the details widget.")
|
|
2636
2684
|
},
|
|
2637
2685
|
'editor.suggest.filteredTypes': {
|
|
2638
2686
|
type: 'object',
|
|
2639
|
-
deprecationMessage: nls.localize(
|
|
2687
|
+
deprecationMessage: nls.localize(423, "This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")
|
|
2640
2688
|
},
|
|
2641
2689
|
'editor.suggest.showMethods': {
|
|
2642
2690
|
type: 'boolean',
|
|
2643
2691
|
default: true,
|
|
2644
|
-
markdownDescription: nls.localize(
|
|
2692
|
+
markdownDescription: nls.localize(424, "When enabled IntelliSense shows `method`-suggestions.")
|
|
2645
2693
|
},
|
|
2646
2694
|
'editor.suggest.showFunctions': {
|
|
2647
2695
|
type: 'boolean',
|
|
2648
2696
|
default: true,
|
|
2649
|
-
markdownDescription: nls.localize(
|
|
2697
|
+
markdownDescription: nls.localize(425, "When enabled IntelliSense shows `function`-suggestions.")
|
|
2650
2698
|
},
|
|
2651
2699
|
'editor.suggest.showConstructors': {
|
|
2652
2700
|
type: 'boolean',
|
|
2653
2701
|
default: true,
|
|
2654
|
-
markdownDescription: nls.localize(
|
|
2702
|
+
markdownDescription: nls.localize(426, "When enabled IntelliSense shows `constructor`-suggestions.")
|
|
2655
2703
|
},
|
|
2656
2704
|
'editor.suggest.showDeprecated': {
|
|
2657
2705
|
type: 'boolean',
|
|
2658
2706
|
default: true,
|
|
2659
|
-
markdownDescription: nls.localize(
|
|
2707
|
+
markdownDescription: nls.localize(427, "When enabled IntelliSense shows `deprecated`-suggestions.")
|
|
2660
2708
|
},
|
|
2661
2709
|
'editor.suggest.matchOnWordStartOnly': {
|
|
2662
2710
|
type: 'boolean',
|
|
2663
2711
|
default: true,
|
|
2664
|
-
markdownDescription: nls.localize(
|
|
2712
|
+
markdownDescription: nls.localize(428, "When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")
|
|
2665
2713
|
},
|
|
2666
2714
|
'editor.suggest.showFields': {
|
|
2667
2715
|
type: 'boolean',
|
|
2668
2716
|
default: true,
|
|
2669
|
-
markdownDescription: nls.localize(
|
|
2717
|
+
markdownDescription: nls.localize(429, "When enabled IntelliSense shows `field`-suggestions.")
|
|
2670
2718
|
},
|
|
2671
2719
|
'editor.suggest.showVariables': {
|
|
2672
2720
|
type: 'boolean',
|
|
2673
2721
|
default: true,
|
|
2674
|
-
markdownDescription: nls.localize(
|
|
2722
|
+
markdownDescription: nls.localize(430, "When enabled IntelliSense shows `variable`-suggestions.")
|
|
2675
2723
|
},
|
|
2676
2724
|
'editor.suggest.showClasses': {
|
|
2677
2725
|
type: 'boolean',
|
|
2678
2726
|
default: true,
|
|
2679
|
-
markdownDescription: nls.localize(
|
|
2727
|
+
markdownDescription: nls.localize(431, "When enabled IntelliSense shows `class`-suggestions.")
|
|
2680
2728
|
},
|
|
2681
2729
|
'editor.suggest.showStructs': {
|
|
2682
2730
|
type: 'boolean',
|
|
2683
2731
|
default: true,
|
|
2684
|
-
markdownDescription: nls.localize(
|
|
2732
|
+
markdownDescription: nls.localize(432, "When enabled IntelliSense shows `struct`-suggestions.")
|
|
2685
2733
|
},
|
|
2686
2734
|
'editor.suggest.showInterfaces': {
|
|
2687
2735
|
type: 'boolean',
|
|
2688
2736
|
default: true,
|
|
2689
|
-
markdownDescription: nls.localize(
|
|
2737
|
+
markdownDescription: nls.localize(433, "When enabled IntelliSense shows `interface`-suggestions.")
|
|
2690
2738
|
},
|
|
2691
2739
|
'editor.suggest.showModules': {
|
|
2692
2740
|
type: 'boolean',
|
|
2693
2741
|
default: true,
|
|
2694
|
-
markdownDescription: nls.localize(
|
|
2742
|
+
markdownDescription: nls.localize(434, "When enabled IntelliSense shows `module`-suggestions.")
|
|
2695
2743
|
},
|
|
2696
2744
|
'editor.suggest.showProperties': {
|
|
2697
2745
|
type: 'boolean',
|
|
2698
2746
|
default: true,
|
|
2699
|
-
markdownDescription: nls.localize(
|
|
2747
|
+
markdownDescription: nls.localize(435, "When enabled IntelliSense shows `property`-suggestions.")
|
|
2700
2748
|
},
|
|
2701
2749
|
'editor.suggest.showEvents': {
|
|
2702
2750
|
type: 'boolean',
|
|
2703
2751
|
default: true,
|
|
2704
|
-
markdownDescription: nls.localize(
|
|
2752
|
+
markdownDescription: nls.localize(436, "When enabled IntelliSense shows `event`-suggestions.")
|
|
2705
2753
|
},
|
|
2706
2754
|
'editor.suggest.showOperators': {
|
|
2707
2755
|
type: 'boolean',
|
|
2708
2756
|
default: true,
|
|
2709
|
-
markdownDescription: nls.localize(
|
|
2757
|
+
markdownDescription: nls.localize(437, "When enabled IntelliSense shows `operator`-suggestions.")
|
|
2710
2758
|
},
|
|
2711
2759
|
'editor.suggest.showUnits': {
|
|
2712
2760
|
type: 'boolean',
|
|
2713
2761
|
default: true,
|
|
2714
|
-
markdownDescription: nls.localize(
|
|
2762
|
+
markdownDescription: nls.localize(438, "When enabled IntelliSense shows `unit`-suggestions.")
|
|
2715
2763
|
},
|
|
2716
2764
|
'editor.suggest.showValues': {
|
|
2717
2765
|
type: 'boolean',
|
|
2718
2766
|
default: true,
|
|
2719
|
-
markdownDescription: nls.localize(
|
|
2767
|
+
markdownDescription: nls.localize(439, "When enabled IntelliSense shows `value`-suggestions.")
|
|
2720
2768
|
},
|
|
2721
2769
|
'editor.suggest.showConstants': {
|
|
2722
2770
|
type: 'boolean',
|
|
2723
2771
|
default: true,
|
|
2724
|
-
markdownDescription: nls.localize(
|
|
2772
|
+
markdownDescription: nls.localize(440, "When enabled IntelliSense shows `constant`-suggestions.")
|
|
2725
2773
|
},
|
|
2726
2774
|
'editor.suggest.showEnums': {
|
|
2727
2775
|
type: 'boolean',
|
|
2728
2776
|
default: true,
|
|
2729
|
-
markdownDescription: nls.localize(
|
|
2777
|
+
markdownDescription: nls.localize(441, "When enabled IntelliSense shows `enum`-suggestions.")
|
|
2730
2778
|
},
|
|
2731
2779
|
'editor.suggest.showEnumMembers': {
|
|
2732
2780
|
type: 'boolean',
|
|
2733
2781
|
default: true,
|
|
2734
|
-
markdownDescription: nls.localize(
|
|
2782
|
+
markdownDescription: nls.localize(442, "When enabled IntelliSense shows `enumMember`-suggestions.")
|
|
2735
2783
|
},
|
|
2736
2784
|
'editor.suggest.showKeywords': {
|
|
2737
2785
|
type: 'boolean',
|
|
2738
2786
|
default: true,
|
|
2739
|
-
markdownDescription: nls.localize(
|
|
2787
|
+
markdownDescription: nls.localize(443, "When enabled IntelliSense shows `keyword`-suggestions.")
|
|
2740
2788
|
},
|
|
2741
2789
|
'editor.suggest.showWords': {
|
|
2742
2790
|
type: 'boolean',
|
|
2743
2791
|
default: true,
|
|
2744
|
-
markdownDescription: nls.localize(
|
|
2792
|
+
markdownDescription: nls.localize(444, "When enabled IntelliSense shows `text`-suggestions.")
|
|
2745
2793
|
},
|
|
2746
2794
|
'editor.suggest.showColors': {
|
|
2747
2795
|
type: 'boolean',
|
|
2748
2796
|
default: true,
|
|
2749
|
-
markdownDescription: nls.localize(
|
|
2797
|
+
markdownDescription: nls.localize(445, "When enabled IntelliSense shows `color`-suggestions.")
|
|
2750
2798
|
},
|
|
2751
2799
|
'editor.suggest.showFiles': {
|
|
2752
2800
|
type: 'boolean',
|
|
2753
2801
|
default: true,
|
|
2754
|
-
markdownDescription: nls.localize(
|
|
2802
|
+
markdownDescription: nls.localize(446, "When enabled IntelliSense shows `file`-suggestions.")
|
|
2755
2803
|
},
|
|
2756
2804
|
'editor.suggest.showReferences': {
|
|
2757
2805
|
type: 'boolean',
|
|
2758
2806
|
default: true,
|
|
2759
|
-
markdownDescription: nls.localize(
|
|
2807
|
+
markdownDescription: nls.localize(447, "When enabled IntelliSense shows `reference`-suggestions.")
|
|
2760
2808
|
},
|
|
2761
2809
|
'editor.suggest.showCustomcolors': {
|
|
2762
2810
|
type: 'boolean',
|
|
2763
2811
|
default: true,
|
|
2764
|
-
markdownDescription: nls.localize(
|
|
2812
|
+
markdownDescription: nls.localize(448, "When enabled IntelliSense shows `customcolor`-suggestions.")
|
|
2765
2813
|
},
|
|
2766
2814
|
'editor.suggest.showFolders': {
|
|
2767
2815
|
type: 'boolean',
|
|
2768
2816
|
default: true,
|
|
2769
|
-
markdownDescription: nls.localize(
|
|
2817
|
+
markdownDescription: nls.localize(449, "When enabled IntelliSense shows `folder`-suggestions.")
|
|
2770
2818
|
},
|
|
2771
2819
|
'editor.suggest.showTypeParameters': {
|
|
2772
2820
|
type: 'boolean',
|
|
2773
2821
|
default: true,
|
|
2774
|
-
markdownDescription: nls.localize(
|
|
2822
|
+
markdownDescription: nls.localize(450, "When enabled IntelliSense shows `typeParameter`-suggestions.")
|
|
2775
2823
|
},
|
|
2776
2824
|
'editor.suggest.showSnippets': {
|
|
2777
2825
|
type: 'boolean',
|
|
2778
2826
|
default: true,
|
|
2779
|
-
markdownDescription: nls.localize(
|
|
2827
|
+
markdownDescription: nls.localize(451, "When enabled IntelliSense shows `snippet`-suggestions.")
|
|
2780
2828
|
},
|
|
2781
2829
|
'editor.suggest.showUsers': {
|
|
2782
2830
|
type: 'boolean',
|
|
2783
2831
|
default: true,
|
|
2784
|
-
markdownDescription: nls.localize(
|
|
2832
|
+
markdownDescription: nls.localize(452, "When enabled IntelliSense shows `user`-suggestions.")
|
|
2785
2833
|
},
|
|
2786
2834
|
'editor.suggest.showIssues': {
|
|
2787
2835
|
type: 'boolean',
|
|
2788
2836
|
default: true,
|
|
2789
|
-
markdownDescription: nls.localize(
|
|
2837
|
+
markdownDescription: nls.localize(453, "When enabled IntelliSense shows `issues`-suggestions.")
|
|
2790
2838
|
}
|
|
2791
2839
|
});
|
|
2792
2840
|
}
|
|
@@ -2842,17 +2890,17 @@ class EditorSuggest extends BaseEditorOption {
|
|
|
2842
2890
|
}
|
|
2843
2891
|
class SmartSelect extends BaseEditorOption {
|
|
2844
2892
|
constructor() {
|
|
2845
|
-
super(
|
|
2893
|
+
super(132 /* EditorOption.smartSelect */, 'smartSelect', {
|
|
2846
2894
|
selectLeadingAndTrailingWhitespace: true,
|
|
2847
2895
|
selectSubwords: true,
|
|
2848
2896
|
}, {
|
|
2849
2897
|
'editor.smartSelect.selectLeadingAndTrailingWhitespace': {
|
|
2850
|
-
description: nls.localize(
|
|
2898
|
+
description: nls.localize(454, "Whether leading and trailing whitespace should always be selected."),
|
|
2851
2899
|
default: true,
|
|
2852
2900
|
type: 'boolean'
|
|
2853
2901
|
},
|
|
2854
2902
|
'editor.smartSelect.selectSubwords': {
|
|
2855
|
-
description: nls.localize(
|
|
2903
|
+
description: nls.localize(455, "Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),
|
|
2856
2904
|
default: true,
|
|
2857
2905
|
type: 'boolean'
|
|
2858
2906
|
}
|
|
@@ -2878,7 +2926,7 @@ class SmartSelect extends BaseEditorOption {
|
|
|
2878
2926
|
class WordSegmenterLocales extends BaseEditorOption {
|
|
2879
2927
|
constructor() {
|
|
2880
2928
|
const defaults = [];
|
|
2881
|
-
super(
|
|
2929
|
+
super(150 /* EditorOption.wordSegmenterLocales */, 'wordSegmenterLocales', defaults, {
|
|
2882
2930
|
anyOf: [
|
|
2883
2931
|
{
|
|
2884
2932
|
type: 'string',
|
|
@@ -2889,7 +2937,7 @@ class WordSegmenterLocales extends BaseEditorOption {
|
|
|
2889
2937
|
}
|
|
2890
2938
|
}
|
|
2891
2939
|
],
|
|
2892
|
-
description: nls.localize(
|
|
2940
|
+
description: nls.localize(456, "Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),
|
|
2893
2941
|
type: 'array',
|
|
2894
2942
|
items: {
|
|
2895
2943
|
type: 'string',
|
|
@@ -2922,17 +2970,17 @@ class WordSegmenterLocales extends BaseEditorOption {
|
|
|
2922
2970
|
}
|
|
2923
2971
|
class WrappingIndentOption extends BaseEditorOption {
|
|
2924
2972
|
constructor() {
|
|
2925
|
-
super(
|
|
2973
|
+
super(158 /* EditorOption.wrappingIndent */, 'wrappingIndent', 1 /* WrappingIndent.Same */, {
|
|
2926
2974
|
'editor.wrappingIndent': {
|
|
2927
2975
|
type: 'string',
|
|
2928
2976
|
enum: ['none', 'same', 'indent', 'deepIndent'],
|
|
2929
2977
|
enumDescriptions: [
|
|
2930
|
-
nls.localize(
|
|
2931
|
-
nls.localize(
|
|
2932
|
-
nls.localize(
|
|
2933
|
-
nls.localize(
|
|
2978
|
+
nls.localize(457, "No indentation. Wrapped lines begin at column 1."),
|
|
2979
|
+
nls.localize(458, "Wrapped lines get the same indentation as the parent."),
|
|
2980
|
+
nls.localize(459, "Wrapped lines get +1 indentation toward the parent."),
|
|
2981
|
+
nls.localize(460, "Wrapped lines get +2 indentation toward the parent."),
|
|
2934
2982
|
],
|
|
2935
|
-
description: nls.localize(
|
|
2983
|
+
description: nls.localize(461, "Controls the indentation of wrapped lines."),
|
|
2936
2984
|
default: 'same'
|
|
2937
2985
|
}
|
|
2938
2986
|
});
|
|
@@ -2958,7 +3006,7 @@ class WrappingIndentOption extends BaseEditorOption {
|
|
|
2958
3006
|
}
|
|
2959
3007
|
class EditorWrappingInfoComputer extends ComputedEditorOption {
|
|
2960
3008
|
constructor() {
|
|
2961
|
-
super(
|
|
3009
|
+
super(170 /* EditorOption.wrappingInfo */, {
|
|
2962
3010
|
isDominatedByLongLines: false,
|
|
2963
3011
|
isWordWrapMinified: false,
|
|
2964
3012
|
isViewportWrapping: false,
|
|
@@ -2966,7 +3014,7 @@ class EditorWrappingInfoComputer extends ComputedEditorOption {
|
|
|
2966
3014
|
});
|
|
2967
3015
|
}
|
|
2968
3016
|
compute(env, options, _) {
|
|
2969
|
-
const layoutInfo = options.get(
|
|
3017
|
+
const layoutInfo = options.get(169 /* EditorOption.layoutInfo */);
|
|
2970
3018
|
return {
|
|
2971
3019
|
isDominatedByLongLines: env.isDominatedByLongLines,
|
|
2972
3020
|
isWordWrapMinified: layoutInfo.isWordWrapMinified,
|
|
@@ -2982,18 +3030,18 @@ class EditorDropIntoEditor extends BaseEditorOption {
|
|
|
2982
3030
|
'editor.dropIntoEditor.enabled': {
|
|
2983
3031
|
type: 'boolean',
|
|
2984
3032
|
default: defaults.enabled,
|
|
2985
|
-
markdownDescription: nls.localize(
|
|
3033
|
+
markdownDescription: nls.localize(462, "Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor)."),
|
|
2986
3034
|
},
|
|
2987
3035
|
'editor.dropIntoEditor.showDropSelector': {
|
|
2988
3036
|
type: 'string',
|
|
2989
|
-
markdownDescription: nls.localize(
|
|
3037
|
+
markdownDescription: nls.localize(463, "Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),
|
|
2990
3038
|
enum: [
|
|
2991
3039
|
'afterDrop',
|
|
2992
3040
|
'never'
|
|
2993
3041
|
],
|
|
2994
3042
|
enumDescriptions: [
|
|
2995
|
-
nls.localize(
|
|
2996
|
-
nls.localize(
|
|
3043
|
+
nls.localize(464, "Show the drop selector widget after a file is dropped into the editor."),
|
|
3044
|
+
nls.localize(465, "Never show the drop selector widget. Instead the default drop provider is always used."),
|
|
2997
3045
|
],
|
|
2998
3046
|
default: 'afterDrop',
|
|
2999
3047
|
},
|
|
@@ -3013,22 +3061,22 @@ class EditorDropIntoEditor extends BaseEditorOption {
|
|
|
3013
3061
|
class EditorPasteAs extends BaseEditorOption {
|
|
3014
3062
|
constructor() {
|
|
3015
3063
|
const defaults = { enabled: true, showPasteSelector: 'afterPaste' };
|
|
3016
|
-
super(
|
|
3064
|
+
super(99 /* EditorOption.pasteAs */, 'pasteAs', defaults, {
|
|
3017
3065
|
'editor.pasteAs.enabled': {
|
|
3018
3066
|
type: 'boolean',
|
|
3019
3067
|
default: defaults.enabled,
|
|
3020
|
-
markdownDescription: nls.localize(
|
|
3068
|
+
markdownDescription: nls.localize(466, "Controls whether you can paste content in different ways."),
|
|
3021
3069
|
},
|
|
3022
3070
|
'editor.pasteAs.showPasteSelector': {
|
|
3023
3071
|
type: 'string',
|
|
3024
|
-
markdownDescription: nls.localize(
|
|
3072
|
+
markdownDescription: nls.localize(467, "Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),
|
|
3025
3073
|
enum: [
|
|
3026
3074
|
'afterPaste',
|
|
3027
3075
|
'never'
|
|
3028
3076
|
],
|
|
3029
3077
|
enumDescriptions: [
|
|
3030
|
-
nls.localize(
|
|
3031
|
-
nls.localize(
|
|
3078
|
+
nls.localize(468, "Show the paste selector widget after content is pasted into the editor."),
|
|
3079
|
+
nls.localize(469, "Never show the paste selector widget. Instead the default pasting behavior is always used."),
|
|
3032
3080
|
],
|
|
3033
3081
|
default: 'afterPaste',
|
|
3034
3082
|
},
|
|
@@ -3055,244 +3103,245 @@ function register(option) {
|
|
|
3055
3103
|
return option;
|
|
3056
3104
|
}
|
|
3057
3105
|
export const EditorOptions = {
|
|
3058
|
-
acceptSuggestionOnCommitCharacter: register(new EditorBooleanOption(0 /* EditorOption.acceptSuggestionOnCommitCharacter */, 'acceptSuggestionOnCommitCharacter', true, { markdownDescription: nls.localize(
|
|
3106
|
+
acceptSuggestionOnCommitCharacter: register(new EditorBooleanOption(0 /* EditorOption.acceptSuggestionOnCommitCharacter */, 'acceptSuggestionOnCommitCharacter', true, { markdownDescription: nls.localize(470, "Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.") })),
|
|
3059
3107
|
acceptSuggestionOnEnter: register(new EditorStringEnumOption(1 /* EditorOption.acceptSuggestionOnEnter */, 'acceptSuggestionOnEnter', 'on', ['on', 'smart', 'off'], {
|
|
3060
3108
|
markdownEnumDescriptions: [
|
|
3061
3109
|
'',
|
|
3062
|
-
nls.localize(
|
|
3110
|
+
nls.localize(471, "Only accept a suggestion with `Enter` when it makes a textual change."),
|
|
3063
3111
|
''
|
|
3064
3112
|
],
|
|
3065
|
-
markdownDescription: nls.localize(
|
|
3113
|
+
markdownDescription: nls.localize(472, "Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")
|
|
3066
3114
|
})),
|
|
3067
3115
|
accessibilitySupport: register(new EditorAccessibilitySupport()),
|
|
3068
3116
|
accessibilityPageSize: register(new EditorIntOption(3 /* EditorOption.accessibilityPageSize */, 'accessibilityPageSize', 500, 1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, {
|
|
3069
|
-
description: nls.localize(
|
|
3117
|
+
description: nls.localize(473, "Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),
|
|
3070
3118
|
tags: ['accessibility']
|
|
3071
3119
|
})),
|
|
3072
3120
|
allowOverflow: register(new EditorBooleanOption(4 /* EditorOption.allowOverflow */, 'allowOverflow', true)),
|
|
3073
3121
|
allowVariableLineHeights: register(new EditorBooleanOption(5 /* EditorOption.allowVariableLineHeights */, 'allowVariableLineHeights', true, {
|
|
3074
|
-
description: nls.localize(
|
|
3122
|
+
description: nls.localize(474, "Controls whether to allow using variable line heights in the editor.")
|
|
3075
3123
|
})),
|
|
3076
3124
|
allowVariableFonts: register(new EditorBooleanOption(6 /* EditorOption.allowVariableFonts */, 'allowVariableFonts', true, {
|
|
3077
|
-
description: nls.localize(
|
|
3125
|
+
description: nls.localize(475, "Controls whether to allow using variable fonts in the editor.")
|
|
3078
3126
|
})),
|
|
3079
3127
|
allowVariableFontsInAccessibilityMode: register(new EditorBooleanOption(7 /* EditorOption.allowVariableFontsInAccessibilityMode */, 'allowVariableFontsInAccessibilityMode', false, {
|
|
3080
|
-
description: nls.localize(
|
|
3128
|
+
description: nls.localize(476, "Controls whether to allow using variable fonts in the editor in the accessibility mode."),
|
|
3081
3129
|
tags: ['accessibility']
|
|
3082
3130
|
})),
|
|
3083
|
-
ariaLabel: register(new EditorStringOption(8 /* EditorOption.ariaLabel */, 'ariaLabel', nls.localize(
|
|
3131
|
+
ariaLabel: register(new EditorStringOption(8 /* EditorOption.ariaLabel */, 'ariaLabel', nls.localize(477, "Editor content"))),
|
|
3084
3132
|
ariaRequired: register(new EditorBooleanOption(9 /* EditorOption.ariaRequired */, 'ariaRequired', false, undefined)),
|
|
3085
3133
|
screenReaderAnnounceInlineSuggestion: register(new EditorBooleanOption(12 /* EditorOption.screenReaderAnnounceInlineSuggestion */, 'screenReaderAnnounceInlineSuggestion', true, {
|
|
3086
|
-
description: nls.localize(
|
|
3134
|
+
description: nls.localize(478, "Control whether inline suggestions are announced by a screen reader."),
|
|
3087
3135
|
tags: ['accessibility']
|
|
3088
3136
|
})),
|
|
3089
3137
|
autoClosingBrackets: register(new EditorStringEnumOption(10 /* EditorOption.autoClosingBrackets */, 'autoClosingBrackets', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
|
|
3090
3138
|
enumDescriptions: [
|
|
3091
3139
|
'',
|
|
3092
|
-
nls.localize(
|
|
3093
|
-
nls.localize(
|
|
3140
|
+
nls.localize(479, "Use language configurations to determine when to autoclose brackets."),
|
|
3141
|
+
nls.localize(480, "Autoclose brackets only when the cursor is to the left of whitespace."),
|
|
3094
3142
|
'',
|
|
3095
3143
|
],
|
|
3096
|
-
description: nls.localize(
|
|
3144
|
+
description: nls.localize(481, "Controls whether the editor should automatically close brackets after the user adds an opening bracket.")
|
|
3097
3145
|
})),
|
|
3098
3146
|
autoClosingComments: register(new EditorStringEnumOption(11 /* EditorOption.autoClosingComments */, 'autoClosingComments', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
|
|
3099
3147
|
enumDescriptions: [
|
|
3100
3148
|
'',
|
|
3101
|
-
nls.localize(
|
|
3102
|
-
nls.localize(
|
|
3149
|
+
nls.localize(482, "Use language configurations to determine when to autoclose comments."),
|
|
3150
|
+
nls.localize(483, "Autoclose comments only when the cursor is to the left of whitespace."),
|
|
3103
3151
|
'',
|
|
3104
3152
|
],
|
|
3105
|
-
description: nls.localize(
|
|
3153
|
+
description: nls.localize(484, "Controls whether the editor should automatically close comments after the user adds an opening comment.")
|
|
3106
3154
|
})),
|
|
3107
3155
|
autoClosingDelete: register(new EditorStringEnumOption(13 /* EditorOption.autoClosingDelete */, 'autoClosingDelete', 'auto', ['always', 'auto', 'never'], {
|
|
3108
3156
|
enumDescriptions: [
|
|
3109
3157
|
'',
|
|
3110
|
-
nls.localize(
|
|
3158
|
+
nls.localize(485, "Remove adjacent closing quotes or brackets only if they were automatically inserted."),
|
|
3111
3159
|
'',
|
|
3112
3160
|
],
|
|
3113
|
-
description: nls.localize(
|
|
3161
|
+
description: nls.localize(486, "Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")
|
|
3114
3162
|
})),
|
|
3115
3163
|
autoClosingOvertype: register(new EditorStringEnumOption(14 /* EditorOption.autoClosingOvertype */, 'autoClosingOvertype', 'auto', ['always', 'auto', 'never'], {
|
|
3116
3164
|
enumDescriptions: [
|
|
3117
3165
|
'',
|
|
3118
|
-
nls.localize(
|
|
3166
|
+
nls.localize(487, "Type over closing quotes or brackets only if they were automatically inserted."),
|
|
3119
3167
|
'',
|
|
3120
3168
|
],
|
|
3121
|
-
description: nls.localize(
|
|
3169
|
+
description: nls.localize(488, "Controls whether the editor should type over closing quotes or brackets.")
|
|
3122
3170
|
})),
|
|
3123
3171
|
autoClosingQuotes: register(new EditorStringEnumOption(15 /* EditorOption.autoClosingQuotes */, 'autoClosingQuotes', 'languageDefined', ['always', 'languageDefined', 'beforeWhitespace', 'never'], {
|
|
3124
3172
|
enumDescriptions: [
|
|
3125
3173
|
'',
|
|
3126
|
-
nls.localize(
|
|
3127
|
-
nls.localize(
|
|
3174
|
+
nls.localize(489, "Use language configurations to determine when to autoclose quotes."),
|
|
3175
|
+
nls.localize(490, "Autoclose quotes only when the cursor is to the left of whitespace."),
|
|
3128
3176
|
'',
|
|
3129
3177
|
],
|
|
3130
|
-
description: nls.localize(
|
|
3178
|
+
description: nls.localize(491, "Controls whether the editor should automatically close quotes after the user adds an opening quote.")
|
|
3131
3179
|
})),
|
|
3132
3180
|
autoIndent: register(new EditorEnumOption(16 /* EditorOption.autoIndent */, 'autoIndent', 4 /* EditorAutoIndentStrategy.Full */, 'full', ['none', 'keep', 'brackets', 'advanced', 'full'], _autoIndentFromString, {
|
|
3133
3181
|
enumDescriptions: [
|
|
3134
|
-
nls.localize(
|
|
3135
|
-
nls.localize(
|
|
3136
|
-
nls.localize(
|
|
3137
|
-
nls.localize(
|
|
3138
|
-
nls.localize(
|
|
3182
|
+
nls.localize(492, "The editor will not insert indentation automatically."),
|
|
3183
|
+
nls.localize(493, "The editor will keep the current line's indentation."),
|
|
3184
|
+
nls.localize(494, "The editor will keep the current line's indentation and honor language defined brackets."),
|
|
3185
|
+
nls.localize(495, "The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),
|
|
3186
|
+
nls.localize(496, "The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages."),
|
|
3139
3187
|
],
|
|
3140
|
-
description: nls.localize(
|
|
3188
|
+
description: nls.localize(497, "Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")
|
|
3141
3189
|
})),
|
|
3142
|
-
autoIndentOnPaste: register(new EditorBooleanOption(17 /* EditorOption.autoIndentOnPaste */, 'autoIndentOnPaste', false, { description: nls.localize(
|
|
3143
|
-
autoIndentOnPasteWithinString: register(new EditorBooleanOption(18 /* EditorOption.autoIndentOnPasteWithinString */, 'autoIndentOnPasteWithinString', true, { description: nls.localize(
|
|
3190
|
+
autoIndentOnPaste: register(new EditorBooleanOption(17 /* EditorOption.autoIndentOnPaste */, 'autoIndentOnPaste', false, { description: nls.localize(498, "Controls whether the editor should automatically auto-indent the pasted content.") })),
|
|
3191
|
+
autoIndentOnPasteWithinString: register(new EditorBooleanOption(18 /* EditorOption.autoIndentOnPasteWithinString */, 'autoIndentOnPasteWithinString', true, { description: nls.localize(499, "Controls whether the editor should automatically auto-indent the pasted content when pasted within a string. This takes effect when autoIndentOnPaste is true.") })),
|
|
3144
3192
|
automaticLayout: register(new EditorBooleanOption(19 /* EditorOption.automaticLayout */, 'automaticLayout', false)),
|
|
3145
3193
|
autoSurround: register(new EditorStringEnumOption(20 /* EditorOption.autoSurround */, 'autoSurround', 'languageDefined', ['languageDefined', 'quotes', 'brackets', 'never'], {
|
|
3146
3194
|
enumDescriptions: [
|
|
3147
|
-
nls.localize(
|
|
3148
|
-
nls.localize(
|
|
3149
|
-
nls.localize(
|
|
3195
|
+
nls.localize(500, "Use language configurations to determine when to automatically surround selections."),
|
|
3196
|
+
nls.localize(501, "Surround with quotes but not brackets."),
|
|
3197
|
+
nls.localize(502, "Surround with brackets but not quotes."),
|
|
3150
3198
|
''
|
|
3151
3199
|
],
|
|
3152
|
-
description: nls.localize(
|
|
3200
|
+
description: nls.localize(503, "Controls whether the editor should automatically surround selections when typing quotes or brackets.")
|
|
3153
3201
|
})),
|
|
3154
3202
|
bracketPairColorization: register(new BracketPairColorization()),
|
|
3155
3203
|
bracketPairGuides: register(new GuideOptions()),
|
|
3156
|
-
stickyTabStops: register(new EditorBooleanOption(
|
|
3157
|
-
codeLens: register(new EditorBooleanOption(23 /* EditorOption.codeLens */, 'codeLens', true, { description: nls.localize(
|
|
3158
|
-
codeLensFontFamily: register(new EditorStringOption(24 /* EditorOption.codeLensFontFamily */, 'codeLensFontFamily', '', { description: nls.localize(
|
|
3204
|
+
stickyTabStops: register(new EditorBooleanOption(135 /* EditorOption.stickyTabStops */, 'stickyTabStops', false, { description: nls.localize(504, "Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.") })),
|
|
3205
|
+
codeLens: register(new EditorBooleanOption(23 /* EditorOption.codeLens */, 'codeLens', true, { description: nls.localize(505, "Controls whether the editor shows CodeLens.") })),
|
|
3206
|
+
codeLensFontFamily: register(new EditorStringOption(24 /* EditorOption.codeLensFontFamily */, 'codeLensFontFamily', '', { description: nls.localize(506, "Controls the font family for CodeLens.") })),
|
|
3159
3207
|
codeLensFontSize: register(new EditorIntOption(25 /* EditorOption.codeLensFontSize */, 'codeLensFontSize', 0, 0, 100, {
|
|
3160
3208
|
type: 'number',
|
|
3161
3209
|
default: 0,
|
|
3162
3210
|
minimum: 0,
|
|
3163
3211
|
maximum: 100,
|
|
3164
|
-
markdownDescription: nls.localize(
|
|
3212
|
+
markdownDescription: nls.localize(507, "Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")
|
|
3165
3213
|
})),
|
|
3166
|
-
colorDecorators: register(new EditorBooleanOption(26 /* EditorOption.colorDecorators */, 'colorDecorators', true, { description: nls.localize(
|
|
3167
|
-
colorDecoratorActivatedOn: register(new EditorStringEnumOption(
|
|
3214
|
+
colorDecorators: register(new EditorBooleanOption(26 /* EditorOption.colorDecorators */, 'colorDecorators', true, { description: nls.localize(508, "Controls whether the editor should render the inline color decorators and color picker.") })),
|
|
3215
|
+
colorDecoratorActivatedOn: register(new EditorStringEnumOption(172 /* EditorOption.colorDecoratorsActivatedOn */, 'colorDecoratorsActivatedOn', 'clickAndHover', ['clickAndHover', 'hover', 'click'], {
|
|
3168
3216
|
enumDescriptions: [
|
|
3169
|
-
nls.localize(
|
|
3170
|
-
nls.localize(
|
|
3171
|
-
nls.localize(
|
|
3217
|
+
nls.localize(509, "Make the color picker appear both on click and hover of the color decorator"),
|
|
3218
|
+
nls.localize(510, "Make the color picker appear on hover of the color decorator"),
|
|
3219
|
+
nls.localize(511, "Make the color picker appear on click of the color decorator")
|
|
3172
3220
|
],
|
|
3173
|
-
description: nls.localize(
|
|
3221
|
+
description: nls.localize(512, "Controls the condition to make a color picker appear from a color decorator.")
|
|
3174
3222
|
})),
|
|
3175
3223
|
colorDecoratorsLimit: register(new EditorIntOption(27 /* EditorOption.colorDecoratorsLimit */, 'colorDecoratorsLimit', 500, 1, 1000000, {
|
|
3176
|
-
markdownDescription: nls.localize(
|
|
3224
|
+
markdownDescription: nls.localize(513, "Controls the max number of color decorators that can be rendered in an editor at once.")
|
|
3177
3225
|
})),
|
|
3178
|
-
columnSelection: register(new EditorBooleanOption(28 /* EditorOption.columnSelection */, 'columnSelection', false, { description: nls.localize(
|
|
3226
|
+
columnSelection: register(new EditorBooleanOption(28 /* EditorOption.columnSelection */, 'columnSelection', false, { description: nls.localize(514, "Enable that the selection with the mouse and keys is doing column selection.") })),
|
|
3179
3227
|
comments: register(new EditorComments()),
|
|
3180
3228
|
contextmenu: register(new EditorBooleanOption(30 /* EditorOption.contextmenu */, 'contextmenu', true)),
|
|
3181
|
-
copyWithSyntaxHighlighting: register(new EditorBooleanOption(31 /* EditorOption.copyWithSyntaxHighlighting */, 'copyWithSyntaxHighlighting', true, { description: nls.localize(
|
|
3182
|
-
cursorBlinking: register(new EditorEnumOption(32 /* EditorOption.cursorBlinking */, 'cursorBlinking', 1 /* TextEditorCursorBlinkingStyle.Blink */, 'blink', ['blink', 'smooth', 'phase', 'expand', 'solid'], cursorBlinkingStyleFromString, { description: nls.localize(
|
|
3229
|
+
copyWithSyntaxHighlighting: register(new EditorBooleanOption(31 /* EditorOption.copyWithSyntaxHighlighting */, 'copyWithSyntaxHighlighting', true, { description: nls.localize(515, "Controls whether syntax highlighting should be copied into the clipboard.") })),
|
|
3230
|
+
cursorBlinking: register(new EditorEnumOption(32 /* EditorOption.cursorBlinking */, 'cursorBlinking', 1 /* TextEditorCursorBlinkingStyle.Blink */, 'blink', ['blink', 'smooth', 'phase', 'expand', 'solid'], cursorBlinkingStyleFromString, { description: nls.localize(516, "Control the cursor animation style.") })),
|
|
3183
3231
|
cursorSmoothCaretAnimation: register(new EditorStringEnumOption(33 /* EditorOption.cursorSmoothCaretAnimation */, 'cursorSmoothCaretAnimation', 'off', ['off', 'explicit', 'on'], {
|
|
3184
3232
|
enumDescriptions: [
|
|
3185
|
-
nls.localize(
|
|
3186
|
-
nls.localize(
|
|
3187
|
-
nls.localize(
|
|
3233
|
+
nls.localize(517, "Smooth caret animation is disabled."),
|
|
3234
|
+
nls.localize(518, "Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),
|
|
3235
|
+
nls.localize(519, "Smooth caret animation is always enabled.")
|
|
3188
3236
|
],
|
|
3189
|
-
description: nls.localize(
|
|
3237
|
+
description: nls.localize(520, "Controls whether the smooth caret animation should be enabled.")
|
|
3190
3238
|
})),
|
|
3191
|
-
cursorStyle: register(new EditorEnumOption(34 /* EditorOption.cursorStyle */, 'cursorStyle', TextEditorCursorStyle.Line, 'line', ['line', 'block', 'underline', 'line-thin', 'block-outline', 'underline-thin'], cursorStyleFromString, { description: nls.localize(
|
|
3192
|
-
overtypeCursorStyle: register(new EditorEnumOption(
|
|
3193
|
-
cursorSurroundingLines: register(new EditorIntOption(35 /* EditorOption.cursorSurroundingLines */, 'cursorSurroundingLines', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize(
|
|
3239
|
+
cursorStyle: register(new EditorEnumOption(34 /* EditorOption.cursorStyle */, 'cursorStyle', TextEditorCursorStyle.Line, 'line', ['line', 'block', 'underline', 'line-thin', 'block-outline', 'underline-thin'], cursorStyleFromString, { description: nls.localize(521, "Controls the cursor style in insert input mode.") })),
|
|
3240
|
+
overtypeCursorStyle: register(new EditorEnumOption(94 /* EditorOption.overtypeCursorStyle */, 'overtypeCursorStyle', TextEditorCursorStyle.Block, 'block', ['line', 'block', 'underline', 'line-thin', 'block-outline', 'underline-thin'], cursorStyleFromString, { description: nls.localize(522, "Controls the cursor style in overtype input mode.") })),
|
|
3241
|
+
cursorSurroundingLines: register(new EditorIntOption(35 /* EditorOption.cursorSurroundingLines */, 'cursorSurroundingLines', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize(523, "Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.") })),
|
|
3194
3242
|
cursorSurroundingLinesStyle: register(new EditorStringEnumOption(36 /* EditorOption.cursorSurroundingLinesStyle */, 'cursorSurroundingLinesStyle', 'default', ['default', 'all'], {
|
|
3195
3243
|
enumDescriptions: [
|
|
3196
|
-
nls.localize(
|
|
3197
|
-
nls.localize(
|
|
3244
|
+
nls.localize(524, "`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),
|
|
3245
|
+
nls.localize(525, "`cursorSurroundingLines` is enforced always.")
|
|
3198
3246
|
],
|
|
3199
|
-
markdownDescription: nls.localize(
|
|
3247
|
+
markdownDescription: nls.localize(526, "Controls when `#editor.cursorSurroundingLines#` should be enforced.")
|
|
3200
3248
|
})),
|
|
3201
|
-
cursorWidth: register(new EditorIntOption(37 /* EditorOption.cursorWidth */, 'cursorWidth', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize(
|
|
3202
|
-
cursorHeight: register(new EditorIntOption(38 /* EditorOption.cursorHeight */, 'cursorHeight', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize(
|
|
3249
|
+
cursorWidth: register(new EditorIntOption(37 /* EditorOption.cursorWidth */, 'cursorWidth', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize(527, "Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.") })),
|
|
3250
|
+
cursorHeight: register(new EditorIntOption(38 /* EditorOption.cursorHeight */, 'cursorHeight', 0, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { markdownDescription: nls.localize(528, "Controls the height of the cursor when `#editor.cursorStyle#` is set to `line`. Cursor's max height depends on line height.") })),
|
|
3203
3251
|
disableLayerHinting: register(new EditorBooleanOption(39 /* EditorOption.disableLayerHinting */, 'disableLayerHinting', false)),
|
|
3204
3252
|
disableMonospaceOptimizations: register(new EditorBooleanOption(40 /* EditorOption.disableMonospaceOptimizations */, 'disableMonospaceOptimizations', false)),
|
|
3205
3253
|
domReadOnly: register(new EditorBooleanOption(41 /* EditorOption.domReadOnly */, 'domReadOnly', false)),
|
|
3206
|
-
doubleClickSelectsBlock: register(new EditorBooleanOption(
|
|
3207
|
-
dragAndDrop: register(new EditorBooleanOption(42 /* EditorOption.dragAndDrop */, 'dragAndDrop', true, { description: nls.localize(
|
|
3254
|
+
doubleClickSelectsBlock: register(new EditorBooleanOption(177 /* EditorOption.doubleClickSelectsBlock */, 'doubleClickSelectsBlock', true, { description: nls.localize(529, "Controls whether double-clicking next to a bracket or quote selects the content inside.") })),
|
|
3255
|
+
dragAndDrop: register(new EditorBooleanOption(42 /* EditorOption.dragAndDrop */, 'dragAndDrop', true, { description: nls.localize(530, "Controls whether the editor should allow moving selections via drag and drop.") })),
|
|
3208
3256
|
emptySelectionClipboard: register(new EditorEmptySelectionClipboard()),
|
|
3209
3257
|
dropIntoEditor: register(new EditorDropIntoEditor()),
|
|
3210
3258
|
editContext: register(new EditorBooleanOption(44 /* EditorOption.editContext */, 'editContext', true, {
|
|
3211
|
-
description: nls.localize(
|
|
3259
|
+
description: nls.localize(531, "Sets whether the EditContext API should be used instead of the text area to power input in the editor."),
|
|
3212
3260
|
included: platform.isChrome || platform.isEdge || platform.isNative
|
|
3213
3261
|
})),
|
|
3214
|
-
renderRichScreenReaderContent: register(new EditorBooleanOption(
|
|
3215
|
-
markdownDescription: nls.localize(
|
|
3262
|
+
renderRichScreenReaderContent: register(new EditorBooleanOption(109 /* EditorOption.renderRichScreenReaderContent */, 'renderRichScreenReaderContent', false, {
|
|
3263
|
+
markdownDescription: nls.localize(532, "Whether to render rich screen reader content when the `#editor.editContext#` setting is enabled."),
|
|
3216
3264
|
})),
|
|
3217
3265
|
stickyScroll: register(new EditorStickyScroll()),
|
|
3218
3266
|
experimentalGpuAcceleration: register(new EditorStringEnumOption(46 /* EditorOption.experimentalGpuAcceleration */, 'experimentalGpuAcceleration', 'off', ['off', 'on'], {
|
|
3219
3267
|
tags: ['experimental'],
|
|
3220
3268
|
enumDescriptions: [
|
|
3221
|
-
nls.localize(
|
|
3222
|
-
nls.localize(
|
|
3269
|
+
nls.localize(533, "Use regular DOM-based rendering."),
|
|
3270
|
+
nls.localize(534, "Use GPU acceleration."),
|
|
3223
3271
|
],
|
|
3224
|
-
description: nls.localize(
|
|
3272
|
+
description: nls.localize(535, "Controls whether to use the experimental GPU acceleration to render the editor.")
|
|
3225
3273
|
})),
|
|
3226
3274
|
experimentalWhitespaceRendering: register(new EditorStringEnumOption(47 /* EditorOption.experimentalWhitespaceRendering */, 'experimentalWhitespaceRendering', 'svg', ['svg', 'font', 'off'], {
|
|
3227
3275
|
enumDescriptions: [
|
|
3228
|
-
nls.localize(
|
|
3229
|
-
nls.localize(
|
|
3230
|
-
nls.localize(
|
|
3276
|
+
nls.localize(536, "Use a new rendering method with svgs."),
|
|
3277
|
+
nls.localize(537, "Use a new rendering method with font characters."),
|
|
3278
|
+
nls.localize(538, "Use the stable rendering method."),
|
|
3231
3279
|
],
|
|
3232
|
-
description: nls.localize(
|
|
3280
|
+
description: nls.localize(539, "Controls whether whitespace is rendered with a new, experimental method.")
|
|
3233
3281
|
})),
|
|
3234
3282
|
extraEditorClassName: register(new EditorStringOption(48 /* EditorOption.extraEditorClassName */, 'extraEditorClassName', '')),
|
|
3235
|
-
fastScrollSensitivity: register(new EditorFloatOption(49 /* EditorOption.fastScrollSensitivity */, 'fastScrollSensitivity', 5, x => (x <= 0 ? 5 : x), { markdownDescription: nls.localize(
|
|
3283
|
+
fastScrollSensitivity: register(new EditorFloatOption(49 /* EditorOption.fastScrollSensitivity */, 'fastScrollSensitivity', 5, x => (x <= 0 ? 5 : x), { markdownDescription: nls.localize(540, "Scrolling speed multiplier when pressing `Alt`.") })),
|
|
3236
3284
|
find: register(new EditorFind()),
|
|
3237
3285
|
fixedOverflowWidgets: register(new EditorBooleanOption(51 /* EditorOption.fixedOverflowWidgets */, 'fixedOverflowWidgets', false)),
|
|
3238
|
-
folding: register(new EditorBooleanOption(52 /* EditorOption.folding */, 'folding', true, { description: nls.localize(
|
|
3286
|
+
folding: register(new EditorBooleanOption(52 /* EditorOption.folding */, 'folding', true, { description: nls.localize(541, "Controls whether the editor has code folding enabled.") })),
|
|
3239
3287
|
foldingStrategy: register(new EditorStringEnumOption(53 /* EditorOption.foldingStrategy */, 'foldingStrategy', 'auto', ['auto', 'indentation'], {
|
|
3240
3288
|
enumDescriptions: [
|
|
3241
|
-
nls.localize(
|
|
3242
|
-
nls.localize(
|
|
3289
|
+
nls.localize(542, "Use a language-specific folding strategy if available, else the indentation-based one."),
|
|
3290
|
+
nls.localize(543, "Use the indentation-based folding strategy."),
|
|
3243
3291
|
],
|
|
3244
|
-
description: nls.localize(
|
|
3292
|
+
description: nls.localize(544, "Controls the strategy for computing folding ranges.")
|
|
3245
3293
|
})),
|
|
3246
|
-
foldingHighlight: register(new EditorBooleanOption(54 /* EditorOption.foldingHighlight */, 'foldingHighlight', true, { description: nls.localize(
|
|
3247
|
-
foldingImportsByDefault: register(new EditorBooleanOption(55 /* EditorOption.foldingImportsByDefault */, 'foldingImportsByDefault', false, { description: nls.localize(
|
|
3294
|
+
foldingHighlight: register(new EditorBooleanOption(54 /* EditorOption.foldingHighlight */, 'foldingHighlight', true, { description: nls.localize(545, "Controls whether the editor should highlight folded ranges.") })),
|
|
3295
|
+
foldingImportsByDefault: register(new EditorBooleanOption(55 /* EditorOption.foldingImportsByDefault */, 'foldingImportsByDefault', false, { description: nls.localize(546, "Controls whether the editor automatically collapses import ranges.") })),
|
|
3248
3296
|
foldingMaximumRegions: register(new EditorIntOption(56 /* EditorOption.foldingMaximumRegions */, 'foldingMaximumRegions', 5000, 10, 65000, // limit must be less than foldingRanges MAX_FOLDING_REGIONS
|
|
3249
|
-
{ description: nls.localize(
|
|
3250
|
-
unfoldOnClickAfterEndOfLine: register(new EditorBooleanOption(57 /* EditorOption.unfoldOnClickAfterEndOfLine */, 'unfoldOnClickAfterEndOfLine', false, { description: nls.localize(
|
|
3251
|
-
fontFamily: register(new EditorStringOption(58 /* EditorOption.fontFamily */, 'fontFamily', EDITOR_FONT_DEFAULTS.fontFamily, { description: nls.localize(
|
|
3297
|
+
{ description: nls.localize(547, "The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.") })),
|
|
3298
|
+
unfoldOnClickAfterEndOfLine: register(new EditorBooleanOption(57 /* EditorOption.unfoldOnClickAfterEndOfLine */, 'unfoldOnClickAfterEndOfLine', false, { description: nls.localize(548, "Controls whether clicking on the empty content after a folded line will unfold the line.") })),
|
|
3299
|
+
fontFamily: register(new EditorStringOption(58 /* EditorOption.fontFamily */, 'fontFamily', EDITOR_FONT_DEFAULTS.fontFamily, { description: nls.localize(549, "Controls the font family.") })),
|
|
3252
3300
|
fontInfo: register(new EditorFontInfo()),
|
|
3253
3301
|
fontLigatures2: register(new EditorFontLigatures()),
|
|
3254
3302
|
fontSize: register(new EditorFontSize()),
|
|
3255
3303
|
fontWeight: register(new EditorFontWeight()),
|
|
3256
3304
|
fontVariations: register(new EditorFontVariations()),
|
|
3257
|
-
formatOnPaste: register(new EditorBooleanOption(64 /* EditorOption.formatOnPaste */, 'formatOnPaste', false, { description: nls.localize(
|
|
3258
|
-
formatOnType: register(new EditorBooleanOption(65 /* EditorOption.formatOnType */, 'formatOnType', false, { description: nls.localize(
|
|
3259
|
-
fullwidthCharacterWidth: register(new EditorStringEnumOption(
|
|
3305
|
+
formatOnPaste: register(new EditorBooleanOption(64 /* EditorOption.formatOnPaste */, 'formatOnPaste', false, { description: nls.localize(550, "Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.") })),
|
|
3306
|
+
formatOnType: register(new EditorBooleanOption(65 /* EditorOption.formatOnType */, 'formatOnType', false, { description: nls.localize(551, "Controls whether the editor should automatically format the line after typing.") })),
|
|
3307
|
+
fullwidthCharacterWidth: register(new EditorStringEnumOption(178 /* EditorOption.fullwidthCharacterWidth */, 'fullwidthCharacterWidth', 'font', ['font', 'twoCells'], {
|
|
3260
3308
|
enumDescriptions: [
|
|
3261
|
-
nls.localize(
|
|
3262
|
-
nls.localize(
|
|
3309
|
+
nls.localize(552, "Render full-width characters using the width defined by the font."),
|
|
3310
|
+
nls.localize(553, "Render full-width characters centered in exactly two character cells. Only applies to monospace fonts when font ligatures are disabled. Does not apply to multi codepoint full-width characters or to GPU rendering. This has a performance impact on line rendering."),
|
|
3263
3311
|
],
|
|
3264
|
-
description: nls.localize(
|
|
3312
|
+
description: nls.localize(554, "Controls the width used to render full-width characters.")
|
|
3265
3313
|
})),
|
|
3266
|
-
glyphMargin: register(new EditorBooleanOption(66 /* EditorOption.glyphMargin */, 'glyphMargin', true, { description: nls.localize(
|
|
3314
|
+
glyphMargin: register(new EditorBooleanOption(66 /* EditorOption.glyphMargin */, 'glyphMargin', true, { description: nls.localize(555, "Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.") })),
|
|
3267
3315
|
gotoLocation: register(new EditorGoToLocation()),
|
|
3268
|
-
hideCursorInOverviewRuler: register(new EditorBooleanOption(68 /* EditorOption.hideCursorInOverviewRuler */, 'hideCursorInOverviewRuler', false, { description: nls.localize(
|
|
3316
|
+
hideCursorInOverviewRuler: register(new EditorBooleanOption(68 /* EditorOption.hideCursorInOverviewRuler */, 'hideCursorInOverviewRuler', false, { description: nls.localize(556, "Controls whether the cursor should be hidden in the overview ruler.") })),
|
|
3269
3317
|
hover: register(new EditorHover()),
|
|
3270
3318
|
inDiffEditor: register(new EditorBooleanOption(70 /* EditorOption.inDiffEditor */, 'inDiffEditor', false)),
|
|
3271
|
-
inertialScroll: register(new EditorBooleanOption(
|
|
3272
|
-
letterSpacing: register(new EditorFloatOption(72 /* EditorOption.letterSpacing */, 'letterSpacing', EDITOR_FONT_DEFAULTS.letterSpacing, x => EditorFloatOption.clamp(x, -5, 20), { description: nls.localize(
|
|
3319
|
+
inertialScroll: register(new EditorBooleanOption(161 /* EditorOption.inertialScroll */, 'inertialScroll', false, { description: nls.localize(557, "Make scrolling inertial - mostly useful with touchpad on linux.") })),
|
|
3320
|
+
letterSpacing: register(new EditorFloatOption(72 /* EditorOption.letterSpacing */, 'letterSpacing', EDITOR_FONT_DEFAULTS.letterSpacing, x => EditorFloatOption.clamp(x, -5, 20), { description: nls.localize(558, "Controls the letter spacing in pixels.") })),
|
|
3273
3321
|
lightbulb: register(new EditorLightbulb()),
|
|
3274
3322
|
lineDecorationsWidth: register(new EditorLineDecorationsWidth()),
|
|
3275
3323
|
lineHeight: register(new EditorLineHeight()),
|
|
3276
3324
|
lineNumbers: register(new EditorRenderLineNumbersOption()),
|
|
3277
3325
|
lineNumbersMinChars: register(new EditorIntOption(77 /* EditorOption.lineNumbersMinChars */, 'lineNumbersMinChars', 5, 1, 300)),
|
|
3278
|
-
linkedEditing: register(new EditorBooleanOption(78 /* EditorOption.linkedEditing */, 'linkedEditing', false, { description: nls.localize(
|
|
3279
|
-
links: register(new EditorBooleanOption(79 /* EditorOption.links */, 'links', true, { description: nls.localize(
|
|
3280
|
-
|
|
3326
|
+
linkedEditing: register(new EditorBooleanOption(78 /* EditorOption.linkedEditing */, 'linkedEditing', false, { description: nls.localize(559, "Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.") })),
|
|
3327
|
+
links: register(new EditorBooleanOption(79 /* EditorOption.links */, 'links', true, { description: nls.localize(560, "Controls whether the editor should detect links and make them clickable.") })),
|
|
3328
|
+
markdownImages: register(new EditorMarkdownImages()),
|
|
3329
|
+
matchBrackets: register(new EditorStringEnumOption(81 /* EditorOption.matchBrackets */, 'matchBrackets', 'always', ['always', 'near', 'never'], { description: nls.localize(561, "Highlight matching brackets.") })),
|
|
3281
3330
|
minimap: register(new EditorMinimap()),
|
|
3282
|
-
mouseStyle: register(new EditorStringEnumOption(
|
|
3283
|
-
mouseWheelScrollSensitivity: register(new EditorFloatOption(
|
|
3284
|
-
mouseWheelZoom: register(new EditorBooleanOption(
|
|
3331
|
+
mouseStyle: register(new EditorStringEnumOption(83 /* EditorOption.mouseStyle */, 'mouseStyle', 'text', ['text', 'default', 'copy'])),
|
|
3332
|
+
mouseWheelScrollSensitivity: register(new EditorFloatOption(84 /* EditorOption.mouseWheelScrollSensitivity */, 'mouseWheelScrollSensitivity', 1, x => (x === 0 ? 1 : x), { markdownDescription: nls.localize(562, "A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.") })),
|
|
3333
|
+
mouseWheelZoom: register(new EditorBooleanOption(85 /* EditorOption.mouseWheelZoom */, 'mouseWheelZoom', false, {
|
|
3285
3334
|
markdownDescription: platform.isMacintosh
|
|
3286
|
-
? nls.localize(
|
|
3287
|
-
: nls.localize(
|
|
3335
|
+
? nls.localize(563, "Zoom the font of the editor when using mouse wheel and holding `Cmd`.")
|
|
3336
|
+
: nls.localize(564, "Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")
|
|
3288
3337
|
})),
|
|
3289
|
-
multiCursorMergeOverlapping: register(new EditorBooleanOption(
|
|
3290
|
-
multiCursorModifier: register(new EditorEnumOption(
|
|
3338
|
+
multiCursorMergeOverlapping: register(new EditorBooleanOption(86 /* EditorOption.multiCursorMergeOverlapping */, 'multiCursorMergeOverlapping', true, { description: nls.localize(565, "Merge multiple cursors when they are overlapping.") })),
|
|
3339
|
+
multiCursorModifier: register(new EditorEnumOption(87 /* EditorOption.multiCursorModifier */, 'multiCursorModifier', 'altKey', 'alt', ['ctrlCmd', 'alt'], _multiCursorModifierFromString, {
|
|
3291
3340
|
markdownEnumDescriptions: [
|
|
3292
|
-
nls.localize(
|
|
3293
|
-
nls.localize(
|
|
3341
|
+
nls.localize(566, "Maps to `Control` on Windows and Linux and to `Command` on macOS."),
|
|
3342
|
+
nls.localize(567, "Maps to `Alt` on Windows and Linux and to `Option` on macOS.")
|
|
3294
3343
|
],
|
|
3295
|
-
markdownDescription: nls.localize(
|
|
3344
|
+
markdownDescription: nls.localize(568, "The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")
|
|
3296
3345
|
|
|
3297
3346
|
|
|
3298
3347
|
|
|
@@ -3300,171 +3349,182 @@ export const EditorOptions = {
|
|
|
3300
3349
|
|
|
3301
3350
|
|
|
3302
3351
|
})),
|
|
3303
|
-
mouseMiddleClickAction: register(new EditorStringEnumOption(
|
|
3304
|
-
multiCursorPaste: register(new EditorStringEnumOption(
|
|
3352
|
+
mouseMiddleClickAction: register(new EditorStringEnumOption(88 /* EditorOption.mouseMiddleClickAction */, 'mouseMiddleClickAction', 'default', ['default', 'openLink', 'ctrlLeftClick'], { description: nls.localize(569, "Controls what happens when middle mouse button is clicked in the editor.") })),
|
|
3353
|
+
multiCursorPaste: register(new EditorStringEnumOption(89 /* EditorOption.multiCursorPaste */, 'multiCursorPaste', 'spread', ['spread', 'full'], {
|
|
3305
3354
|
markdownEnumDescriptions: [
|
|
3306
|
-
nls.localize(
|
|
3307
|
-
nls.localize(
|
|
3355
|
+
nls.localize(570, "Each cursor pastes a single line of the text. When pasting column selections into a single cursor, each copied line is pasted on a successive destination line and padded with spaces to form a rectangle."),
|
|
3356
|
+
nls.localize(571, "Each cursor pastes the full text.")
|
|
3308
3357
|
],
|
|
3309
|
-
markdownDescription: nls.localize(
|
|
3358
|
+
markdownDescription: nls.localize(572, "Controls pasting when the line count of the pasted text matches the cursor count, or when pasting column selections into a single cursor.")
|
|
3310
3359
|
})),
|
|
3311
|
-
multiCursorLimit: register(new EditorIntOption(
|
|
3312
|
-
markdownDescription: nls.localize(
|
|
3360
|
+
multiCursorLimit: register(new EditorIntOption(90 /* EditorOption.multiCursorLimit */, 'multiCursorLimit', 10000, 1, 100000, {
|
|
3361
|
+
markdownDescription: nls.localize(573, "Controls the max number of cursors that can be in an active editor at once.")
|
|
3313
3362
|
})),
|
|
3314
|
-
occurrencesHighlight: register(new EditorStringEnumOption(
|
|
3363
|
+
occurrencesHighlight: register(new EditorStringEnumOption(91 /* EditorOption.occurrencesHighlight */, 'occurrencesHighlight', 'singleFile', ['off', 'singleFile', 'multiFile'], {
|
|
3315
3364
|
markdownEnumDescriptions: [
|
|
3316
|
-
nls.localize(
|
|
3317
|
-
nls.localize(
|
|
3318
|
-
nls.localize(
|
|
3365
|
+
nls.localize(574, "Does not highlight occurrences."),
|
|
3366
|
+
nls.localize(575, "Highlights occurrences only in the current file."),
|
|
3367
|
+
nls.localize(576, "Experimental: Highlights occurrences across all valid open files.")
|
|
3319
3368
|
],
|
|
3320
|
-
markdownDescription: nls.localize(
|
|
3369
|
+
markdownDescription: nls.localize(577, "Controls whether occurrences should be highlighted across open files.")
|
|
3321
3370
|
})),
|
|
3322
|
-
occurrencesHighlightDelay: register(new EditorIntOption(
|
|
3323
|
-
description: nls.localize(
|
|
3371
|
+
occurrencesHighlightDelay: register(new EditorIntOption(92 /* EditorOption.occurrencesHighlightDelay */, 'occurrencesHighlightDelay', 0, 0, 2000, {
|
|
3372
|
+
description: nls.localize(578, "Controls the delay in milliseconds after which occurrences are highlighted."),
|
|
3324
3373
|
tags: ['preview']
|
|
3325
3374
|
})),
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3375
|
+
occurrencesHighlightFromAllProviders: register(new EditorBooleanOption(93 /* EditorOption.occurrencesHighlightFromAllProviders */, 'occurrencesHighlightFromAllProviders', false, {
|
|
3376
|
+
description: nls.localize(579, "Controls whether single-document highlights from all matching providers are merged. When enabled, basic word-based highlighting is only used if no other provider matches.")
|
|
3377
|
+
})),
|
|
3378
|
+
overtypeOnPaste: register(new EditorBooleanOption(95 /* EditorOption.overtypeOnPaste */, 'overtypeOnPaste', true, { description: nls.localize(580, "Controls whether pasting should overtype.") })),
|
|
3379
|
+
overviewRulerBorder: register(new EditorBooleanOption(96 /* EditorOption.overviewRulerBorder */, 'overviewRulerBorder', true, { description: nls.localize(581, "Controls whether a border should be drawn around the overview ruler.") })),
|
|
3380
|
+
overviewRulerLanes: register(new EditorIntOption(97 /* EditorOption.overviewRulerLanes */, 'overviewRulerLanes', 3, 0, 3)),
|
|
3329
3381
|
padding: register(new EditorPadding()),
|
|
3330
3382
|
pasteAs: register(new EditorPasteAs()),
|
|
3331
3383
|
parameterHints: register(new EditorParameterHints()),
|
|
3332
|
-
peekWidgetDefaultFocus: register(new EditorStringEnumOption(
|
|
3384
|
+
peekWidgetDefaultFocus: register(new EditorStringEnumOption(101 /* EditorOption.peekWidgetDefaultFocus */, 'peekWidgetDefaultFocus', 'tree', ['tree', 'editor'], {
|
|
3333
3385
|
enumDescriptions: [
|
|
3334
|
-
nls.localize(
|
|
3335
|
-
nls.localize(
|
|
3386
|
+
nls.localize(582, "Focus the tree when opening peek"),
|
|
3387
|
+
nls.localize(583, "Focus the editor when opening peek")
|
|
3336
3388
|
],
|
|
3337
|
-
description: nls.localize(
|
|
3389
|
+
description: nls.localize(584, "Controls whether to focus the inline editor or the tree in the peek widget.")
|
|
3338
3390
|
})),
|
|
3339
3391
|
placeholder: register(new PlaceholderOption()),
|
|
3340
|
-
definitionLinkOpensInPeek: register(new EditorBooleanOption(
|
|
3392
|
+
definitionLinkOpensInPeek: register(new EditorBooleanOption(103 /* EditorOption.definitionLinkOpensInPeek */, 'definitionLinkOpensInPeek', false, { description: nls.localize(585, "Controls whether the Go to Definition mouse gesture always opens the peek widget.") })),
|
|
3341
3393
|
quickSuggestions: register(new EditorQuickSuggestions()),
|
|
3342
|
-
quickSuggestionsDelay: register(new EditorIntOption(
|
|
3343
|
-
description: nls.localize(
|
|
3394
|
+
quickSuggestionsDelay: register(new EditorIntOption(105 /* EditorOption.quickSuggestionsDelay */, 'quickSuggestionsDelay', 10, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, {
|
|
3395
|
+
description: nls.localize(586, "Controls the delay in milliseconds after which quick suggestions will show up."),
|
|
3344
3396
|
experiment: {
|
|
3345
3397
|
mode: 'auto'
|
|
3346
3398
|
}
|
|
3347
3399
|
})),
|
|
3348
|
-
readOnly: register(new EditorBooleanOption(
|
|
3400
|
+
readOnly: register(new EditorBooleanOption(106 /* EditorOption.readOnly */, 'readOnly', false)),
|
|
3349
3401
|
readOnlyMessage: register(new ReadonlyMessage()),
|
|
3350
|
-
renameOnType: register(new EditorBooleanOption(
|
|
3351
|
-
renderControlCharacters: register(new EditorBooleanOption(
|
|
3352
|
-
renderFinalNewline: register(new EditorStringEnumOption(
|
|
3353
|
-
renderLineHighlight: register(new EditorStringEnumOption(
|
|
3402
|
+
renameOnType: register(new EditorBooleanOption(108 /* EditorOption.renameOnType */, 'renameOnType', false, { description: nls.localize(587, "Controls whether the editor auto renames on type."), markdownDeprecationMessage: nls.localize(588, "Deprecated, use `#editor.linkedEditing#` instead.") })),
|
|
3403
|
+
renderControlCharacters: register(new EditorBooleanOption(110 /* EditorOption.renderControlCharacters */, 'renderControlCharacters', true, { description: nls.localize(589, "Controls whether the editor should render control characters."), restricted: true })),
|
|
3404
|
+
renderFinalNewline: register(new EditorStringEnumOption(111 /* EditorOption.renderFinalNewline */, 'renderFinalNewline', (platform.isLinux ? 'dimmed' : 'on'), ['off', 'on', 'dimmed'], { description: nls.localize(590, "Render last line number when the file ends with a newline.") })),
|
|
3405
|
+
renderLineHighlight: register(new EditorStringEnumOption(112 /* EditorOption.renderLineHighlight */, 'renderLineHighlight', 'line', ['none', 'gutter', 'line', 'all'], {
|
|
3354
3406
|
enumDescriptions: [
|
|
3355
3407
|
'',
|
|
3356
3408
|
'',
|
|
3357
3409
|
'',
|
|
3358
|
-
nls.localize(
|
|
3410
|
+
nls.localize(591, "Highlights both the gutter and the current line."),
|
|
3359
3411
|
],
|
|
3360
|
-
description: nls.localize(
|
|
3412
|
+
description: nls.localize(592, "Controls how the editor should render the current line highlight.")
|
|
3361
3413
|
})),
|
|
3362
|
-
renderLineHighlightOnlyWhenFocus: register(new EditorBooleanOption(
|
|
3363
|
-
renderValidationDecorations: register(new EditorStringEnumOption(
|
|
3364
|
-
renderWhitespace: register(new EditorStringEnumOption(
|
|
3414
|
+
renderLineHighlightOnlyWhenFocus: register(new EditorBooleanOption(113 /* EditorOption.renderLineHighlightOnlyWhenFocus */, 'renderLineHighlightOnlyWhenFocus', false, { description: nls.localize(593, "Controls if the editor should render the current line highlight only when the editor is focused.") })),
|
|
3415
|
+
renderValidationDecorations: register(new EditorStringEnumOption(114 /* EditorOption.renderValidationDecorations */, 'renderValidationDecorations', 'editable', ['editable', 'on', 'off'])),
|
|
3416
|
+
renderWhitespace: register(new EditorStringEnumOption(115 /* EditorOption.renderWhitespace */, 'renderWhitespace', 'selection', ['none', 'boundary', 'selection', 'trailing', 'all'], {
|
|
3365
3417
|
enumDescriptions: [
|
|
3366
3418
|
'',
|
|
3367
|
-
nls.localize(
|
|
3368
|
-
nls.localize(
|
|
3369
|
-
nls.localize(
|
|
3419
|
+
nls.localize(594, "Render whitespace characters except for single spaces between words."),
|
|
3420
|
+
nls.localize(595, "Render whitespace characters only on selected text."),
|
|
3421
|
+
nls.localize(596, "Render only trailing whitespace characters."),
|
|
3370
3422
|
''
|
|
3371
3423
|
],
|
|
3372
|
-
description: nls.localize(
|
|
3424
|
+
description: nls.localize(597, "Controls how the editor should render whitespace characters.")
|
|
3373
3425
|
})),
|
|
3374
|
-
revealHorizontalRightPadding: register(new EditorIntOption(
|
|
3375
|
-
roundedSelection: register(new EditorBooleanOption(
|
|
3426
|
+
revealHorizontalRightPadding: register(new EditorIntOption(116 /* EditorOption.revealHorizontalRightPadding */, 'revealHorizontalRightPadding', 15, 0, 1000)),
|
|
3427
|
+
roundedSelection: register(new EditorBooleanOption(117 /* EditorOption.roundedSelection */, 'roundedSelection', true, { description: nls.localize(598, "Controls whether selections should have rounded corners.") })),
|
|
3376
3428
|
rulers: register(new EditorRulers()),
|
|
3377
3429
|
scrollbar: register(new EditorScrollbar()),
|
|
3378
|
-
scrollBeyondLastColumn: register(new EditorIntOption(
|
|
3379
|
-
scrollBeyondLastLine: register(new EditorBooleanOption(
|
|
3380
|
-
scrollOnMiddleClick: register(new EditorBooleanOption(
|
|
3381
|
-
scrollPredominantAxis: register(new EditorBooleanOption(
|
|
3382
|
-
selectionClipboard: register(new EditorBooleanOption(
|
|
3383
|
-
description: nls.localize(
|
|
3430
|
+
scrollBeyondLastColumn: register(new EditorIntOption(120 /* EditorOption.scrollBeyondLastColumn */, 'scrollBeyondLastColumn', 4, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize(599, "Controls the number of extra characters beyond which the editor will scroll horizontally.") })),
|
|
3431
|
+
scrollBeyondLastLine: register(new EditorBooleanOption(121 /* EditorOption.scrollBeyondLastLine */, 'scrollBeyondLastLine', true, { description: nls.localize(600, "Controls whether the editor will scroll beyond the last line.") })),
|
|
3432
|
+
scrollOnMiddleClick: register(new EditorBooleanOption(175 /* EditorOption.scrollOnMiddleClick */, 'scrollOnMiddleClick', false, { description: nls.localize(601, "Controls whether the editor will scroll when the middle button is pressed.") })),
|
|
3433
|
+
scrollPredominantAxis: register(new EditorBooleanOption(122 /* EditorOption.scrollPredominantAxis */, 'scrollPredominantAxis', true, { description: nls.localize(602, "Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.") })),
|
|
3434
|
+
selectionClipboard: register(new EditorBooleanOption(123 /* EditorOption.selectionClipboard */, 'selectionClipboard', true, {
|
|
3435
|
+
description: nls.localize(603, "Controls whether the Linux primary clipboard should be supported."),
|
|
3384
3436
|
included: platform.isLinux
|
|
3385
3437
|
})),
|
|
3386
|
-
selectionHighlight: register(new EditorBooleanOption(
|
|
3387
|
-
selectionHighlightMaxLength: register(new EditorIntOption(
|
|
3388
|
-
selectionHighlightMultiline: register(new EditorBooleanOption(
|
|
3389
|
-
|
|
3390
|
-
|
|
3438
|
+
selectionHighlight: register(new EditorBooleanOption(124 /* EditorOption.selectionHighlight */, 'selectionHighlight', true, { description: nls.localize(604, "Controls whether the editor should highlight matches similar to the selection.") })),
|
|
3439
|
+
selectionHighlightMaxLength: register(new EditorIntOption(125 /* EditorOption.selectionHighlightMaxLength */, 'selectionHighlightMaxLength', 200, 0, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, { description: nls.localize(605, "Controls how many characters can be in the selection before similar matches are not highlighted. Set to zero for unlimited.") })),
|
|
3440
|
+
selectionHighlightMultiline: register(new EditorBooleanOption(126 /* EditorOption.selectionHighlightMultiline */, 'selectionHighlightMultiline', false, { description: nls.localize(606, "Controls whether the editor should highlight selection matches that span multiple lines.") })),
|
|
3441
|
+
selectedTextMatchMode: register(new EditorStringEnumOption(127 /* EditorOption.selectedTextMatchMode */, 'selectedTextMatchMode', 'findOptions', ['findOptions', 'caseSensitive', 'caseInsensitive'], {
|
|
3442
|
+
enumDescriptions: [
|
|
3443
|
+
nls.localize(607, "Use the Find widget's match case and whole word settings."),
|
|
3444
|
+
nls.localize(608, "Match occurrences case-sensitively and independently of the Find widget."),
|
|
3445
|
+
nls.localize(609, "Match occurrences case-insensitively and independently of the Find widget."),
|
|
3446
|
+
],
|
|
3447
|
+
markdownDescription: nls.localize(610, "Controls how occurrences of selected text are matched when selecting the next, previous, or all occurrences and when highlighting selection matches. `caseSensitive` and `caseInsensitive` match substrings independently of the Find widget. An empty selection always starts a whole-word, case-sensitive search.")
|
|
3448
|
+
})),
|
|
3449
|
+
selectOnLineNumbers: register(new EditorBooleanOption(128 /* EditorOption.selectOnLineNumbers */, 'selectOnLineNumbers', true)),
|
|
3450
|
+
showFoldingControls: register(new EditorStringEnumOption(129 /* EditorOption.showFoldingControls */, 'showFoldingControls', 'mouseover', ['always', 'never', 'mouseover'], {
|
|
3391
3451
|
enumDescriptions: [
|
|
3392
|
-
nls.localize(
|
|
3393
|
-
nls.localize(
|
|
3394
|
-
nls.localize(
|
|
3452
|
+
nls.localize(611, "Always show the folding controls."),
|
|
3453
|
+
nls.localize(612, "Never show the folding controls and reduce the gutter size."),
|
|
3454
|
+
nls.localize(613, "Only show the folding controls when the mouse is over the gutter."),
|
|
3395
3455
|
],
|
|
3396
|
-
description: nls.localize(
|
|
3456
|
+
description: nls.localize(614, "Controls when the folding controls on the gutter are shown.")
|
|
3397
3457
|
})),
|
|
3398
|
-
showUnused: register(new EditorBooleanOption(
|
|
3399
|
-
showDeprecated: register(new EditorBooleanOption(
|
|
3458
|
+
showUnused: register(new EditorBooleanOption(130 /* EditorOption.showUnused */, 'showUnused', true, { description: nls.localize(615, "Controls fading out of unused code.") })),
|
|
3459
|
+
showDeprecated: register(new EditorBooleanOption(160 /* EditorOption.showDeprecated */, 'showDeprecated', true, { description: nls.localize(616, "Controls strikethrough deprecated variables.") })),
|
|
3400
3460
|
inlayHints: register(new EditorInlayHints()),
|
|
3401
|
-
snippetSuggestions: register(new EditorStringEnumOption(
|
|
3461
|
+
snippetSuggestions: register(new EditorStringEnumOption(131 /* EditorOption.snippetSuggestions */, 'snippetSuggestions', 'inline', ['top', 'bottom', 'inline', 'none'], {
|
|
3402
3462
|
enumDescriptions: [
|
|
3403
|
-
nls.localize(
|
|
3404
|
-
nls.localize(
|
|
3405
|
-
nls.localize(
|
|
3406
|
-
nls.localize(
|
|
3463
|
+
nls.localize(617, "Show snippet suggestions on top of other suggestions."),
|
|
3464
|
+
nls.localize(618, "Show snippet suggestions below other suggestions."),
|
|
3465
|
+
nls.localize(619, "Show snippets suggestions with other suggestions."),
|
|
3466
|
+
nls.localize(620, "Do not show snippet suggestions."),
|
|
3407
3467
|
],
|
|
3408
|
-
description: nls.localize(
|
|
3468
|
+
description: nls.localize(621, "Controls whether snippets are shown with other suggestions and how they are sorted.")
|
|
3409
3469
|
})),
|
|
3410
3470
|
smartSelect: register(new SmartSelect()),
|
|
3411
|
-
smoothScrolling: register(new EditorBooleanOption(
|
|
3412
|
-
stopRenderingLineAfter: register(new EditorIntOption(
|
|
3471
|
+
smoothScrolling: register(new EditorBooleanOption(133 /* EditorOption.smoothScrolling */, 'smoothScrolling', false, { description: nls.localize(622, "Controls whether the editor will scroll using an animation.") })),
|
|
3472
|
+
stopRenderingLineAfter: register(new EditorIntOption(136 /* EditorOption.stopRenderingLineAfter */, 'stopRenderingLineAfter', 10000, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
|
|
3413
3473
|
suggest: register(new EditorSuggest()),
|
|
3414
3474
|
inlineSuggest: register(new InlineEditorSuggest()),
|
|
3415
|
-
inlineCompletionsAccessibilityVerbose: register(new EditorBooleanOption(
|
|
3416
|
-
suggestFontSize: register(new EditorIntOption(
|
|
3417
|
-
suggestLineHeight: register(new EditorIntOption(
|
|
3418
|
-
suggestOnTriggerCharacters: register(new EditorBooleanOption(
|
|
3419
|
-
suggestSelection: register(new EditorStringEnumOption(
|
|
3475
|
+
inlineCompletionsAccessibilityVerbose: register(new EditorBooleanOption(173 /* EditorOption.inlineCompletionsAccessibilityVerbose */, 'inlineCompletionsAccessibilityVerbose', false, { description: nls.localize(623, "Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.") })),
|
|
3476
|
+
suggestFontSize: register(new EditorIntOption(138 /* EditorOption.suggestFontSize */, 'suggestFontSize', 0, 0, 1000, { markdownDescription: nls.localize(624, "Font size for the suggest widget. When set to {0}, the value of {1} is used.", '`0`', '`#editor.fontSize#`') })),
|
|
3477
|
+
suggestLineHeight: register(new EditorIntOption(139 /* EditorOption.suggestLineHeight */, 'suggestLineHeight', 0, 0, 1000, { markdownDescription: nls.localize(625, "Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.", '`0`', '`#editor.lineHeight#`') })),
|
|
3478
|
+
suggestOnTriggerCharacters: register(new EditorBooleanOption(140 /* EditorOption.suggestOnTriggerCharacters */, 'suggestOnTriggerCharacters', true, { description: nls.localize(626, "Controls whether suggestions should automatically show up when typing trigger characters.") })),
|
|
3479
|
+
suggestSelection: register(new EditorStringEnumOption(141 /* EditorOption.suggestSelection */, 'suggestSelection', 'first', ['first', 'recentlyUsed', 'recentlyUsedByPrefix'], {
|
|
3420
3480
|
markdownEnumDescriptions: [
|
|
3421
|
-
nls.localize(
|
|
3422
|
-
nls.localize(
|
|
3423
|
-
nls.localize(
|
|
3481
|
+
nls.localize(627, "Always select the first suggestion."),
|
|
3482
|
+
nls.localize(628, "Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),
|
|
3483
|
+
nls.localize(629, "Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`."),
|
|
3424
3484
|
],
|
|
3425
|
-
description: nls.localize(
|
|
3485
|
+
description: nls.localize(630, "Controls how suggestions are pre-selected when showing the suggest list.")
|
|
3426
3486
|
})),
|
|
3427
|
-
tabCompletion: register(new EditorStringEnumOption(
|
|
3487
|
+
tabCompletion: register(new EditorStringEnumOption(142 /* EditorOption.tabCompletion */, 'tabCompletion', 'off', ['on', 'off', 'onlySnippets'], {
|
|
3428
3488
|
enumDescriptions: [
|
|
3429
|
-
nls.localize(
|
|
3430
|
-
nls.localize(
|
|
3431
|
-
nls.localize(
|
|
3489
|
+
nls.localize(631, "Tab complete will insert the best matching suggestion when pressing tab."),
|
|
3490
|
+
nls.localize(632, "Disable tab completions."),
|
|
3491
|
+
nls.localize(633, "Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled."),
|
|
3432
3492
|
],
|
|
3433
|
-
description: nls.localize(
|
|
3493
|
+
description: nls.localize(634, "Enables tab completions.")
|
|
3434
3494
|
})),
|
|
3435
|
-
tabIndex: register(new EditorIntOption(
|
|
3436
|
-
trimWhitespaceOnDelete: register(new EditorBooleanOption(
|
|
3495
|
+
tabIndex: register(new EditorIntOption(143 /* EditorOption.tabIndex */, 'tabIndex', 0, -1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */)),
|
|
3496
|
+
trimWhitespaceOnDelete: register(new EditorBooleanOption(144 /* EditorOption.trimWhitespaceOnDelete */, 'trimWhitespaceOnDelete', false, { description: nls.localize(635, "Controls whether the editor will also delete the next line's indentation whitespace when deleting a newline.") })),
|
|
3437
3497
|
unicodeHighlight: register(new UnicodeHighlight()),
|
|
3438
|
-
unusualLineTerminators: register(new EditorStringEnumOption(
|
|
3498
|
+
unusualLineTerminators: register(new EditorStringEnumOption(146 /* EditorOption.unusualLineTerminators */, 'unusualLineTerminators', 'prompt', ['auto', 'off', 'prompt'], {
|
|
3439
3499
|
enumDescriptions: [
|
|
3440
|
-
nls.localize(
|
|
3441
|
-
nls.localize(
|
|
3442
|
-
nls.localize(
|
|
3500
|
+
nls.localize(636, "Unusual line terminators are automatically removed."),
|
|
3501
|
+
nls.localize(637, "Unusual line terminators are ignored."),
|
|
3502
|
+
nls.localize(638, "Unusual line terminators prompt to be removed."),
|
|
3443
3503
|
],
|
|
3444
|
-
description: nls.localize(
|
|
3504
|
+
description: nls.localize(639, "Remove unusual line terminators that might cause problems.")
|
|
3445
3505
|
})),
|
|
3446
|
-
useShadowDOM: register(new EditorBooleanOption(
|
|
3447
|
-
useTabStops: register(new EditorBooleanOption(
|
|
3448
|
-
wordBreak: register(new EditorStringEnumOption(
|
|
3506
|
+
useShadowDOM: register(new EditorBooleanOption(147 /* EditorOption.useShadowDOM */, 'useShadowDOM', true)),
|
|
3507
|
+
useTabStops: register(new EditorBooleanOption(148 /* EditorOption.useTabStops */, 'useTabStops', true, { description: nls.localize(640, "Spaces and tabs are inserted and deleted in alignment with tab stops.") })),
|
|
3508
|
+
wordBreak: register(new EditorStringEnumOption(149 /* EditorOption.wordBreak */, 'wordBreak', 'normal', ['normal', 'keepAll'], {
|
|
3449
3509
|
markdownEnumDescriptions: [
|
|
3450
|
-
nls.localize(
|
|
3451
|
-
nls.localize(
|
|
3510
|
+
nls.localize(641, "Use the default line break rule."),
|
|
3511
|
+
nls.localize(642, "Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal."),
|
|
3452
3512
|
],
|
|
3453
|
-
description: nls.localize(
|
|
3513
|
+
description: nls.localize(643, "Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")
|
|
3454
3514
|
})),
|
|
3455
3515
|
wordSegmenterLocales: register(new WordSegmenterLocales()),
|
|
3456
|
-
wordSeparators: register(new EditorStringOption(
|
|
3457
|
-
wordWrap: register(new EditorStringEnumOption(
|
|
3516
|
+
wordSeparators: register(new EditorStringOption(151 /* EditorOption.wordSeparators */, 'wordSeparators', USUAL_WORD_SEPARATORS, { description: nls.localize(644, "Characters that will be used as word separators when doing word related navigations or operations.") })),
|
|
3517
|
+
wordWrap: register(new EditorStringEnumOption(152 /* EditorOption.wordWrap */, 'wordWrap', 'off', ['off', 'on', 'wordWrapColumn', 'bounded'], {
|
|
3458
3518
|
markdownEnumDescriptions: [
|
|
3459
|
-
nls.localize(
|
|
3460
|
-
nls.localize(
|
|
3461
|
-
nls.localize(
|
|
3519
|
+
nls.localize(645, "Lines will never wrap."),
|
|
3520
|
+
nls.localize(646, "Lines will wrap at the viewport width."),
|
|
3521
|
+
nls.localize(647, "Lines will wrap at `#editor.wordWrapColumn#`."),
|
|
3462
3522
|
|
|
3463
3523
|
|
|
3464
3524
|
|
|
3465
3525
|
|
|
3466
3526
|
|
|
3467
|
-
nls.localize(
|
|
3527
|
+
nls.localize(648, "Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`."),
|
|
3468
3528
|
|
|
3469
3529
|
|
|
3470
3530
|
|
|
@@ -3472,7 +3532,7 @@ export const EditorOptions = {
|
|
|
3472
3532
|
|
|
3473
3533
|
|
|
3474
3534
|
],
|
|
3475
|
-
description: nls.localize(
|
|
3535
|
+
description: nls.localize(649, "Controls how lines should wrap.")
|
|
3476
3536
|
|
|
3477
3537
|
|
|
3478
3538
|
|
|
@@ -3480,20 +3540,20 @@ export const EditorOptions = {
|
|
|
3480
3540
|
|
|
3481
3541
|
|
|
3482
3542
|
})),
|
|
3483
|
-
wordWrapIndicator: register(new EditorBooleanOption(
|
|
3484
|
-
markdownDescription: nls.localize(
|
|
3543
|
+
wordWrapIndicator: register(new EditorBooleanOption(164 /* EditorOption.wordWrapIndicator */, 'wordWrapIndicator', false, {
|
|
3544
|
+
markdownDescription: nls.localize(650, "Controls whether an indicator is rendered at the wrapping column of lines that wrap. Only has an effect when `#editor.wordWrap#` is enabled.")
|
|
3485
3545
|
|
|
3486
3546
|
|
|
3487
3547
|
|
|
3488
3548
|
})),
|
|
3489
|
-
wordWrapBreakAfterCharacters: register(new EditorStringOption(
|
|
3549
|
+
wordWrapBreakAfterCharacters: register(new EditorStringOption(153 /* EditorOption.wordWrapBreakAfterCharacters */, 'wordWrapBreakAfterCharacters',
|
|
3490
3550
|
// allow-any-unicode-next-line
|
|
3491
3551
|
' \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」')),
|
|
3492
|
-
wordWrapBreakBeforeCharacters: register(new EditorStringOption(
|
|
3552
|
+
wordWrapBreakBeforeCharacters: register(new EditorStringOption(154 /* EditorOption.wordWrapBreakBeforeCharacters */, 'wordWrapBreakBeforeCharacters',
|
|
3493
3553
|
// allow-any-unicode-next-line
|
|
3494
3554
|
'([{‘“〈《「『【〔([{「£¥$£¥++')),
|
|
3495
|
-
wordWrapColumn: register(new EditorIntOption(
|
|
3496
|
-
markdownDescription: nls.localize(
|
|
3555
|
+
wordWrapColumn: register(new EditorIntOption(155 /* EditorOption.wordWrapColumn */, 'wordWrapColumn', 80, 1, 1073741824 /* Constants.MAX_SAFE_SMALL_INTEGER */, {
|
|
3556
|
+
markdownDescription: nls.localize(651, "Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")
|
|
3497
3557
|
|
|
3498
3558
|
|
|
3499
3559
|
|
|
@@ -3501,22 +3561,22 @@ export const EditorOptions = {
|
|
|
3501
3561
|
|
|
3502
3562
|
|
|
3503
3563
|
})),
|
|
3504
|
-
wordWrapOverride1: register(new EditorStringEnumOption(
|
|
3505
|
-
wordWrapOverride2: register(new EditorStringEnumOption(
|
|
3506
|
-
wrapOnEscapedLineFeeds: register(new EditorBooleanOption(
|
|
3564
|
+
wordWrapOverride1: register(new EditorStringEnumOption(156 /* EditorOption.wordWrapOverride1 */, 'wordWrapOverride1', 'inherit', ['off', 'on', 'inherit'])),
|
|
3565
|
+
wordWrapOverride2: register(new EditorStringEnumOption(157 /* EditorOption.wordWrapOverride2 */, 'wordWrapOverride2', 'inherit', ['off', 'on', 'inherit'])),
|
|
3566
|
+
wrapOnEscapedLineFeeds: register(new EditorBooleanOption(163 /* EditorOption.wrapOnEscapedLineFeeds */, 'wrapOnEscapedLineFeeds', false, { markdownDescription: nls.localize(652, "Controls whether literal `\\n` shall trigger a wordWrap when `#editor.wordWrap#` is enabled.\n\nFor example:\n```c\nchar* str=\"hello\\nworld\"\n```\nwill be displayed as\n```c\nchar* str=\"hello\\n\n world\"\n```") })),
|
|
3507
3567
|
// Leave these at the end (because they have dependencies!)
|
|
3508
3568
|
effectiveCursorStyle: register(new EffectiveCursorStyle()),
|
|
3509
3569
|
editorClassName: register(new EditorClassName()),
|
|
3510
|
-
defaultColorDecorators: register(new EditorStringEnumOption(
|
|
3570
|
+
defaultColorDecorators: register(new EditorStringEnumOption(171 /* EditorOption.defaultColorDecorators */, 'defaultColorDecorators', 'auto', ['auto', 'always', 'never'], {
|
|
3511
3571
|
enumDescriptions: [
|
|
3512
|
-
nls.localize(
|
|
3513
|
-
nls.localize(
|
|
3514
|
-
nls.localize(
|
|
3572
|
+
nls.localize(653, "Show default color decorators only when no extension provides colors decorators."),
|
|
3573
|
+
nls.localize(654, "Always show default color decorators."),
|
|
3574
|
+
nls.localize(655, "Never show default color decorators."),
|
|
3515
3575
|
],
|
|
3516
|
-
description: nls.localize(
|
|
3576
|
+
description: nls.localize(656, "Controls whether inline color decorations should be shown using the default document color provider.")
|
|
3517
3577
|
})),
|
|
3518
3578
|
pixelRatio: register(new EditorPixelRatio()),
|
|
3519
|
-
tabFocusMode: register(new EditorBooleanOption(
|
|
3579
|
+
tabFocusMode: register(new EditorBooleanOption(168 /* EditorOption.tabFocusMode */, 'tabFocusMode', false, { markdownDescription: nls.localize(657, "Controls whether the editor receives tabs or defers them to the workbench for navigation.") })),
|
|
3520
3580
|
layoutInfo: register(new EditorLayoutInfoComputer()),
|
|
3521
3581
|
wrappingInfo: register(new EditorWrappingInfoComputer()),
|
|
3522
3582
|
wrappingIndent: register(new WrappingIndentOption()),
|