Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Configuration options for auto closing quotes and brackets
*/
export
type
EditorAutoClosingStrategy
=
'always'
|
'languageDefined'
|
'beforeWhitespace'
|
'never'
;
/**
* Configuration options for auto wrapping quotes and brackets
*/
export
type
EditorAutoSurroundStrategy
=
'languageDefined'
|
'quotes'
|
'brackets'
|
'never'
;
/**
* Configuration options for typing over closing quotes or brackets
*/
export
type
EditorAutoClosingEditStrategy
=
'always'
|
'auto'
|
'never'
;
type
Unknown<T>
=
{
[
K
in
keyof
T
]
:
unknown
}
;
/**
* Configuration options for auto indentation in the editor
*/
export
const
enum
{
=
0
,
=
1
,
=
2
,
=
3
,
=
4
}
/**
* Configuration options for the editor.
*/
export
interface
IEditorOptions
{
/**
* This editor is used inside a diff editor.
*/
?
:
boolean
;
/**
* This editor is allowed to use variable line heights.
*/
?
:
boolean
;
/**
* This editor is allowed to use variable font-sizes and font-families
*/
?
:
boolean
;
/**
* This editor is allowed to use variable font-sizes and font-families in accessibility mode
*/
?
:
boolean
;
/**
* The aria label for the editor's textarea (when it is focused).
*/
?
:
string
;
/**
* Whether the aria-required attribute should be set on the editors textarea.
*/
?
:
boolean
;
/**
* Control whether a screen reader announces inline suggestion content immediately.
*/
?
:
boolean
;
/**
* The `tabindex` property of the editor's textarea
*/
?
:
number
;
/**
* Render vertical lines at the specified columns.
* Defaults to empty array.
*/
?
:
(
number
|
)
[
]
;
/**
* Locales used for segmenting lines into words 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.).
* Defaults to empty array
*/
?
:
string
|
string
[
]
;
/**
* A string containing the word separators used when doing word navigation.
* Defaults to `~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?
*/
?
:
string
;
/**
* Enable Linux primary clipboard.
* Defaults to true.
*/
?
:
boolean
;
/**
* Control the rendering of line numbers.
* If it is a function, it will be invoked when rendering a line number and the return value will be rendered.
* Otherwise, if it is a truthy, line numbers will be rendered normally (equivalent of using an identity function).
* Otherwise, line numbers will not be rendered.
* Defaults to `on`.
*/
?
:
;
/**
* Controls the minimal number of visible leading and trailing lines surrounding the cursor.
* Defaults to 0.
*/
?
:
number
;
/**
* Controls when `cursorSurroundingLines` should be enforced
* Defaults to `default`, `cursorSurroundingLines` is not enforced when cursor position is changed
* by mouse.
*/
?
:
'default'
|
'all'
;
/**
* Render last line number when the file ends with a newline.
* Defaults to 'on' for Windows and macOS and 'dimmed' for Linux.
*/
?
:
'on'
|
'off'
|
'dimmed'
;
/**
* Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS).
* Defaults to 'prompt'.
*/
?
:
'auto'
|
'off'
|
'prompt'
;
/**
* Should the corresponding line be selected when clicking on the line number?
* Defaults to true.
*/
?
:
boolean
;
/**
* Control the width of line numbers, by reserving horizontal space for rendering at least an amount of digits.
* Defaults to 5.
*/
?
:
number
;
/**
* Enable the rendering of the glyph margin.
* Defaults to true in vscode and to false in monaco-editor.
*/
?
:
boolean
;
/**
* The width reserved for line decorations (in px).
* Line decorations are placed between line numbers and the editor content.
* You can pass in a string in the format floating point followed by "ch". e.g. 1.3ch.
* Defaults to 10.
*/
?
:
number
|
string
;
/**
* When revealing the cursor, a virtual padding (px) is added to the cursor, turning it into a rectangle.
* This virtual padding ensures that the cursor gets revealed before hitting the edge of the viewport.
* Defaults to 30 (px).
*/
?
:
number
;
/**
* Render the editor selection with rounded borders.
* Defaults to true.
*/
?
:
boolean
;
/**
* Class name to be added to the editor.
*/
?
:
string
;
/**
* Should the editor be read only. See also `domReadOnly`.
* Defaults to false.
*/
?
:
boolean
;
/**
* The message to display when the editor is readonly.
*/
?
:
;
/**
* Should the textarea used for input use the DOM `readonly` attribute.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable linked editing.
* Defaults to false.
*/
?
:
boolean
;
/**
* deprecated, use linkedEditing instead
*/
?
:
boolean
;
/**
* Should the editor render validation decorations.
* Defaults to editable.
*/
?
:
'editable'
|
'on'
|
'off'
;
/**
* Control the behavior and rendering of the scrollbars.
*/
?
:
;
/**
* Control the behavior of sticky scroll options
*/
?
:
;
/**
* Control the behavior and rendering of the minimap.
*/
?
:
;
/**
* Control the behavior of the find widget.
*/
?
:
;
/**
* Display overflow widgets as `fixed`.
* Defaults to `false`.
*/
?
:
boolean
;
/**
* Allow content widgets and overflow widgets to overflow the editor viewport.
* Defaults to `true`.
*/
?
:
boolean
;
/**
* The number of vertical lanes the overview ruler should render.
* Defaults to 3.
*/
?
:
number
;
/**
* Controls if a border should be drawn around the overview ruler.
* Defaults to `true`.
*/
?
:
boolean
;
/**
* Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'.
* Defaults to 'blink'.
*/
?
:
'blink'
|
'smooth'
|
'phase'
|
'expand'
|
'solid'
;
/**
* Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl.
* Defaults to false.
*/
?
:
boolean
;
/**
* Control the mouse pointer style, either 'text' or 'default' or 'copy'
* Defaults to 'text'
*/
/**
* Control the cursor style in insert mode.
* Defaults to 'line'.
*/
?
:
'line'
|
'block'
|
'underline'
|
'line-thin'
|
'block-outline'
|
'underline-thin'
;
/**
* Control the cursor style in overtype mode.
* Defaults to 'block'.
*/
?
:
'line'
|
'block'
|
'underline'
|
'line-thin'
|
'block-outline'
|
'underline-thin'
;
/**
* Controls whether paste in overtype mode should overwrite or insert.
*/
?
:
boolean
;
/**
* Control the width of the cursor when cursorStyle is set to 'line'
*/
?
:
number
;
/**
* Control the height of the cursor when cursorStyle is set to 'line'
*/
?
:
number
;
/**
* Enable font ligatures.
* Defaults to false.
*/
?
:
boolean
|
string
;
/**
* Enable font variations.
* Defaults to false.
*/
?
:
boolean
|
string
;
/**
* Controls whether to use default color decorations or not using the default document color provider
*/
?
:
'auto'
|
'always'
|
'never'
;
/**
* Disable the use of `transform: translate3d(0px, 0px, 0px)` for the editor margin and lines layers.
* The usage of `transform: translate3d(0px, 0px, 0px)` acts as a hint for browsers to create an extra layer.
* Defaults to false.
*/
?
:
boolean
;
/**
* Disable the optimizations for monospace fonts.
* Defaults to false.
*/
?
:
boolean
;
/**
* Should the cursor be hidden in the overview ruler.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable that scrolling can go one screen size after the last line.
* Defaults to true.
*/
?
:
boolean
;
/**
* Scroll editor on middle click
*/
?
:
boolean
;
/**
* Enable that scrolling can go beyond the last column by a number of columns.
* Defaults to 5.
*/
?
:
number
;
/**
* Enable that the editor animates scrolling to a position.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable that the editor will install a ResizeObserver to check if its container dom node size has changed.
* Defaults to false.
*/
?
:
boolean
;
/**
* Control the wrapping of the editor.
* When `wordWrap` = "off", the lines will never wrap.
* When `wordWrap` = "on", the lines will wrap at the viewport width.
* When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
* When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
* Defaults to "off".
*/
?
:
'off'
|
'on'
|
'wordWrapColumn'
|
'bounded'
;
/**
* Override the `wordWrap` setting.
*/
?
:
'off'
|
'on'
|
'inherit'
;
/**
* Override the `wordWrapOverride1` setting.
*/
?
:
'off'
|
'on'
|
'inherit'
;
/**
* Control the wrapping of the editor.
* When `wordWrap` = "off", the lines will never wrap.
* When `wordWrap` = "on", the lines will wrap at the viewport width.
* When `wordWrap` = "wordWrapColumn", the lines will wrap at `wordWrapColumn`.
* When `wordWrap` = "bounded", the lines will wrap at min(viewport width, wordWrapColumn).
* Defaults to 80.
*/
?
:
number
;
/**
* Control indentation of wrapped lines. Can be: 'none', 'same', 'indent' or 'deepIndent'.
* Defaults to 'same' in vscode and to 'none' in monaco-editor.
*/
?
:
'none'
|
'same'
|
'indent'
|
'deepIndent'
;
/**
* Controls the wrapping strategy to use.
* Defaults to 'simple'.
*/
?
:
'simple'
|
'advanced'
;
/**
* Create a softwrap on every quoted "\n" literal.
* Defaults to false.
*/
?
:
boolean
;
/**
* Configure word wrapping characters. A break will be introduced before these characters.
*/
?
:
string
;
/**
* Configure word wrapping characters. A break will be introduced after these characters.
*/
?
:
string
;
/**
* Sets whether line breaks appear wherever the text would otherwise overflow its content box.
* When wordBreak = 'normal', Use the default line break rule.
* When wordBreak = 'keepAll', Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
*/
?
:
'normal'
|
'keepAll'
;
/**
* Performance guard: Stop rendering a line after x characters.
* Defaults to 10000.
* Use -1 to never stop rendering
*/
?
:
number
;
/**
* Configure the editor's hover.
*/
?
:
;
/**
* Enable detecting links and making them clickable.
* Defaults to true.
*/
?
:
boolean
;
/**
* Enable inline color decorators and color picker rendering.
*/
?
:
boolean
;
/**
* Controls what is the condition to spawn a color picker from a color dectorator
*/
?
:
'clickAndHover'
|
'click'
|
'hover'
;
/**
* Controls the max number of color decorators that can be rendered in an editor at once.
*/
?
:
number
;
/**
* Control the behaviour of comments in the editor.
*/
?
:
;
/**
* Enable custom contextmenu.
* Defaults to true.
*/
?
:
boolean
;
/**
* A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.
* Defaults to 1.
*/
?
:
number
;
/**
* FastScrolling mulitplier speed when pressing `Alt`
* Defaults to 5.
*/
?
:
number
;
/**
* Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad.
* Defaults to true.
*/
?
:
boolean
;
/**
* Make scrolling inertial - mostly useful with touchpad on linux.
*/
?
:
boolean
;
/**
* Enable that the selection with the mouse and keys is doing column selection.
* Defaults to false.
*/
?
:
boolean
;
/**
* The modifier to be used to add multiple cursors with the mouse.
* Defaults to 'alt'
*/
?
:
'ctrlCmd'
|
'alt'
;
/**
* Merge overlapping selections.
* Defaults to true
*/
?
:
boolean
;
/**
* Configure the behaviour when pasting a text with the line count equal to the cursor count.
* Defaults to 'spread'.
*/
?
:
'spread'
|
'full'
;
/**
* Controls the max number of text cursors that can be in an active editor at once.
*/
?
:
number
;
/**
* Enables middle mouse button to open links and Go To Definition
*/
?
:
;
/**
* Configure the editor's accessibility support.
* Defaults to 'auto'. It is best to leave this to 'auto'.
*/
?
:
'auto'
|
'off'
|
'on'
;
/**
* Controls the number of lines in the editor that can be read out by a screen reader
*/
/**
* Quick suggestions show delay (in ms)
* Defaults to 10 (ms)
*/
?
:
number
;
/**
* Controls the spacing around the editor.
*/
?
:
;
/**
* Parameter hint options.
*/
?
:
;
/**
* Options for auto closing brackets.
* Defaults to language defined behavior.
*/
?
:
;
/**
* Options for auto closing comments.
* Defaults to language defined behavior.
*/
?
:
;
/**
* Options for auto closing quotes.
* Defaults to language defined behavior.
*/
?
:
;
/**
* Options for pressing backspace near quotes or bracket pairs.
*/
?
:
;
/**
* Options for typing over closing quotes or brackets.
*/
?
:
;
/**
* Options for auto surrounding.
* Defaults to always allowing auto surrounding.
*/
?
:
;
/**
* Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.
* Defaults to advanced.
*/
?
:
'none'
|
'keep'
|
'brackets'
|
'advanced'
|
'full'
;
/**
* Boolean which controls whether to autoindent on paste
*/
?
:
boolean
;
/**
* Boolean which controls whether to autoindent on paste within a string when autoIndentOnPaste is enabled.
*/
?
:
boolean
;
/**
* Emulate selection behaviour of tab characters when using spaces for indentation.
* This means selection will stick to tab stops.
*/
?
:
boolean
;
/**
* Enable format on type.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable format on paste.
* Defaults to false.
*/
?
:
boolean
;
/**
* Controls whether double-clicking next to a bracket or quote selects the content inside.
* Defaults to true.
*/
?
:
boolean
;
/**
* Controls if the editor should allow to move selections via drag and drop.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable the suggestion box to pop-up on trigger characters.
* Defaults to true.
*/
?
:
boolean
;
/**
* Accept suggestions on ENTER.
* Defaults to 'on'.
*/
?
:
'on'
|
'smart'
|
'off'
;
/**
* Accept suggestions on provider defined characters.
* Defaults to true.
*/
?
:
boolean
;
/**
* Enable snippet suggestions. Default to 'true'.
*/
?
:
'top'
|
'bottom'
|
'inline'
|
'none'
;
/**
* Copying without a selection copies the current line.
*/
?
:
boolean
;
/**
* Syntax highlighting is copied.
*/
?
:
boolean
;
/**
* The history mode for suggestions.
*/
?
:
'first'
|
'recentlyUsed'
|
'recentlyUsedByPrefix'
;
/**
* The font size for the suggest widget.
* Defaults to the editor font size.
*/
?
:
number
;
/**
* The line height for the suggest widget.
* Defaults to the editor line height.
*/
?
:
number
;
/**
* Enable tab completion.
*/
?
:
'on'
|
'off'
|
'onlySnippets'
;
/**
* Enable selection highlight.
* Defaults to true.
*/
?
:
boolean
;
/**
* Enable selection highlight for multiline selections.
* Defaults to false.
*/
?
:
boolean
;
/**
* Maximum length (in characters) for selection highlights.
* Set to 0 to have an unlimited length.
*/
?
:
number
;
/**
* Enable semantic occurrences highlight.
* Defaults to 'singleFile'.
* 'off' disables occurrence highlighting
* 'singleFile' triggers occurrence highlighting in the current document
* 'multiFile' triggers occurrence highlighting across valid open documents
*/
?
:
'off'
|
'singleFile'
|
'multiFile'
;
/**
* Controls delay for occurrences highlighting
* Defaults to 250.
* Minimum value is 0
* Maximum value is 2000
*/
?
:
number
;
/**
* Show code lens
* Defaults to true.
*/
?
:
boolean
;
/**
* Code lens font family. Defaults to editor font family.
*/
?
:
string
;
/**
* Code lens font size. Default to 90% of the editor font size
*/
?
:
number
;
/**
* Control the behavior and rendering of the code action lightbulb.
*/
?
:
;
/**
* Timeout for running code actions on save.
*/
?
:
number
;
/**
* Enable code folding.
* Defaults to true.
*/
?
:
boolean
;
/**
* Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy.
* Defaults to 'auto'.
*/
?
:
'auto'
|
'indentation'
;
/**
* Enable highlight for folded regions.
* Defaults to true.
*/
?
:
boolean
;
/**
* Auto fold imports folding regions.
* Defaults to true.
*/
?
:
boolean
;
/**
* Maximum number of foldable regions.
* Defaults to 5000.
*/
?
:
number
;
/**
* Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter.
* Defaults to 'mouseover'.
*/
?
:
'always'
|
'never'
|
'mouseover'
;
/**
* Controls whether clicking on the empty content after a folded line will unfold the line.
* Defaults to false.
*/
?
:
boolean
;
/**
* Enable highlighting of matching brackets.
* Defaults to 'always'.
*/
?
:
'never'
|
'near'
|
'always'
;
/**
* Enable experimental rendering using WebGPU.
* Defaults to 'off'.
*/
/**
* Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
*/
?
:
boolean
;
/**
* Control the behavior and rendering of the inline hints.
*/
?
:
;
/**
* Control if the editor should use shadow DOM.
*/
?
:
boolean
;
/**
* Controls the behavior of editor guides.
*/
?
:
;
/**
* Controls the behavior of the unicode highlight feature
* (by default, ambiguous and invisible characters are highlighted).
*/
?
:
;
/**
* Configures bracket pair colorization (disabled by default).
*/
?
:
;
/**
* Controls dropping into the editor from an external source.
*
* When enabled, this shows a preview of the drop location and triggers an `onDropIntoEditor` event.
*/
?
:
;
/**
* Sets whether the new experimental edit context should be used instead of the text area.
*/
?
:
boolean
;
/**
* Controls whether to render rich HTML screen reader content when the EditContext is enabled
*/
?
:
boolean
;
/**
* Controls support for changing how content is pasted into the editor.
*/
?
:
;
/**
* Controls whether the editor / terminal receives tabs or defers them to the workbench for navigation.
*/
?
:
boolean
;
/**
* Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.
*/
?
:
boolean
;
}
/**
* @internal
* The width of the minimap gutter, in pixels.
*/
export
const
MINIMAP_GUTTER_WIDTH
=
8
;
export
interface
IDiffEditorBaseOptions
{
/**
* Allow the user to resize the diff editor split view.
* Defaults to true.
*/
?
:
boolean
;
/**
* The default ratio when rendering side-by-side editors.
* Must be a number between 0 and 1, min sizes apply.
* Defaults to 0.5
*/
?
:
number
;
/**
* Render the differences in two side-by-side editors.
* Defaults to true.
*/
?
:
boolean
;
/**
* When `renderSideBySide` is enabled, `useInlineViewWhenSpaceIsLimited` is set,
* and the diff editor has a width less than `renderSideBySideInlineBreakpoint`, the inline view is used.
*/
?
:
number
|
undefined
;
/**
* When `renderSideBySide` is enabled, `useInlineViewWhenSpaceIsLimited` is set,
* and the diff editor has a width less than `renderSideBySideInlineBreakpoint`, the inline view is used.
*/
?
:
boolean
;
/**
* If set, the diff editor is optimized for small views.
* Defaults to `false`.
*/
?
:
boolean
;
/**
* If set, the original editor's line numbers are hidden in the inline view.
* Defaults to `false`.
* @internal
*/
?
:
boolean
;
/**
* Timeout in milliseconds after which diff computation is cancelled.
* Defaults to 5000.
*/
?
:
number
;
/**
* Maximum supported file size in MB.
* Defaults to 50.
*/
?
:
number
;
/**
* Compute the diff by ignoring leading/trailing whitespace
* Defaults to true.
*/
?
:
boolean
;
/**
* Render +/- indicators for added/deleted changes.
* Defaults to true.
*/
?
:
boolean
;
/**
* Shows icons in the glyph margin to revert changes.
* Default to true.
*/
?
:
boolean
;
/**
* Indicates if the gutter menu should be rendered.
*/
?
:
boolean
;
/**
* Original model should be editable?
* Defaults to false.
*/
?
:
boolean
;
/**
* Should the diff editor enable code lens?
* Defaults to false.
*/
?
:
boolean
;
/**
* Is the diff editor should render overview ruler
* Defaults to true
*/
?
:
boolean
;
/**
* Control the wrapping of the diff editor.
*/
?
:
'off'
|
'on'
|
'inherit'
;
/**
* Diff Algorithm
*/
?
:
'legacy'
|
'advanced'
|
'advanced-external'
|
'advanced-wasm'
;
/**
* Whether the diff editor aria label should be verbose.
*/
?
:
boolean
;
?
:
{
/**
* Defaults to false.
*/
?
:
boolean
;
?
:
boolean
;
/**
* Only applies when `renderSideBySide` is set to false.
*/
?
:
boolean
;
}
;
/**
* Is the diff editor inside another editor
* Defaults to false
*/
?
:
boolean
;
/**
* If the diff editor should only show the difference review mode.
*/
?
:
boolean
;
?
:
{
?
:
boolean
;
?
:
number
;
?
:
number
;
?
:
number
;
}
;
}
/**
* Configuration options for the diff editor.
*/
export
interface
IDiffEditorOptions
extends
IEditorOptions
,
{
}
/**
* @internal
*/
export
type
ValidDiffEditorBaseOptions
=
<
<
>>
;
//#endregion
/**
* An event describing that the configuration of the editor has changed.
*/
"Controls whether copying without a selection copies the current line."
)
}
)
;
}
public
compute
(
:
,
:
,
:
boolean
)
:
boolean
{
return
&&
.
;
}
}
//#endregion
//#region find
/**
* Configuration options for editor find widget
*/
export
interface
IEditorFindOptions
{
/**
* Controls whether the cursor should move to find matches while typing.
*/
?
:
boolean
;
/**
* Controls whether the find widget should search as you type.
*/
?
:
boolean
;
/**
* Controls if we seed search string in the Find Widget with editor selection.
*/
?
:
'never'
|
'always'
|
'selection'
;
/**
* Controls if Find in Selection flag is turned on in the editor.
*/
?
:
'never'
|
'always'
|
'multiline'
;
/*
* Controls whether the Find Widget should add extra lines on top of the editor.
*/
?
:
boolean
;
/**
* @internal
* Controls if the Find Widget should read or modify the shared find clipboard on macOS
*/
?
:
boolean
;
/**
* Controls whether the search result and diff result automatically restarts from the beginning (or the end) when no further matches can be found
*/
?
:
boolean
;
/**
* Controls whether to close the Find Widget after an explicit find navigation command lands on a match.
*/
?
:
boolean
;
/**
* @internal
* Controls how the find widget search history should be stored
*/
?
:
'never'
|
'workspace'
;
/**
* @internal
* Controls how the replace widget search history should be stored
*/
'Only seed search string from the editor selection.'
)
]
,
:
.
localize
(
'find.seedSearchStringFromSelection'
,
"Controls whether the search string in the Find Widget is seeded from the editor selection."
)
}
,
'editor.find.autoFindInSelection'
:
{
:
'string'
,
enum
:
[
'never'
,
'always'
,
'multiline'
]
,
default
:
.
,
:
[
.
localize
(
'editor.find.autoFindInSelection.never'
,
'Never turn on Find in Selection automatically (default).'
)
,
.
localize
(
'editor.find.autoFindInSelection.always'
,
'Always turn on Find in Selection automatically.'
)
,
.
localize
(
'editor.find.autoFindInSelection.multiline'
,
'Turn on Find in Selection automatically when multiple lines of content are selected.'
)
]
,
:
.
localize
(
'find.autoFindInSelection'
,
"Controls the condition for turning on Find in Selection automatically."
)
}
,
'editor.find.globalFindClipboard'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'find.globalFindClipboard'
,
"Controls whether the Find Widget should read or modify the shared find clipboard on macOS."
)
,
:
.
}
,
'editor.find.addExtraSpaceOnTop'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'find.addExtraSpaceOnTop'
,
"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."
)
}
,
'editor.find.loop'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'find.loop'
,
"Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found."
)
}
,
'editor.find.closeOnResult'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'find.closeOnResult'
,
"Controls whether the Find Widget closes after an explicit find navigation command lands on a result."
)
}
,
'editor.find.history'
:
{
:
'string'
,
enum
:
[
'never'
,
'workspace'
]
,
default
:
'workspace'
,
:
[
.
localize
(
'editor.find.history.never'
,
'Do not store search history from the find widget.'
)
,
.
localize
(
'editor.find.history.workspace'
,
'Store search history across the active workspace'
)
,
]
,
:
.
localize
(
'find.history'
,
"Controls how the find widget history should be stored"
)
}
,
'editor.find.replaceHistory'
:
{
:
'string'
,
enum
:
[
'never'
,
'workspace'
]
,
default
:
'workspace'
,
:
[
.
localize
(
'editor.find.replaceHistory.never'
,
'Do not store history from the replace widget.'
)
,
.
localize
(
'editor.find.replaceHistory.workspace'
,
'Store replace history across the active workspace'
)
,
]
,
:
.
localize
(
'find.replaceHistory'
,
"Controls how the replace widget history should be stored"
)
}
,
'editor.find.findOnType'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'find.findOnType'
,
"Controls whether the Find Widget should search as you type."
"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."
)
,
}
,
{
:
'string'
,
:
.
localize
(
'fontFeatureSettings'
,
"Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures."
)
}
]
,
:
.
localize
(
'fontLigaturesGeneral'
,
"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."
// Translate `fontWeight` config to the `font-variation-settings` CSS property.
public
static
TRANSLATE
=
FONT_VARIATION_TRANSLATE
;
constructor
(
)
{
super
(
.
,
'fontVariations'
,
.
OFF
,
{
:
[
{
:
'boolean'
,
:
.
localize
(
'fontVariations'
,
"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."
)
,
}
,
{
:
'string'
,
:
.
localize
(
'fontVariationSettings'
,
"Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings."
)
}
]
,
:
.
localize
(
'fontVariationsGeneral'
,
"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."
)
,
default
:
false
}
)
;
}
public
validate
(
:
unknown
)
:
string
{
if
(
typeof
===
'undefined'
)
{
return
this
.
;
}
if
(
typeof
===
'string'
)
{
if
(
===
'false'
)
{
return
.
OFF
;
}
if
(
===
'true'
)
{
return
.
TRANSLATE
;
}
return
;
}
if
(
Boolean
(
)
)
{
return
.
TRANSLATE
;
}
return
.
OFF
;
}
public
compute
(
:
,
:
,
:
string
)
:
string
{
// The value is computed from the fontWeight if it is true.
'Go to the primary result and enable Peek-less navigation to others'
)
]
}
;
const
=
[
''
,
'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'
]
;
super
(
.
,
'gotoLocation'
,
,
{
'editor.gotoLocation.multiple'
:
{
:
.
localize
(
'editor.gotoLocation.multiple.deprecated'
,
"This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead."
)
,
}
,
'editor.gotoLocation.multipleDefinitions'
:
{
:
.
localize
(
'editor.editor.gotoLocation.multipleDefinitions'
,
"Controls the behavior the 'Go to Definition'-command when multiple target locations exist."
"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."
)
,
.
localize
(
'wrappingStrategy.advanced'
,
"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."
)
]
,
:
'string'
,
enum
:
[
'simple'
,
'advanced'
]
,
default
:
'simple'
,
:
.
localize
(
'wrappingStrategy'
,
"Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience."
)
}
}
)
;
}
public
validate
(
:
unknown
)
:
'simple'
|
'advanced'
{
return
stringSet<'simple'|'advanced'>
(
,
'simple'
,
[
'simple'
,
'advanced'
]
)
;
}
public
compute
(
:
,
:
,
:
'simple'
|
'advanced'
)
:
'simple'
|
'advanced'
{
const
=
.
get
(
.
)
;
if
(
===
.
)
{
// if we know for a fact that a screen reader is attached, we switch our strategy to advanced to
// help that the editor's wrapping points match the textarea's wrapping points
return
'advanced'
;
}
return
;
}
}
//#endregion
//#region lightbulb
export
enum
{
=
'off'
,
=
'onCode'
,
=
'on'
}
/**
* Configuration options for editor lightbulb
*/
export
interface
IEditorLightbulbOptions
{
/**
* Enable the lightbulb code action.
* The three possible values are `off`, `on` and `onCode` and the default is `onCode`.
* `off` disables the code action menu.
* `on` shows the code action menu on code and on empty lines.
* `onCode` shows the code action menu on code only.
*/
"Shows the nested current scopes during the scroll at the top of the editor."
)
}
,
'editor.stickyScroll.maxLineCount'
:
{
:
'number'
,
default
:
.
,
:
1
,
:
20
,
:
.
localize
(
'editor.stickyScroll.maxLineCount'
,
"Defines the maximum number of sticky lines to show."
)
}
,
'editor.stickyScroll.defaultModel'
:
{
:
'string'
,
enum
:
[
'outlineModel'
,
'foldingProviderModel'
,
'indentationModel'
]
,
default
:
.
,
:
.
localize
(
'editor.stickyScroll.defaultModel'
,
"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."
)
}
,
'editor.stickyScroll.scrollWithEditor'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'editor.stickyScroll.scrollWithEditor'
,
"Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar."
"Inlay hints are showing by default and hide when holding {0}"
,
.
?
`Ctrl+Option`
:
`Ctrl+Alt`
)
,
.
localize
(
'editor.inlayHints.offUnlessPressed'
,
"Inlay hints are hidden by default and show when holding {0}"
,
.
?
`Ctrl+Option`
:
`Ctrl+Alt`
)
,
.
localize
(
'editor.inlayHints.off'
,
"Inlay hints are disabled"
)
,
]
,
}
,
'editor.inlayHints.fontSize'
:
{
:
'number'
,
default
:
.
,
:
.
localize
(
'inlayHints.fontSize'
,
"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`'
)
}
,
'editor.inlayHints.fontFamily'
:
{
:
'string'
,
default
:
.
,
:
.
localize
(
'inlayHints.fontFamily'
,
"Controls font family of inlay hints in the editor. When set to empty, the {0} is used."
,
'`#editor.fontFamily#`'
)
}
,
'editor.inlayHints.padding'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'inlayHints.padding'
,
"Enables the padding around the inlay hints in the editor."
)
}
,
'editor.inlayHints.maximumLength'
:
{
:
'number'
,
default
:
.
,
:
.
localize
(
'inlayHints.maximumLength'
,
"Maximum overall length of inlay hints, for a single line, before they get truncated by the editor. Set to `0` to never truncate"
"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
)
;
}
public
compute
(
:
,
:
,
:
number
)
:
number
{
// The lineHeight is computed from the fontSize if it is 0.
// Moreover, the final lineHeight respects the editor zoom level.
// So take the result from env.fontInfo
return
.
.
;
}
}
//#endregion
//#region minimap
/**
* Configuration options for editor minimap
*/
export
interface
IEditorMinimapOptions
{
/**
* Enable the rendering of the minimap.
* Defaults to true.
*/
?
:
boolean
;
/**
* Control the rendering of minimap.
*/
?
:
'none'
|
'mouseover'
|
'scroll'
;
/**
* Control the side of the minimap in editor.
* Defaults to 'right'.
*/
?
:
'right'
|
'left'
;
/**
* Control the minimap rendering mode.
* Defaults to 'actual'.
*/
?
:
'proportional'
|
'fill'
|
'fit'
;
/**
* Control the rendering of the minimap slider.
* Defaults to 'mouseover'.
*/
?
:
'always'
|
'mouseover'
;
/**
* Render the actual text on a line (as opposed to color blocks).
* Defaults to true.
*/
?
:
boolean
;
/**
* Limit the width of the minimap to render at most a certain number of columns.
* Defaults to 120.
*/
?
:
number
;
/**
* Relative size of the font in the minimap. Defaults to 1.
*/
?
:
number
;
/**
* Whether to show named regions as section headers. Defaults to true.
*/
?
:
boolean
;
/**
* Whether to show MARK: comments as section headers. Defaults to true.
*/
?
:
boolean
;
/**
* When specified, is used to create a custom section header parser regexp.
* Must contain a match group named 'label' (written as (?<label>.+)) that encapsulates the section header.
* Optionally can include another match group named 'separator'.
* To match multi-line headers like:
* // ==========
* // My Section
* // ==========
* Use a pattern like: ^={3,}\n^\/\/ *(?<label>[^\n]*?)\n^={3,}$
*/
?
:
string
;
/**
* Font size of section headers. Defaults to 9.
*/
?
:
number
;
/**
* Spacing between the section header characters (in CSS px). Defaults to 1.
*/
"The minimap is hidden when mouse is not over the minimap and shown when mouse is over the minimap."
)
,
.
localize
(
'minimap.autohide.scroll'
,
"The minimap is only shown when the editor is scrolled"
)
,
]
,
default
:
.
,
:
.
localize
(
'minimap.autohide'
,
"Controls whether the minimap is hidden automatically."
)
}
,
'editor.minimap.size'
:
{
:
'string'
,
enum
:
[
'proportional'
,
'fill'
,
'fit'
]
,
:
[
.
localize
(
'minimap.size.proportional'
,
"The minimap has the same size as the editor contents (and might scroll)."
)
,
.
localize
(
'minimap.size.fill'
,
"The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."
)
,
.
localize
(
'minimap.size.fit'
,
"The minimap will shrink as necessary to never be larger than the editor (no scrolling)."
)
,
]
,
default
:
.
,
:
.
localize
(
'minimap.size'
,
"Controls the size of the minimap."
)
}
,
'editor.minimap.side'
:
{
:
'string'
,
enum
:
[
'left'
,
'right'
]
,
default
:
.
,
:
.
localize
(
'minimap.side'
,
"Controls the side where to render the minimap."
)
}
,
'editor.minimap.showSlider'
:
{
:
'string'
,
enum
:
[
'always'
,
'mouseover'
]
,
default
:
.
,
:
.
localize
(
'minimap.showSlider'
,
"Controls when the minimap slider is shown."
)
}
,
'editor.minimap.scale'
:
{
:
'number'
,
default
:
.
,
:
1
,
:
3
,
enum
:
[
1
,
2
,
3
]
,
:
.
localize
(
'minimap.scale'
,
"Scale of content drawn in the minimap: 1, 2 or 3."
)
}
,
'editor.minimap.renderCharacters'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'minimap.renderCharacters'
,
"Render the actual characters on a line as opposed to color blocks."
)
}
,
'editor.minimap.maxColumn'
:
{
:
'number'
,
default
:
.
,
:
.
localize
(
'minimap.maxColumn'
,
"Limit the width of the minimap to render at most a certain number of columns."
)
}
,
'editor.minimap.showRegionSectionHeaders'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'minimap.showRegionSectionHeaders'
,
"Controls whether named regions are shown as section headers in the minimap."
)
}
,
'editor.minimap.showMarkSectionHeaders'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'minimap.showMarkSectionHeaders'
,
"Controls whether MARK: comments are shown as section headers in the minimap."
)
}
,
'editor.minimap.markSectionHeaderRegex'
:
{
:
'string'
,
default
:
.
,
:
.
localize
(
'minimap.markSectionHeaderRegex'
,
"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."
)
,
}
,
'editor.minimap.sectionHeaderFontSize'
:
{
:
'number'
,
default
:
.
,
:
.
localize
(
'minimap.sectionHeaderFontSize'
,
"Controls the font size of section headers in the minimap."
)
}
,
'editor.minimap.sectionHeaderLetterSpacing'
:
{
:
'number'
,
default
:
.
,
:
.
localize
(
'minimap.sectionHeaderLetterSpacing'
,
"Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes."
)
}
}
)
;
}
public
validate
(
:
unknown
)
:
{
if
(
!
||
typeof
!==
'object'
)
{
return
this
.
;
}
const
=
as
<
>
;
// Validate mark section header regex
let
=
this
.
.
;
const
=
.
;
if
(
typeof
===
'string'
)
{
try
{
new
RegExp
(
,
'd'
)
;
=
;
}
catch
{
}
}
return
{
:
boolean
(
.
,
this
.
.
)
,
:
stringSet<'none'|'mouseover'|'scroll'>
(
.
,
this
.
.
,
[
'none'
,
'mouseover'
,
'scroll'
]
)
,
:
stringSet<'proportional'|'fill'|'fit'>
(
.
,
this
.
.
,
[
'proportional'
,
'fill'
,
'fit'
]
)
,
:
stringSet<'right'|'left'>
(
.
,
this
.
.
,
[
'right'
,
'left'
]
)
,
:
stringSet<'always'|'mouseover'>
(
.
,
this
.
.
,
[
'always'
,
'mouseover'
]
)
,
:
boolean
(
.
,
this
.
.
)
,
:
.
clampedInt
(
.
,
1
,
1
,
3
)
,
:
.
clampedInt
(
.
,
this
.
.
,
1
,
10000
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
,
:
.
clamp
(
.
float
(
.
,
this
.
.
)
,
4
,
32
)
,
:
.
clamp
(
.
float
(
.
,
this
.
.
)
,
0
,
5
)
,
}
;
}
}
//#endregion
//#region multiCursorModifier
function
_multiCursorModifierFromString
(
:
'ctrlCmd'
|
'alt'
)
:
'altKey'
|
'metaKey'
|
'ctrlKey'
{
if
(
===
'ctrlCmd'
)
{
return
(
.
?
'metaKey'
:
'ctrlKey'
)
;
}
return
'altKey'
;
}
//#endregion
//#region padding
/**
* Configuration options for editor padding
*/
export
interface
IEditorPaddingOptions
{
/**
* Spacing between top edge of editor and first line.
*/
?
:
number
;
/**
* Spacing between bottom edge of editor and last line.
*/
"Quick suggestions are disabled for all token types when inline completions are showing"
)
]
}
,
{
:
'object'
,
:
false
,
:
{
:
{
:
,
default
:
.
,
:
.
localize
(
'quickSuggestions.strings'
,
"Enable quick suggestions inside strings."
)
}
,
:
{
:
,
default
:
.
,
:
.
localize
(
'quickSuggestions.comments'
,
"Enable quick suggestions inside comments."
)
}
,
:
{
:
,
default
:
.
,
:
.
localize
(
'quickSuggestions.other'
,
"Enable quick suggestions outside of strings and comments."
)
}
,
}
,
}
]
,
default
:
,
:
.
localize
(
'quickSuggestions'
,
"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#`'
)
,
:
{
:
'auto'
}
}
)
;
this
.
=
;
}
public
validate
(
:
unknown
)
:
{
if
(
typeof
===
'boolean'
)
{
// boolean -> all on/off
const
=
?
'on'
:
'off'
;
return
{
:
,
:
,
:
}
;
}
if
(
typeof
===
'string'
)
{
// string shorthand -> apply same value to all token types
"Number of monospace characters at which this editor ruler will render."
)
}
;
super
(
.
,
'rulers'
,
,
{
:
'array'
,
:
{
:
[
,
{
:
[
'object'
]
,
:
{
:
,
:
{
:
'string'
,
:
.
localize
(
'rulers.color'
,
"Color of this editor ruler."
)
,
:
'color-hex'
}
}
}
]
}
,
default
:
,
:
.
localize
(
'rulers'
,
"Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty."
)
}
)
;
}
public
validate
(
:
unknown
)
:
[
]
{
if
(
Array
.
isArray
(
)
)
{
const
:
[
]
=
[
]
;
for
(
const
of
)
{
if
(
typeof
===
'number'
)
{
.
push
(
{
:
.
clampedInt
(
,
0
,
0
,
10000
)
,
:
null
}
)
;
}
else
if
(
&&
typeof
===
'object'
)
{
const
=
as
;
.
push
(
{
:
.
clampedInt
(
.
,
0
,
0
,
10000
)
,
:
.
}
)
;
}
}
.
sort
(
(
,
)
=>
.
-
.
)
;
return
;
}
return
this
.
;
}
}
//#endregion
//#region readonly
/**
* Configuration options for readonly message
*/
/**
* Configuration options for editor scrollbars
*/
export
interface
IEditorScrollbarOptions
{
/**
* The size of arrows (if displayed).
* Defaults to 11.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
number
;
/**
* Render vertical scrollbar.
* Defaults to 'auto'.
*/
?
:
'auto'
|
'visible'
|
'hidden'
;
/**
* Render horizontal scrollbar.
* Defaults to 'auto'.
*/
?
:
'auto'
|
'visible'
|
'hidden'
;
/**
* Cast horizontal and vertical shadows when the content is scrolled.
* Defaults to true.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
boolean
;
/**
* Render arrows at the top and bottom of the vertical scrollbar.
* Defaults to false.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
boolean
;
/**
* Render arrows at the left and right of the horizontal scrollbar.
* Defaults to false.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
boolean
;
/**
* Listen to mouse wheel events and react to them by scrolling.
* Defaults to true.
*/
?
:
boolean
;
/**
* Always consume mouse wheel events (always call preventDefault() and stopPropagation() on the browser events).
* Defaults to true.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
boolean
;
/**
* Height in pixels for the horizontal scrollbar.
* Defaults to 12 (px).
*/
?
:
number
;
/**
* Width in pixels for the vertical scrollbar.
* Defaults to 14 (px).
*/
?
:
number
;
/**
* Width in pixels for the vertical slider.
* Defaults to `verticalScrollbarSize`.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
number
;
/**
* Height in pixels for the horizontal slider.
* Defaults to `horizontalScrollbarSize`.
* **NOTE**: This option cannot be updated using `updateOptions()`
*/
?
:
number
;
/**
* Scroll gutter clicks move by page vs jump to position.
* Defaults to false.
*/
?
:
boolean
;
/**
* When set, the horizontal scrollbar will not increase content height.
* Defaults to false.
*/
"When set, the horizontal scrollbar will not increase the size of the editor's content."
)
}
}
)
;
}
public
validate
(
:
unknown
)
:
{
if
(
!
||
typeof
!==
'object'
)
{
return
this
.
;
}
const
=
as
<
>
;
const
=
.
clampedInt
(
.
,
this
.
.
,
0
,
1000
)
;
const
=
.
clampedInt
(
.
,
this
.
.
,
0
,
1000
)
;
return
{
:
.
clampedInt
(
.
,
this
.
.
,
0
,
1000
)
,
:
_scrollbarVisibilityFromString
(
.
,
this
.
.
)
,
:
_scrollbarVisibilityFromString
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
,
:
.
clampedInt
(
.
,
,
0
,
1000
)
,
:
,
:
.
clampedInt
(
.
,
,
0
,
1000
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
}
;
}
}
//#endregion
//#region UnicodeHighlight
export
type
InUntrustedWorkspace
=
'inUntrustedWorkspace'
;
/**
* @internal
*/
export
const
:
=
'inUntrustedWorkspace'
;
/**
* Configuration options for unicode highlighting.
*/
export
interface
IUnicodeHighlightOptions
{
/**
* 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.
*/
?
:
boolean
|
;
/**
* Controls whether characters that just reserve space or have no width at all are highlighted.
*/
?
:
boolean
;
/**
* Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.
*/
?
:
boolean
;
/**
* Controls whether characters in comments should also be subject to unicode highlighting.
*/
?
:
boolean
|
;
/**
* Controls whether characters in strings should also be subject to unicode highlighting.
*/
?
:
boolean
|
;
/**
* Defines allowed characters that are not being highlighted.
*/
?
:
<
string
,
true
>
;
/**
* Unicode characters that are common in allowed locales are not being highlighted.
*/
"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."
)
}
,
[
.
]
:
{
:
true
,
:
'boolean'
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.invisibleCharacters'
,
"Controls whether characters that just reserve space or have no width at all are highlighted."
)
}
,
[
.
]
:
{
:
true
,
:
'boolean'
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.ambiguousCharacters'
,
"Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale."
)
}
,
[
.
]
:
{
:
true
,
:
[
'boolean'
,
'string'
]
,
enum
:
[
true
,
false
,
]
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.includeComments'
,
"Controls whether characters in comments should also be subject to Unicode highlighting."
)
}
,
[
.
]
:
{
:
true
,
:
[
'boolean'
,
'string'
]
,
enum
:
[
true
,
false
,
]
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.includeStrings'
,
"Controls whether characters in strings should also be subject to Unicode highlighting."
)
}
,
[
.
]
:
{
:
true
,
:
'object'
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.allowedCharacters'
,
"Defines allowed characters that are not being highlighted."
)
,
:
{
:
'boolean'
}
}
,
[
.
]
:
{
:
true
,
:
'object'
,
:
{
:
'boolean'
}
,
default
:
.
,
:
.
localize
(
'unicodeHighlight.allowedLocales'
,
"Unicode characters that are common in allowed locales are not being highlighted."
)
}
,
}
)
;
}
public
applyUpdate
(
:
<
<
>>
|
undefined
,
:
<
<
>>
)
:
<
<
<
>>>
{
let
=
false
;
if
(
.
&&
)
{
// Treat allowedCharacters atomically
if
(
!
.
equals
(
.
,
.
)
)
{
=
{
...
,
:
.
}
;
=
true
;
}
}
if
(
.
&&
)
{
// Treat allowedLocales atomically
if
(
!
.
equals
(
.
,
.
)
)
{
=
{
...
,
:
.
}
;
=
true
;
}
}
const
=
super
.
applyUpdate
(
,
)
;
if
(
)
{
return
new
ApplyUpdateResult
(
.
,
true
)
;
}
return
;
}
public
validate
(
:
unknown
)
:
{
if
(
!
||
typeof
!==
'object'
)
{
return
this
.
;
}
const
=
as
<
>
;
return
{
:
primitiveSet<boolean| InUntrustedWorkspace>
(
.
,
,
[
true
,
false
,
]
)
,
:
boolean
(
.
,
this
.
.
)
,
:
boolean
(
.
,
this
.
.
)
,
:
primitiveSet<boolean| InUntrustedWorkspace>
(
.
,
,
[
true
,
false
,
]
)
,
:
primitiveSet<boolean| InUntrustedWorkspace>
(
.
,
,
[
true
,
false
,
]
)
,
:
this
.
validateBooleanMap
(
.
,
this
.
.
)
,
:
this
.
validateBooleanMap
(
.
,
this
.
.
)
,
}
;
}
private
validateBooleanMap
(
:
unknown
,
:
<
string
,
true
>
)
:
<
string
,
true
>
{
if
(
(
typeof
!==
'object'
)
||
!
)
{
return
;
}
const
:
<
string
,
true
>
=
{
}
;
for
(
const
[
,
]
of
.
entries
(
)
)
{
if
(
===
true
)
{
[
]
=
true
;
}
}
return
;
}
}
//#endregion
//#region inlineSuggest
export
interface
IInlineSuggestOptions
{
/**
* Enable or disable the rendering of automatic inline completions.
*/
?
:
boolean
;
/**
* Configures the mode.
* Use `prefix` to only show ghost text if the text to replace is a prefix of the suggestion text.
* Use `subword` to only show ghost text if the replace text is a subword of the suggestion text.
* Use `subwordSmart` to only show ghost text if the replace text is a subword of the suggestion text, but the subword must start after the cursor position.
* Defaults to `prefix`.
*/
?
:
'prefix'
|
'subword'
|
'subwordSmart'
;
?
:
'always'
|
'onHover'
|
'never'
;
?
:
boolean
;
?
:
boolean
;
?
:
number
;
?
:
boolean
;
/**
* Does not clear active inline suggestions when the editor loses focus.
*/
?
:
boolean
;
/**
* Font family for inline suggestions.
*/
?
:
string
|
'default'
;
?
:
{
?
:
'always'
|
'horizontal'
|
'never'
;
?
:
'never'
|
'auto'
;
?
:
boolean
;
?
:
boolean
;
/**
* Controls how many lines of surrounding context are shown above and below the target line
* in the long distance inline suggestion hint preview. `0` shows only the target line.
*/
?
:
number
;
/**
* @internal
*/
?
:
boolean
;
}
;
/**
* @internal
*/
?
:
boolean
;
/**
* @internal
*/
?
:
{
/**
* @internal
*/
?
:
string
;
/**
* @internal
*/
?
:
boolean
;
?
:
'always'
|
'never'
|
'whenSuggestListIsIncomplete'
;
}
;
}
type
RequiredRecursive<T>
=
{
[
P
in
keyof
T
]
-
?
:
T
[
P
]
extends
object
|
undefined
?
<
T
[
P
]
>
:
T
[
P
]
;
}
;
/**
* @internal
*/
export
type
InternalInlineSuggestOptions
=
<
<
>>
;
/**
* Configuration options for inline suggestions
*/
"Controls whether to automatically show inline suggestions in the editor."
)
}
,
'editor.inlineSuggest.showToolbar'
:
{
:
'string'
,
default
:
.
,
enum
:
[
'always'
,
'onHover'
,
'never'
]
,
:
[
.
localize
(
'inlineSuggest.showToolbar.always'
,
"Show the inline suggestion toolbar whenever an inline suggestion is shown."
)
,
.
localize
(
'inlineSuggest.showToolbar.onHover'
,
"Show the inline suggestion toolbar when hovering over an inline suggestion."
)
,
.
localize
(
'inlineSuggest.showToolbar.never'
,
"Never show the inline suggestion toolbar."
)
,
]
,
:
.
localize
(
'inlineSuggest.showToolbar'
,
"Controls when to show the inline suggestion toolbar."
)
,
}
,
'editor.inlineSuggest.syntaxHighlightingEnabled'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'inlineSuggest.syntaxHighlightingEnabled'
,
"Controls whether to show syntax highlighting for inline suggestions in the editor."
)
,
}
,
'editor.inlineSuggest.suppressSuggestions'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'inlineSuggest.suppressSuggestions'
,
"Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available."
)
}
,
'editor.inlineSuggest.suppressInSnippetMode'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'inlineSuggest.suppressInSnippetMode'
,
"Controls whether inline suggestions are suppressed when in snippet mode."
)
,
}
,
'editor.inlineSuggest.minShowDelay'
:
{
:
'number'
,
default
:
0
,
:
0
,
:
10000
,
:
.
localize
(
'inlineSuggest.minShowDelay'
,
"Controls the minimal delay in milliseconds after which inline suggestions are shown after typing."
"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."
)
,
:
[
'nextEditSuggestions'
,
'experimental'
]
,
:
{
:
'auto'
}
}
,
'editor.inlineSuggest.edits.renderSideBySide'
:
{
:
'string'
,
default
:
.
.
,
:
.
localize
(
'inlineSuggest.edits.renderSideBySide'
,
"Controls whether larger suggestions can be shown side by side."
"Insert suggestion without overwriting text right of the cursor."
)
,
.
localize
(
'suggest.insertMode.replace'
,
"Insert suggestion and overwrite text right of the cursor."
)
,
]
,
default
:
.
,
:
.
localize
(
'suggest.insertMode'
,
"Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature."
)
}
,
'editor.suggest.filterGraceful'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.filterGraceful'
,
"Controls whether filtering and sorting suggestions accounts for small typos."
)
}
,
'editor.suggest.localityBonus'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.localityBonus'
,
"Controls whether sorting favors words that appear close to the cursor."
)
}
,
'editor.suggest.shareSuggestSelections'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.shareSuggestSelections'
,
"Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`)."
)
}
,
'editor.suggest.selectionMode'
:
{
:
'string'
,
enum
:
[
'always'
,
'never'
,
'whenTriggerCharacter'
,
'whenQuickSuggestion'
]
,
:
[
.
localize
(
'suggest.insertMode.always'
,
"Always select a suggestion when automatically triggering IntelliSense."
)
,
.
localize
(
'suggest.insertMode.never'
,
"Never select a suggestion when automatically triggering IntelliSense."
)
,
.
localize
(
'suggest.insertMode.whenTriggerCharacter'
,
"Select a suggestion only when triggering IntelliSense from a trigger character."
)
,
.
localize
(
'suggest.insertMode.whenQuickSuggestion'
,
"Select a suggestion only when triggering IntelliSense as you type."
)
,
]
,
default
:
.
,
:
.
localize
(
'suggest.selectionMode'
,
"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#`'
)
}
,
'editor.suggest.snippetsPreventQuickSuggestions'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.snippetsPreventQuickSuggestions'
,
"Controls whether an active snippet prevents quick suggestions."
)
}
,
'editor.suggest.showIcons'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.showIcons'
,
"Controls whether to show or hide icons in suggestions."
)
}
,
'editor.suggest.showStatusBar'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.showStatusBar'
,
"Controls the visibility of the status bar at the bottom of the suggest widget."
)
}
,
'editor.suggest.preview'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.preview'
,
"Controls whether to preview the suggestion outcome in the editor."
)
}
,
'editor.suggest.showInlineDetails'
:
{
:
'boolean'
,
default
:
.
,
:
.
localize
(
'suggest.showInlineDetails'
,
"Controls whether suggest details show inline with the label or only in the details widget."
)
}
,
'editor.suggest.filteredTypes'
:
{
:
'object'
,
:
.
localize
(
'deprecated'
,
"This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead."
"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."
"Whether leading and trailing whitespace should always be selected."
)
,
default
:
true
,
:
'boolean'
}
,
'editor.smartSelect.selectSubwords'
:
{
:
.
localize
(
'selectSubwords'
,
"Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."
)
,
default
:
true
,
:
'boolean'
}
}
)
;
}
public
validate
(
:
unknown
)
:
<
<
>>
{
if
(
!
||
typeof
!==
'object'
)
{
return
this
.
;
}
return
{
:
boolean
(
(
as
)
.
,
this
.
.
)
,
:
boolean
(
(
as
)
.
,
this
.
.
)
,
}
;
}
}
//#endregion
//#region wordSegmenterLocales
/**
* Locales used for segmenting lines into words 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.).
*/
"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.)."
)
,
:
'array'
,
:
{
:
'string'
,
}
,
default
:
,
}
,
)
;
}
public
validate
(
:
unknown
)
:
string
[
]
{
if
(
typeof
===
'string'
)
{
=
[
]
;
}
if
(
Array
.
isArray
(
)
)
{
const
:
string
[
]
=
[
]
;
for
(
const
of
)
{
if
(
typeof
===
'string'
)
{
try
{
if
(
.
.
supportedLocalesOf
(
)
.
>
0
)
{
.
push
(
)
;
}
}
catch
{
// ignore invalid locales
}
}
}
return
;
}
return
this
.
;
}
}
//#endregion
//#region wrappingIndent
/**
* Describes how to indent wrapped lines.
*/
export
const
enum
{
/**
* No indentation => wrapped lines begin at column 1.
*/
=
0
,
/**
* Same => wrapped lines get the same indentation as the parent.
*/
=
1
,
/**
* Indent => wrapped lines get +1 indentation toward the parent.
*/
=
2
,
/**
* DeepIndent => wrapped lines get +2 indentation toward the parent.
*/
"Controls whether you can paste content in different ways."
)
,
}
,
'editor.pasteAs.showPasteSelector'
:
{
:
'string'
,
:
.
localize
(
'pasteAs.showPasteSelector'
,
"Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."
)
,
enum
:
[
'afterPaste'
,
'never'
]
,
:
[
.
localize
(
'pasteAs.showPasteSelector.afterPaste'
,
"Show the paste selector widget after content is pasted into the editor."
)
,
.
localize
(
'pasteAs.showPasteSelector.never'
,
"Never show the paste selector widget. Instead the default pasting behavior is always used."
)
,
]
,
default
:
'afterPaste'
,
}
,
}
)
;
}
public
validate
(
:
unknown
)
:
{
if
(
!
||
typeof
!==
'object'
)
{
return
this
.
;
}
const
=
as
<
>
;
return
{
:
boolean
(
.
,
this
.
.
)
,
:
stringSet
(
.
,
this
.
.
,
[
'afterPaste'
,
'never'
]
)
,
}
;
}
}
//#endregion
/**
* @internal
*/
export
const
:
<
,
unknown
>
[
]
=
[
]
;
function
register<Kextends EditorOption,V>
(
:
<
K
,
V
>
)
:
<
K
,
V
>
{
[
.
]
=
;
return
;
}
export
const
enum
{
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
// Leave these at the end (because they have dependencies!)
,
,
,
,
,
,
,
,
,
,
,
,
}
export
const
=
{
:
register
(
new
EditorBooleanOption
(
.
,
'acceptSuggestionOnCommitCharacter'
,
true
,
{
:
.
localize
(
'acceptSuggestionOnCommitCharacter'
,
"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."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'acceptSuggestionOnEnter'
,
'on'
as
'on'
|
'smart'
|
'off'
,
[
'on'
,
'smart'
,
'off'
]
as
const
,
{
:
[
''
,
.
localize
(
'acceptSuggestionOnEnterSmart'
,
"Only accept a suggestion with `Enter` when it makes a textual change."
)
,
''
]
,
:
.
localize
(
'acceptSuggestionOnEnter'
,
"Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions."
)
}
)
)
,
:
register
(
new
EditorAccessibilitySupport
(
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'accessibilityPageSize'
,
500
,
1
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'accessibilityPageSize'
,
"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."
)
,
:
[
'accessibility'
]
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'allowOverflow'
,
true
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'allowVariableLineHeights'
,
true
,
{
:
.
localize
(
'allowVariableLineHeights'
,
"Controls whether to allow using variable line heights in the editor."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'allowVariableFonts'
,
true
,
{
:
.
localize
(
'allowVariableFonts'
,
"Controls whether to allow using variable fonts in the editor."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'allowVariableFontsInAccessibilityMode'
,
false
,
{
:
.
localize
(
'allowVariableFontsInAccessibilityMode'
,
"Controls whether to allow using variable fonts in the editor in the accessibility mode."
)
,
:
[
'accessibility'
]
}
)
)
,
:
register
(
new
EditorStringOption
(
.
,
'ariaLabel'
,
.
localize
(
'editorViewAccessibleLabel'
,
"Editor content"
)
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'ariaRequired'
,
false
,
undefined
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'screenReaderAnnounceInlineSuggestion'
,
true
,
{
:
.
localize
(
'screenReaderAnnounceInlineSuggestion'
,
"Control whether inline suggestions are announced by a screen reader."
)
,
:
[
'accessibility'
]
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoClosingBrackets'
,
'languageDefined'
as
'always'
|
'languageDefined'
|
'beforeWhitespace'
|
'never'
,
[
'always'
,
'languageDefined'
,
'beforeWhitespace'
,
'never'
]
as
const
,
{
:
[
''
,
.
localize
(
'editor.autoClosingBrackets.languageDefined'
,
"Use language configurations to determine when to autoclose brackets."
)
,
.
localize
(
'editor.autoClosingBrackets.beforeWhitespace'
,
"Autoclose brackets only when the cursor is to the left of whitespace."
)
,
''
,
]
,
:
.
localize
(
'autoClosingBrackets'
,
"Controls whether the editor should automatically close brackets after the user adds an opening bracket."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoClosingComments'
,
'languageDefined'
as
'always'
|
'languageDefined'
|
'beforeWhitespace'
|
'never'
,
[
'always'
,
'languageDefined'
,
'beforeWhitespace'
,
'never'
]
as
const
,
{
:
[
''
,
.
localize
(
'editor.autoClosingComments.languageDefined'
,
"Use language configurations to determine when to autoclose comments."
)
,
.
localize
(
'editor.autoClosingComments.beforeWhitespace'
,
"Autoclose comments only when the cursor is to the left of whitespace."
)
,
''
,
]
,
:
.
localize
(
'autoClosingComments'
,
"Controls whether the editor should automatically close comments after the user adds an opening comment."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoClosingDelete'
,
'auto'
as
'always'
|
'auto'
|
'never'
,
[
'always'
,
'auto'
,
'never'
]
as
const
,
{
:
[
''
,
.
localize
(
'editor.autoClosingDelete.auto'
,
"Remove adjacent closing quotes or brackets only if they were automatically inserted."
)
,
''
,
]
,
:
.
localize
(
'autoClosingDelete'
,
"Controls whether the editor should remove adjacent closing quotes or brackets when deleting."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoClosingOvertype'
,
'auto'
as
'always'
|
'auto'
|
'never'
,
[
'always'
,
'auto'
,
'never'
]
as
const
,
{
:
[
''
,
.
localize
(
'editor.autoClosingOvertype.auto'
,
"Type over closing quotes or brackets only if they were automatically inserted."
)
,
''
,
]
,
:
.
localize
(
'autoClosingOvertype'
,
"Controls whether the editor should type over closing quotes or brackets."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoClosingQuotes'
,
'languageDefined'
as
'always'
|
'languageDefined'
|
'beforeWhitespace'
|
'never'
,
[
'always'
,
'languageDefined'
,
'beforeWhitespace'
,
'never'
]
as
const
,
{
:
[
''
,
.
localize
(
'editor.autoClosingQuotes.languageDefined'
,
"Use language configurations to determine when to autoclose quotes."
)
,
.
localize
(
'editor.autoClosingQuotes.beforeWhitespace'
,
"Autoclose quotes only when the cursor is to the left of whitespace."
)
,
''
,
]
,
:
.
localize
(
'autoClosingQuotes'
,
"Controls whether the editor should automatically close quotes after the user adds an opening quote."
)
}
)
)
,
:
register
(
new
EditorEnumOption
(
.
,
'autoIndent'
,
.
,
'full'
,
[
'none'
,
'keep'
,
'brackets'
,
'advanced'
,
'full'
]
,
,
{
:
[
.
localize
(
'editor.autoIndent.none'
,
"The editor will not insert indentation automatically."
)
,
.
localize
(
'editor.autoIndent.keep'
,
"The editor will keep the current line's indentation."
)
,
.
localize
(
'editor.autoIndent.brackets'
,
"The editor will keep the current line's indentation and honor language defined brackets."
)
,
.
localize
(
'editor.autoIndent.advanced'
,
"The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."
)
,
.
localize
(
'editor.autoIndent.full'
,
"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."
)
,
]
,
:
.
localize
(
'autoIndent'
,
"Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'autoIndentOnPaste'
,
false
,
{
:
.
localize
(
'autoIndentOnPaste'
,
"Controls whether the editor should automatically auto-indent the pasted content."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'autoIndentOnPasteWithinString'
,
true
,
{
:
.
localize
(
'autoIndentOnPasteWithinString'
,
"Controls whether the editor should automatically auto-indent the pasted content when pasted within a string. This takes effect when autoIndentOnPaste is true."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'automaticLayout'
,
false
,
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'autoSurround'
,
'languageDefined'
as
'languageDefined'
|
'quotes'
|
'brackets'
|
'never'
,
[
'languageDefined'
,
'quotes'
,
'brackets'
,
'never'
]
as
const
,
{
:
[
.
localize
(
'editor.autoSurround.languageDefined'
,
"Use language configurations to determine when to automatically surround selections."
)
,
.
localize
(
'editor.autoSurround.quotes'
,
"Surround with quotes but not brackets."
)
,
.
localize
(
'editor.autoSurround.brackets'
,
"Surround with brackets but not quotes."
)
,
''
]
,
:
.
localize
(
'autoSurround'
,
"Controls whether the editor should automatically surround selections when typing quotes or brackets."
)
}
)
)
,
:
register
(
new
BracketPairColorization
(
)
)
,
:
register
(
new
GuideOptions
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'stickyTabStops'
,
false
,
{
:
.
localize
(
'stickyTabStops'
,
"Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'codeLens'
,
true
,
{
:
.
localize
(
'codeLens'
,
"Controls whether the editor shows CodeLens."
)
}
)
)
,
:
register
(
new
EditorStringOption
(
.
,
'codeLensFontFamily'
,
''
,
{
:
.
localize
(
'codeLensFontFamily'
,
"Controls the font family for CodeLens."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'codeLensFontSize'
,
0
,
0
,
100
,
{
:
'number'
,
default
:
0
,
:
0
,
:
100
,
:
.
localize
(
'codeLensFontSize'
,
"Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'colorDecorators'
,
true
,
{
:
.
localize
(
'colorDecorators'
,
"Controls whether the editor should render the inline color decorators and color picker."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'colorDecoratorsActivatedOn'
,
'clickAndHover'
as
'clickAndHover'
|
'hover'
|
'click'
,
[
'clickAndHover'
,
'hover'
,
'click'
]
as
const
,
{
:
[
.
localize
(
'editor.colorDecoratorActivatedOn.clickAndHover'
,
"Make the color picker appear both on click and hover of the color decorator"
)
,
.
localize
(
'editor.colorDecoratorActivatedOn.hover'
,
"Make the color picker appear on hover of the color decorator"
)
,
.
localize
(
'editor.colorDecoratorActivatedOn.click'
,
"Make the color picker appear on click of the color decorator"
)
]
,
:
.
localize
(
'colorDecoratorActivatedOn'
,
"Controls the condition to make a color picker appear from a color decorator."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'colorDecoratorsLimit'
,
500
,
1
,
1000000
,
{
:
.
localize
(
'colorDecoratorsLimit'
,
"Controls the max number of color decorators that can be rendered in an editor at once."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'columnSelection'
,
false
,
{
:
.
localize
(
'columnSelection'
,
"Enable that the selection with the mouse and keys is doing column selection."
)
}
)
)
,
:
register
(
new
EditorComments
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'contextmenu'
,
true
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'copyWithSyntaxHighlighting'
,
true
,
{
:
.
localize
(
'copyWithSyntaxHighlighting'
,
"Controls whether syntax highlighting should be copied into the clipboard."
)
}
)
)
,
:
register
(
new
EditorEnumOption
(
.
,
'cursorBlinking'
,
.
,
'blink'
,
[
'blink'
,
'smooth'
,
'phase'
,
'expand'
,
'solid'
]
,
,
{
:
.
localize
(
'cursorBlinking'
,
"Control the cursor animation style."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'cursorSmoothCaretAnimation'
,
'off'
as
'off'
|
'explicit'
|
'on'
,
[
'off'
,
'explicit'
,
'on'
]
as
const
,
{
:
[
.
localize
(
'cursorSmoothCaretAnimation.off'
,
"Smooth caret animation is disabled."
)
,
.
localize
(
'cursorSmoothCaretAnimation.explicit'
,
"Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."
)
,
.
localize
(
'cursorSmoothCaretAnimation.on'
,
"Smooth caret animation is always enabled."
)
]
,
:
.
localize
(
'cursorSmoothCaretAnimation'
,
"Controls whether the smooth caret animation should be enabled."
)
}
)
)
,
:
register
(
new
EditorEnumOption
(
.
,
'cursorStyle'
,
.
,
'line'
,
[
'line'
,
'block'
,
'underline'
,
'line-thin'
,
'block-outline'
,
'underline-thin'
]
,
,
{
:
.
localize
(
'cursorStyle'
,
"Controls the cursor style in insert input mode."
)
}
)
)
,
:
register
(
new
EditorEnumOption
(
.
,
'overtypeCursorStyle'
,
.
,
'block'
,
[
'line'
,
'block'
,
'underline'
,
'line-thin'
,
'block-outline'
,
'underline-thin'
]
,
,
{
:
.
localize
(
'overtypeCursorStyle'
,
"Controls the cursor style in overtype input mode."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'cursorSurroundingLines'
,
0
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'cursorSurroundingLines'
,
"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."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'cursorSurroundingLinesStyle'
,
'default'
as
'default'
|
'all'
,
[
'default'
,
'all'
]
as
const
,
{
:
[
.
localize
(
'cursorSurroundingLinesStyle.default'
,
"`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."
)
,
.
localize
(
'cursorSurroundingLinesStyle.all'
,
"`cursorSurroundingLines` is enforced always."
)
]
,
:
.
localize
(
'cursorSurroundingLinesStyle'
,
"Controls when `#editor.cursorSurroundingLines#` should be enforced."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'cursorWidth'
,
0
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'cursorWidth'
,
"Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'cursorHeight'
,
0
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'cursorHeight'
,
"Controls the height of the cursor when `#editor.cursorStyle#` is set to `line`. Cursor's max height depends on line height."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'disableLayerHinting'
,
false
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'disableMonospaceOptimizations'
,
false
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'domReadOnly'
,
false
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'doubleClickSelectsBlock'
,
true
,
{
:
.
localize
(
'doubleClickSelectsBlock'
,
"Controls whether double-clicking next to a bracket or quote selects the content inside."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'dragAndDrop'
,
true
,
{
:
.
localize
(
'dragAndDrop'
,
"Controls whether the editor should allow moving selections via drag and drop."
)
}
)
)
,
:
register
(
new
EditorEmptySelectionClipboard
(
)
)
,
:
register
(
new
EditorDropIntoEditor
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'editContext'
,
true
,
{
:
.
localize
(
'editContext'
,
"Sets whether the EditContext API should be used instead of the text area to power input in the editor."
)
,
:
.
||
.
||
.
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'renderRichScreenReaderContent'
,
false
,
{
:
.
localize
(
'renderRichScreenReaderContent'
,
"Whether to render rich screen reader content when the `#editor.editContext#` setting is enabled."
)
,
}
)
)
,
:
register
(
new
EditorStickyScroll
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'experimentalGpuAcceleration'
,
'off'
as
'off'
|
'on'
,
[
'off'
,
'on'
]
as
const
,
{
:
[
'experimental'
]
,
:
[
.
localize
(
'experimentalGpuAcceleration.off'
,
"Use regular DOM-based rendering."
)
,
.
localize
(
'experimentalGpuAcceleration.on'
,
"Use GPU acceleration."
)
,
]
,
:
.
localize
(
'experimentalGpuAcceleration'
,
"Controls whether to use the experimental GPU acceleration to render the editor."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'experimentalWhitespaceRendering'
,
'svg'
as
'svg'
|
'font'
|
'off'
,
[
'svg'
,
'font'
,
'off'
]
as
const
,
{
:
[
.
localize
(
'experimentalWhitespaceRendering.svg'
,
"Use a new rendering method with svgs."
)
,
.
localize
(
'experimentalWhitespaceRendering.font'
,
"Use a new rendering method with font characters."
)
,
.
localize
(
'experimentalWhitespaceRendering.off'
,
"Use the stable rendering method."
)
,
]
,
:
.
localize
(
'experimentalWhitespaceRendering'
,
"Controls whether whitespace is rendered with a new, experimental method."
)
}
)
)
,
:
register
(
new
EditorStringOption
(
.
,
'extraEditorClassName'
,
''
,
)
)
,
:
register
(
new
EditorFloatOption
(
.
,
'fastScrollSensitivity'
,
5
,
=>
(
<=
0
?
5
:
)
,
{
:
.
localize
(
'fastScrollSensitivity'
,
"Scrolling speed multiplier when pressing `Alt`."
)
}
)
)
,
:
register
(
new
EditorFind
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'fixedOverflowWidgets'
,
false
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'folding'
,
true
,
{
:
.
localize
(
'folding'
,
"Controls whether the editor has code folding enabled."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'foldingStrategy'
,
'auto'
as
'auto'
|
'indentation'
,
[
'auto'
,
'indentation'
]
as
const
,
{
:
[
.
localize
(
'foldingStrategy.auto'
,
"Use a language-specific folding strategy if available, else the indentation-based one."
)
,
.
localize
(
'foldingStrategy.indentation'
,
"Use the indentation-based folding strategy."
)
,
]
,
:
.
localize
(
'foldingStrategy'
,
"Controls the strategy for computing folding ranges."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'foldingHighlight'
,
true
,
{
:
.
localize
(
'foldingHighlight'
,
"Controls whether the editor should highlight folded ranges."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'foldingImportsByDefault'
,
false
,
{
:
.
localize
(
'foldingImportsByDefault'
,
"Controls whether the editor automatically collapses import ranges."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'foldingMaximumRegions'
,
5000
,
10
,
65000
,
// limit must be less than foldingRanges MAX_FOLDING_REGIONS
{
:
.
localize
(
'foldingMaximumRegions'
,
"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."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'unfoldOnClickAfterEndOfLine'
,
false
,
{
:
.
localize
(
'unfoldOnClickAfterEndOfLine'
,
"Controls whether clicking on the empty content after a folded line will unfold the line."
)
}
)
)
,
:
register
(
new
EditorStringOption
(
.
,
'fontFamily'
,
EDITOR_FONT_DEFAULTS
.
,
{
:
.
localize
(
'fontFamily'
,
"Controls the font family."
)
}
)
)
,
:
register
(
new
EditorFontInfo
(
)
)
,
:
register
(
new
EditorFontLigatures
(
)
)
,
:
register
(
new
EditorFontSize
(
)
)
,
:
register
(
new
EditorFontWeight
(
)
)
,
:
register
(
new
EditorFontVariations
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'formatOnPaste'
,
false
,
{
:
.
localize
(
'formatOnPaste'
,
"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."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'formatOnType'
,
false
,
{
:
.
localize
(
'formatOnType'
,
"Controls whether the editor should automatically format the line after typing."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'glyphMargin'
,
true
,
{
:
.
localize
(
'glyphMargin'
,
"Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging."
)
}
)
)
,
:
register
(
new
EditorGoToLocation
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'hideCursorInOverviewRuler'
,
false
,
{
:
.
localize
(
'hideCursorInOverviewRuler'
,
"Controls whether the cursor should be hidden in the overview ruler."
)
}
)
)
,
:
register
(
new
EditorHover
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'inDiffEditor'
,
false
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'inertialScroll'
,
false
,
{
:
.
localize
(
'inertialScroll'
,
"Make scrolling inertial - mostly useful with touchpad on linux."
)
}
)
)
,
:
register
(
new
EditorFloatOption
(
.
,
'letterSpacing'
,
EDITOR_FONT_DEFAULTS
.
,
=>
.
clamp
(
,
-
5
,
20
)
,
{
:
.
localize
(
'letterSpacing'
,
"Controls the letter spacing in pixels."
)
}
)
)
,
:
register
(
new
EditorLightbulb
(
)
)
,
:
register
(
new
EditorLineDecorationsWidth
(
)
)
,
:
register
(
new
EditorLineHeight
(
)
)
,
:
register
(
new
EditorRenderLineNumbersOption
(
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'lineNumbersMinChars'
,
5
,
1
,
300
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'linkedEditing'
,
false
,
{
:
.
localize
(
'linkedEditing'
,
"Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'links'
,
true
,
{
:
.
localize
(
'links'
,
"Controls whether the editor should detect links and make them clickable."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'matchBrackets'
,
'always'
as
'never'
|
'near'
|
'always'
,
[
'always'
,
'near'
,
'never'
]
as
const
,
{
:
.
localize
(
'matchBrackets'
,
"Highlight matching brackets."
)
}
)
)
,
:
register
(
new
EditorMinimap
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'mouseStyle'
,
'text'
as
'text'
|
'default'
|
'copy'
,
[
'text'
,
'default'
,
'copy'
]
as
const
,
)
)
,
:
register
(
new
EditorFloatOption
(
.
,
'mouseWheelScrollSensitivity'
,
1
,
=>
(
===
0
?
1
:
)
,
{
:
.
localize
(
'mouseWheelScrollSensitivity'
,
"A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'mouseWheelZoom'
,
false
,
{
:
.
?
.
localize
(
'mouseWheelZoom.mac'
,
"Zoom the font of the editor when using mouse wheel and holding `Cmd`."
)
:
.
localize
(
'mouseWheelZoom'
,
"Zoom the font of the editor when using mouse wheel and holding `Ctrl`."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'multiCursorMergeOverlapping'
,
true
,
{
:
.
localize
(
'multiCursorMergeOverlapping'
,
"Merge multiple cursors when they are overlapping."
)
}
)
)
,
:
register
(
new
EditorEnumOption
(
.
,
'multiCursorModifier'
,
'altKey'
,
'alt'
,
[
'ctrlCmd'
,
'alt'
]
,
,
{
:
[
.
localize
(
'multiCursorModifier.ctrlCmd'
,
"Maps to `Control` on Windows and Linux and to `Command` on macOS."
)
,
.
localize
(
'multiCursorModifier.alt'
,
"Maps to `Alt` on Windows and Linux and to `Option` on macOS."
)
]
,
:
.
localize
(
{
:
'multiCursorModifier'
,
:
[
'- `ctrlCmd` refers to a value the setting can take and should not be localized.'
,
'- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized.'
]
}
,
"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)."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'mouseMiddleClickAction'
,
'default'
as
,
[
'default'
,
'openLink'
,
'ctrlLeftClick'
]
as
[
]
,
{
:
.
localize
(
'mouseMiddleClickAction'
,
"Controls what happens when middle mouse button is clicked in the editor."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'multiCursorPaste'
,
'spread'
as
'spread'
|
'full'
,
[
'spread'
,
'full'
]
as
const
,
{
:
[
.
localize
(
'multiCursorPaste.spread'
,
"Each cursor pastes a single line of the text."
)
,
.
localize
(
'multiCursorPaste.full'
,
"Each cursor pastes the full text."
)
]
,
:
.
localize
(
'multiCursorPaste'
,
"Controls pasting when the line count of the pasted text matches the cursor count."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'multiCursorLimit'
,
10000
,
1
,
100000
,
{
:
.
localize
(
'multiCursorLimit'
,
"Controls the max number of cursors that can be in an active editor at once."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'occurrencesHighlight'
,
'singleFile'
as
'off'
|
'singleFile'
|
'multiFile'
,
[
'off'
,
'singleFile'
,
'multiFile'
]
as
const
,
{
:
[
.
localize
(
'occurrencesHighlight.off'
,
"Does not highlight occurrences."
)
,
.
localize
(
'occurrencesHighlight.singleFile'
,
"Highlights occurrences only in the current file."
)
,
.
localize
(
'occurrencesHighlight.multiFile'
,
"Experimental: Highlights occurrences across all valid open files."
)
]
,
:
.
localize
(
'occurrencesHighlight'
,
"Controls whether occurrences should be highlighted across open files."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'occurrencesHighlightDelay'
,
0
,
0
,
2000
,
{
:
.
localize
(
'occurrencesHighlightDelay'
,
"Controls the delay in milliseconds after which occurrences are highlighted."
)
,
:
[
'preview'
]
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'overtypeOnPaste'
,
true
,
{
:
.
localize
(
'overtypeOnPaste'
,
"Controls whether pasting should overtype."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'overviewRulerBorder'
,
true
,
{
:
.
localize
(
'overviewRulerBorder'
,
"Controls whether a border should be drawn around the overview ruler."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'overviewRulerLanes'
,
3
,
0
,
3
)
)
,
:
register
(
new
EditorPadding
(
)
)
,
:
register
(
new
EditorPasteAs
(
)
)
,
:
register
(
new
EditorParameterHints
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'peekWidgetDefaultFocus'
,
'tree'
as
'tree'
|
'editor'
,
[
'tree'
,
'editor'
]
as
const
,
{
:
[
.
localize
(
'peekWidgetDefaultFocus.tree'
,
"Focus the tree when opening peek"
)
,
.
localize
(
'peekWidgetDefaultFocus.editor'
,
"Focus the editor when opening peek"
)
]
,
:
.
localize
(
'peekWidgetDefaultFocus'
,
"Controls whether to focus the inline editor or the tree in the peek widget."
)
}
)
)
,
:
register
(
new
PlaceholderOption
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'definitionLinkOpensInPeek'
,
false
,
{
:
.
localize
(
'definitionLinkOpensInPeek'
,
"Controls whether the Go to Definition mouse gesture always opens the peek widget."
)
}
)
)
,
:
register
(
new
EditorQuickSuggestions
(
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'quickSuggestionsDelay'
,
10
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'quickSuggestionsDelay'
,
"Controls the delay in milliseconds after which quick suggestions will show up."
)
,
:
{
:
'auto'
}
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'readOnly'
,
false
,
)
)
,
:
register
(
new
ReadonlyMessage
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'renameOnType'
,
false
,
{
:
.
localize
(
'renameOnType'
,
"Controls whether the editor auto renames on type."
)
,
:
.
localize
(
'renameOnTypeDeprecate'
,
"Deprecated, use `#editor.linkedEditing#` instead."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'renderControlCharacters'
,
true
,
{
:
.
localize
(
'renderControlCharacters'
,
"Controls whether the editor should render control characters."
)
,
:
true
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'renderFinalNewline'
,
(
.
?
'dimmed'
:
'on'
)
as
'off'
|
'on'
|
'dimmed'
,
[
'off'
,
'on'
,
'dimmed'
]
as
const
,
{
:
.
localize
(
'renderFinalNewline'
,
"Render last line number when the file ends with a newline."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'renderLineHighlight'
,
'line'
as
'none'
|
'gutter'
|
'line'
|
'all'
,
[
'none'
,
'gutter'
,
'line'
,
'all'
]
as
const
,
{
:
[
''
,
''
,
''
,
.
localize
(
'renderLineHighlight.all'
,
"Highlights both the gutter and the current line."
)
,
]
,
:
.
localize
(
'renderLineHighlight'
,
"Controls how the editor should render the current line highlight."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'renderLineHighlightOnlyWhenFocus'
,
false
,
{
:
.
localize
(
'renderLineHighlightOnlyWhenFocus'
,
"Controls if the editor should render the current line highlight only when the editor is focused."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'renderValidationDecorations'
,
'editable'
as
'editable'
|
'on'
|
'off'
,
[
'editable'
,
'on'
,
'off'
]
as
const
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'renderWhitespace'
,
'selection'
as
'selection'
|
'none'
|
'boundary'
|
'trailing'
|
'all'
,
[
'none'
,
'boundary'
,
'selection'
,
'trailing'
,
'all'
]
as
const
,
{
:
[
''
,
.
localize
(
'renderWhitespace.boundary'
,
"Render whitespace characters except for single spaces between words."
)
,
.
localize
(
'renderWhitespace.selection'
,
"Render whitespace characters only on selected text."
)
,
.
localize
(
'renderWhitespace.trailing'
,
"Render only trailing whitespace characters."
)
,
''
]
,
:
.
localize
(
'renderWhitespace'
,
"Controls how the editor should render whitespace characters."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'revealHorizontalRightPadding'
,
15
,
0
,
1000
,
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'roundedSelection'
,
true
,
{
:
.
localize
(
'roundedSelection'
,
"Controls whether selections should have rounded corners."
)
}
)
)
,
:
register
(
new
EditorRulers
(
)
)
,
:
register
(
new
EditorScrollbar
(
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'scrollBeyondLastColumn'
,
4
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'scrollBeyondLastColumn'
,
"Controls the number of extra characters beyond which the editor will scroll horizontally."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'scrollBeyondLastLine'
,
true
,
{
:
.
localize
(
'scrollBeyondLastLine'
,
"Controls whether the editor will scroll beyond the last line."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'scrollOnMiddleClick'
,
false
,
{
:
.
localize
(
'scrollOnMiddleClick'
,
"Controls whether the editor will scroll when the middle button is pressed."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'scrollPredominantAxis'
,
true
,
{
:
.
localize
(
'scrollPredominantAxis'
,
"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."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'selectionClipboard'
,
true
,
{
:
.
localize
(
'selectionClipboard'
,
"Controls whether the Linux primary clipboard should be supported."
)
,
:
.
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'selectionHighlight'
,
true
,
{
:
.
localize
(
'selectionHighlight'
,
"Controls whether the editor should highlight matches similar to the selection."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'selectionHighlightMaxLength'
,
200
,
0
,
.
MAX_SAFE_SMALL_INTEGER
,
{
:
.
localize
(
'selectionHighlightMaxLength'
,
"Controls how many characters can be in the selection before similar matches are not highlighted. Set to zero for unlimited."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'selectionHighlightMultiline'
,
false
,
{
:
.
localize
(
'selectionHighlightMultiline'
,
"Controls whether the editor should highlight selection matches that span multiple lines."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'selectOnLineNumbers'
,
true
,
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'showFoldingControls'
,
'mouseover'
as
'always'
|
'never'
|
'mouseover'
,
[
'always'
,
'never'
,
'mouseover'
]
as
const
,
{
:
[
.
localize
(
'showFoldingControls.always'
,
"Always show the folding controls."
)
,
.
localize
(
'showFoldingControls.never'
,
"Never show the folding controls and reduce the gutter size."
)
,
.
localize
(
'showFoldingControls.mouseover'
,
"Only show the folding controls when the mouse is over the gutter."
)
,
]
,
:
.
localize
(
'showFoldingControls'
,
"Controls when the folding controls on the gutter are shown."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'showUnused'
,
true
,
{
:
.
localize
(
'showUnused'
,
"Controls fading out of unused code."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'showDeprecated'
,
true
,
{
:
.
localize
(
'showDeprecated'
,
"Controls strikethrough deprecated variables."
)
}
)
)
,
:
register
(
new
EditorInlayHints
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'snippetSuggestions'
,
'inline'
as
'top'
|
'bottom'
|
'inline'
|
'none'
,
[
'top'
,
'bottom'
,
'inline'
,
'none'
]
as
const
,
{
:
[
.
localize
(
'snippetSuggestions.top'
,
"Show snippet suggestions on top of other suggestions."
)
,
.
localize
(
'snippetSuggestions.bottom'
,
"Show snippet suggestions below other suggestions."
)
,
.
localize
(
'snippetSuggestions.inline'
,
"Show snippets suggestions with other suggestions."
)
,
.
localize
(
'snippetSuggestions.none'
,
"Do not show snippet suggestions."
)
,
]
,
:
.
localize
(
'snippetSuggestions'
,
"Controls whether snippets are shown with other suggestions and how they are sorted."
)
}
)
)
,
:
register
(
new
SmartSelect
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'smoothScrolling'
,
false
,
{
:
.
localize
(
'smoothScrolling'
,
"Controls whether the editor will scroll using an animation."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'stopRenderingLineAfter'
,
10000
,
-
1
,
.
MAX_SAFE_SMALL_INTEGER
,
)
)
,
:
register
(
new
EditorSuggest
(
)
)
,
:
register
(
new
InlineEditorSuggest
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'inlineCompletionsAccessibilityVerbose'
,
false
,
{
:
.
localize
(
'inlineCompletionsAccessibilityVerbose'
,
"Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'suggestFontSize'
,
0
,
0
,
1000
,
{
:
.
localize
(
'suggestFontSize'
,
"Font size for the suggest widget. When set to {0}, the value of {1} is used."
,
'`0`'
,
'`#editor.fontSize#`'
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'suggestLineHeight'
,
0
,
0
,
1000
,
{
:
.
localize
(
'suggestLineHeight'
,
"Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8."
,
'`0`'
,
'`#editor.lineHeight#`'
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'suggestOnTriggerCharacters'
,
true
,
{
:
.
localize
(
'suggestOnTriggerCharacters'
,
"Controls whether suggestions should automatically show up when typing trigger characters."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'suggestSelection'
,
'first'
as
'first'
|
'recentlyUsed'
|
'recentlyUsedByPrefix'
,
[
'first'
,
'recentlyUsed'
,
'recentlyUsedByPrefix'
]
as
const
,
{
:
[
.
localize
(
'suggestSelection.first'
,
"Always select the first suggestion."
)
,
.
localize
(
'suggestSelection.recentlyUsed'
,
"Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."
)
,
.
localize
(
'suggestSelection.recentlyUsedByPrefix'
,
"Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`."
)
,
]
,
:
.
localize
(
'suggestSelection'
,
"Controls how suggestions are pre-selected when showing the suggest list."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'tabCompletion'
,
'off'
as
'on'
|
'off'
|
'onlySnippets'
,
[
'on'
,
'off'
,
'onlySnippets'
]
as
const
,
{
:
[
.
localize
(
'tabCompletion.on'
,
"Tab complete will insert the best matching suggestion when pressing tab."
)
,
.
localize
(
'tabCompletion.off'
,
"Disable tab completions."
)
,
.
localize
(
'tabCompletion.onlySnippets'
,
"Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled."
)
,
]
,
:
.
localize
(
'tabCompletion'
,
"Enables tab completions."
)
}
)
)
,
:
register
(
new
EditorIntOption
(
.
,
'tabIndex'
,
0
,
-
1
,
.
MAX_SAFE_SMALL_INTEGER
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'trimWhitespaceOnDelete'
,
false
,
{
:
.
localize
(
'trimWhitespaceOnDelete'
,
"Controls whether the editor will also delete the next line's indentation whitespace when deleting a newline."
)
}
)
)
,
:
register
(
new
UnicodeHighlight
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'unusualLineTerminators'
,
'prompt'
as
'auto'
|
'off'
|
'prompt'
,
[
'auto'
,
'off'
,
'prompt'
]
as
const
,
{
:
[
.
localize
(
'unusualLineTerminators.auto'
,
"Unusual line terminators are automatically removed."
)
,
.
localize
(
'unusualLineTerminators.off'
,
"Unusual line terminators are ignored."
)
,
.
localize
(
'unusualLineTerminators.prompt'
,
"Unusual line terminators prompt to be removed."
)
,
]
,
:
.
localize
(
'unusualLineTerminators'
,
"Remove unusual line terminators that might cause problems."
)
}
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'useShadowDOM'
,
true
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'useTabStops'
,
true
,
{
:
.
localize
(
'useTabStops'
,
"Spaces and tabs are inserted and deleted in alignment with tab stops."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'wordBreak'
,
'normal'
as
'normal'
|
'keepAll'
,
[
'normal'
,
'keepAll'
]
as
const
,
{
:
[
.
localize
(
'wordBreak.normal'
,
"Use the default line break rule."
)
,
.
localize
(
'wordBreak.keepAll'
,
"Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal."
)
,
]
,
:
.
localize
(
'wordBreak'
,
"Controls the word break rules used for Chinese/Japanese/Korean (CJK) text."
)
}
)
)
,
:
register
(
new
WordSegmenterLocales
(
)
)
,
:
register
(
new
EditorStringOption
(
.
,
'wordSeparators'
,
USUAL_WORD_SEPARATORS
,
{
:
.
localize
(
'wordSeparators'
,
"Characters that will be used as word separators when doing word related navigations or operations."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'wordWrap'
,
'off'
as
'off'
|
'on'
|
'wordWrapColumn'
|
'bounded'
,
[
'off'
,
'on'
,
'wordWrapColumn'
,
'bounded'
]
as
const
,
{
:
[
.
localize
(
'wordWrap.off'
,
"Lines will never wrap."
)
,
.
localize
(
'wordWrap.on'
,
"Lines will wrap at the viewport width."
)
,
.
localize
(
{
:
'wordWrap.wordWrapColumn'
,
:
[
'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
]
}
,
"Lines will wrap at `#editor.wordWrapColumn#`."
)
,
.
localize
(
{
:
'wordWrap.bounded'
,
:
[
'- viewport means the edge of the visible window size.'
,
'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
]
}
,
"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`."
)
,
]
,
:
.
localize
(
{
:
'wordWrap'
,
:
[
'- \'off\', \'on\', \'wordWrapColumn\' and \'bounded\' refer to values the setting can take and should not be localized.'
,
'- `editor.wordWrapColumn` refers to a different setting and should not be localized.'
'- `editor.wordWrap` refers to a different setting and should not be localized.'
,
'- \'wordWrapColumn\' and \'bounded\' refer to values the different setting can take and should not be localized.'
]
}
,
"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`."
)
}
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'wordWrapOverride1'
,
'inherit'
as
'off'
|
'on'
|
'inherit'
,
[
'off'
,
'on'
,
'inherit'
]
as
const
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'wordWrapOverride2'
,
'inherit'
as
'off'
|
'on'
|
'inherit'
,
[
'off'
,
'on'
,
'inherit'
]
as
const
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'wrapOnEscapedLineFeeds'
,
false
,
{
:
.
localize
(
'wrapOnEscapedLineFeeds'
,
"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```"
)
}
)
)
,
// Leave these at the end (because they have dependencies!)
:
register
(
new
EffectiveCursorStyle
(
)
)
,
:
register
(
new
EditorClassName
(
)
)
,
:
register
(
new
EditorStringEnumOption
(
.
,
'defaultColorDecorators'
,
'auto'
as
'auto'
|
'always'
|
'never'
,
[
'auto'
,
'always'
,
'never'
]
as
const
,
{
:
[
.
localize
(
'editor.defaultColorDecorators.auto'
,
"Show default color decorators only when no extension provides colors decorators."
)
,
.
localize
(
'editor.defaultColorDecorators.always'
,
"Always show default color decorators."
)
,
.
localize
(
'editor.defaultColorDecorators.never'
,
"Never show default color decorators."
)
,
]
,
:
.
localize
(
'defaultColorDecorators'
,
"Controls whether inline color decorations should be shown using the default document color provider."
)
}
)
)
,
:
register
(
new
EditorPixelRatio
(
)
)
,
:
register
(
new
EditorBooleanOption
(
.
,
'tabFocusMode'
,
false
,
{
:
.
localize
(
'tabFocusMode'
,
"Controls whether the editor receives tabs or defers them to the workbench for navigation."