Path: blob/main/src/vs/editor/common/standalone/standaloneEnums.ts
5221 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.678export enum AccessibilitySupport {9/**10* This should be the browser case where it is not known if a screen reader is attached or no.11*/12Unknown = 0,13Disabled = 1,14Enabled = 215}1617export enum CodeActionTriggerType {18Invoke = 1,19Auto = 220}2122export enum CompletionItemInsertTextRule {23None = 0,24/**25* Adjust whitespace/indentation of multiline insert texts to26* match the current line indentation.27*/28KeepWhitespace = 1,29/**30* `insertText` is a snippet.31*/32InsertAsSnippet = 433}3435export enum CompletionItemKind {36Method = 0,37Function = 1,38Constructor = 2,39Field = 3,40Variable = 4,41Class = 5,42Struct = 6,43Interface = 7,44Module = 8,45Property = 9,46Event = 10,47Operator = 11,48Unit = 12,49Value = 13,50Constant = 14,51Enum = 15,52EnumMember = 16,53Keyword = 17,54Text = 18,55Color = 19,56File = 20,57Reference = 21,58Customcolor = 22,59Folder = 23,60TypeParameter = 24,61User = 25,62Issue = 26,63Tool = 27,64Snippet = 2865}6667export enum CompletionItemTag {68Deprecated = 169}7071/**72* How a suggest provider was triggered.73*/74export enum CompletionTriggerKind {75Invoke = 0,76TriggerCharacter = 1,77TriggerForIncompleteCompletions = 278}7980/**81* A positioning preference for rendering content widgets.82*/83export enum ContentWidgetPositionPreference {84/**85* Place the content widget exactly at a position86*/87EXACT = 0,88/**89* Place the content widget above a position90*/91ABOVE = 1,92/**93* Place the content widget below a position94*/95BELOW = 296}9798/**99* Describes the reason the cursor has changed its position.100*/101export enum CursorChangeReason {102/**103* Unknown or not set.104*/105NotSet = 0,106/**107* A `model.setValue()` was called.108*/109ContentFlush = 1,110/**111* The `model` has been changed outside of this cursor and the cursor recovers its position from associated markers.112*/113RecoverFromMarkers = 2,114/**115* There was an explicit user gesture.116*/117Explicit = 3,118/**119* There was a Paste.120*/121Paste = 4,122/**123* There was an Undo.124*/125Undo = 5,126/**127* There was a Redo.128*/129Redo = 6130}131132/**133* The default end of line to use when instantiating models.134*/135export enum DefaultEndOfLine {136/**137* Use line feed (\n) as the end of line character.138*/139LF = 1,140/**141* Use carriage return and line feed (\r\n) as the end of line character.142*/143CRLF = 2144}145146/**147* A document highlight kind.148*/149export enum DocumentHighlightKind {150/**151* A textual occurrence.152*/153Text = 0,154/**155* Read-access of a symbol, like reading a variable.156*/157Read = 1,158/**159* Write-access of a symbol, like writing to a variable.160*/161Write = 2162}163164/**165* Configuration options for auto indentation in the editor166*/167export enum EditorAutoIndentStrategy {168None = 0,169Keep = 1,170Brackets = 2,171Advanced = 3,172Full = 4173}174175export enum EditorOption {176acceptSuggestionOnCommitCharacter = 0,177acceptSuggestionOnEnter = 1,178accessibilitySupport = 2,179accessibilityPageSize = 3,180allowOverflow = 4,181allowVariableLineHeights = 5,182allowVariableFonts = 6,183allowVariableFontsInAccessibilityMode = 7,184ariaLabel = 8,185ariaRequired = 9,186autoClosingBrackets = 10,187autoClosingComments = 11,188screenReaderAnnounceInlineSuggestion = 12,189autoClosingDelete = 13,190autoClosingOvertype = 14,191autoClosingQuotes = 15,192autoIndent = 16,193autoIndentOnPaste = 17,194autoIndentOnPasteWithinString = 18,195automaticLayout = 19,196autoSurround = 20,197bracketPairColorization = 21,198guides = 22,199codeLens = 23,200codeLensFontFamily = 24,201codeLensFontSize = 25,202colorDecorators = 26,203colorDecoratorsLimit = 27,204columnSelection = 28,205comments = 29,206contextmenu = 30,207copyWithSyntaxHighlighting = 31,208cursorBlinking = 32,209cursorSmoothCaretAnimation = 33,210cursorStyle = 34,211cursorSurroundingLines = 35,212cursorSurroundingLinesStyle = 36,213cursorWidth = 37,214cursorHeight = 38,215disableLayerHinting = 39,216disableMonospaceOptimizations = 40,217domReadOnly = 41,218dragAndDrop = 42,219dropIntoEditor = 43,220editContext = 44,221emptySelectionClipboard = 45,222experimentalGpuAcceleration = 46,223experimentalWhitespaceRendering = 47,224extraEditorClassName = 48,225fastScrollSensitivity = 49,226find = 50,227fixedOverflowWidgets = 51,228folding = 52,229foldingStrategy = 53,230foldingHighlight = 54,231foldingImportsByDefault = 55,232foldingMaximumRegions = 56,233unfoldOnClickAfterEndOfLine = 57,234fontFamily = 58,235fontInfo = 59,236fontLigatures = 60,237fontSize = 61,238fontWeight = 62,239fontVariations = 63,240formatOnPaste = 64,241formatOnType = 65,242glyphMargin = 66,243gotoLocation = 67,244hideCursorInOverviewRuler = 68,245hover = 69,246inDiffEditor = 70,247inlineSuggest = 71,248letterSpacing = 72,249lightbulb = 73,250lineDecorationsWidth = 74,251lineHeight = 75,252lineNumbers = 76,253lineNumbersMinChars = 77,254linkedEditing = 78,255links = 79,256matchBrackets = 80,257minimap = 81,258mouseStyle = 82,259mouseWheelScrollSensitivity = 83,260mouseWheelZoom = 84,261multiCursorMergeOverlapping = 85,262multiCursorModifier = 86,263mouseMiddleClickAction = 87,264multiCursorPaste = 88,265multiCursorLimit = 89,266occurrencesHighlight = 90,267occurrencesHighlightDelay = 91,268overtypeCursorStyle = 92,269overtypeOnPaste = 93,270overviewRulerBorder = 94,271overviewRulerLanes = 95,272padding = 96,273pasteAs = 97,274parameterHints = 98,275peekWidgetDefaultFocus = 99,276placeholder = 100,277definitionLinkOpensInPeek = 101,278quickSuggestions = 102,279quickSuggestionsDelay = 103,280readOnly = 104,281readOnlyMessage = 105,282renameOnType = 106,283renderRichScreenReaderContent = 107,284renderControlCharacters = 108,285renderFinalNewline = 109,286renderLineHighlight = 110,287renderLineHighlightOnlyWhenFocus = 111,288renderValidationDecorations = 112,289renderWhitespace = 113,290revealHorizontalRightPadding = 114,291roundedSelection = 115,292rulers = 116,293scrollbar = 117,294scrollBeyondLastColumn = 118,295scrollBeyondLastLine = 119,296scrollPredominantAxis = 120,297selectionClipboard = 121,298selectionHighlight = 122,299selectionHighlightMaxLength = 123,300selectionHighlightMultiline = 124,301selectOnLineNumbers = 125,302showFoldingControls = 126,303showUnused = 127,304snippetSuggestions = 128,305smartSelect = 129,306smoothScrolling = 130,307stickyScroll = 131,308stickyTabStops = 132,309stopRenderingLineAfter = 133,310suggest = 134,311suggestFontSize = 135,312suggestLineHeight = 136,313suggestOnTriggerCharacters = 137,314suggestSelection = 138,315tabCompletion = 139,316tabIndex = 140,317trimWhitespaceOnDelete = 141,318unicodeHighlighting = 142,319unusualLineTerminators = 143,320useShadowDOM = 144,321useTabStops = 145,322wordBreak = 146,323wordSegmenterLocales = 147,324wordSeparators = 148,325wordWrap = 149,326wordWrapBreakAfterCharacters = 150,327wordWrapBreakBeforeCharacters = 151,328wordWrapColumn = 152,329wordWrapOverride1 = 153,330wordWrapOverride2 = 154,331wrappingIndent = 155,332wrappingStrategy = 156,333showDeprecated = 157,334inertialScroll = 158,335inlayHints = 159,336wrapOnEscapedLineFeeds = 160,337effectiveCursorStyle = 161,338editorClassName = 162,339pixelRatio = 163,340tabFocusMode = 164,341layoutInfo = 165,342wrappingInfo = 166,343defaultColorDecorators = 167,344colorDecoratorsActivatedOn = 168,345inlineCompletionsAccessibilityVerbose = 169,346effectiveEditContext = 170,347scrollOnMiddleClick = 171,348effectiveAllowVariableFonts = 172349}350351/**352* End of line character preference.353*/354export enum EndOfLinePreference {355/**356* Use the end of line character identified in the text buffer.357*/358TextDefined = 0,359/**360* Use line feed (\n) as the end of line character.361*/362LF = 1,363/**364* Use carriage return and line feed (\r\n) as the end of line character.365*/366CRLF = 2367}368369/**370* End of line character preference.371*/372export enum EndOfLineSequence {373/**374* Use line feed (\n) as the end of line character.375*/376LF = 0,377/**378* Use carriage return and line feed (\r\n) as the end of line character.379*/380CRLF = 1381}382383/**384* Vertical Lane in the glyph margin of the editor.385*/386export enum GlyphMarginLane {387Left = 1,388Center = 2,389Right = 3390}391392export enum HoverVerbosityAction {393/**394* Increase the verbosity of the hover395*/396Increase = 0,397/**398* Decrease the verbosity of the hover399*/400Decrease = 1401}402403/**404* Describes what to do with the indentation when pressing Enter.405*/406export enum IndentAction {407/**408* Insert new line and copy the previous line's indentation.409*/410None = 0,411/**412* Insert new line and indent once (relative to the previous line's indentation).413*/414Indent = 1,415/**416* Insert two new lines:417* - the first one indented which will hold the cursor418* - the second one at the same indentation level419*/420IndentOutdent = 2,421/**422* Insert new line and outdent once (relative to the previous line's indentation).423*/424Outdent = 3425}426427export enum InjectedTextCursorStops {428Both = 0,429Right = 1,430Left = 2,431None = 3432}433434export enum InlayHintKind {435Type = 1,436Parameter = 2437}438439export enum InlineCompletionEndOfLifeReasonKind {440Accepted = 0,441Rejected = 1,442Ignored = 2443}444445export enum InlineCompletionHintStyle {446Code = 1,447Label = 2448}449450/**451* How an {@link InlineCompletionsProvider inline completion provider} was triggered.452*/453export enum InlineCompletionTriggerKind {454/**455* Completion was triggered automatically while editing.456* It is sufficient to return a single completion item in this case.457*/458Automatic = 0,459/**460* Completion was triggered explicitly by a user gesture.461* Return multiple completion items to enable cycling through them.462*/463Explicit = 1464}465/**466* Virtual Key Codes, the value does not hold any inherent meaning.467* Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx468* But these are "more general", as they should work across browsers & OS`s.469*/470export enum KeyCode {471DependsOnKbLayout = -1,472/**473* Placed first to cover the 0 value of the enum.474*/475Unknown = 0,476Backspace = 1,477Tab = 2,478Enter = 3,479Shift = 4,480Ctrl = 5,481Alt = 6,482PauseBreak = 7,483CapsLock = 8,484Escape = 9,485Space = 10,486PageUp = 11,487PageDown = 12,488End = 13,489Home = 14,490LeftArrow = 15,491UpArrow = 16,492RightArrow = 17,493DownArrow = 18,494Insert = 19,495Delete = 20,496Digit0 = 21,497Digit1 = 22,498Digit2 = 23,499Digit3 = 24,500Digit4 = 25,501Digit5 = 26,502Digit6 = 27,503Digit7 = 28,504Digit8 = 29,505Digit9 = 30,506KeyA = 31,507KeyB = 32,508KeyC = 33,509KeyD = 34,510KeyE = 35,511KeyF = 36,512KeyG = 37,513KeyH = 38,514KeyI = 39,515KeyJ = 40,516KeyK = 41,517KeyL = 42,518KeyM = 43,519KeyN = 44,520KeyO = 45,521KeyP = 46,522KeyQ = 47,523KeyR = 48,524KeyS = 49,525KeyT = 50,526KeyU = 51,527KeyV = 52,528KeyW = 53,529KeyX = 54,530KeyY = 55,531KeyZ = 56,532Meta = 57,533ContextMenu = 58,534F1 = 59,535F2 = 60,536F3 = 61,537F4 = 62,538F5 = 63,539F6 = 64,540F7 = 65,541F8 = 66,542F9 = 67,543F10 = 68,544F11 = 69,545F12 = 70,546F13 = 71,547F14 = 72,548F15 = 73,549F16 = 74,550F17 = 75,551F18 = 76,552F19 = 77,553F20 = 78,554F21 = 79,555F22 = 80,556F23 = 81,557F24 = 82,558NumLock = 83,559ScrollLock = 84,560/**561* Used for miscellaneous characters; it can vary by keyboard.562* For the US standard keyboard, the ';:' key563*/564Semicolon = 85,565/**566* For any country/region, the '+' key567* For the US standard keyboard, the '=+' key568*/569Equal = 86,570/**571* For any country/region, the ',' key572* For the US standard keyboard, the ',<' key573*/574Comma = 87,575/**576* For any country/region, the '-' key577* For the US standard keyboard, the '-_' key578*/579Minus = 88,580/**581* For any country/region, the '.' key582* For the US standard keyboard, the '.>' key583*/584Period = 89,585/**586* Used for miscellaneous characters; it can vary by keyboard.587* For the US standard keyboard, the '/?' key588*/589Slash = 90,590/**591* Used for miscellaneous characters; it can vary by keyboard.592* For the US standard keyboard, the '`~' key593*/594Backquote = 91,595/**596* Used for miscellaneous characters; it can vary by keyboard.597* For the US standard keyboard, the '[{' key598*/599BracketLeft = 92,600/**601* Used for miscellaneous characters; it can vary by keyboard.602* For the US standard keyboard, the '\|' key603*/604Backslash = 93,605/**606* Used for miscellaneous characters; it can vary by keyboard.607* For the US standard keyboard, the ']}' key608*/609BracketRight = 94,610/**611* Used for miscellaneous characters; it can vary by keyboard.612* For the US standard keyboard, the ''"' key613*/614Quote = 95,615/**616* Used for miscellaneous characters; it can vary by keyboard.617*/618OEM_8 = 96,619/**620* Either the angle bracket key or the backslash key on the RT 102-key keyboard.621*/622IntlBackslash = 97,623Numpad0 = 98,// VK_NUMPAD0, 0x60, Numeric keypad 0 key624Numpad1 = 99,// VK_NUMPAD1, 0x61, Numeric keypad 1 key625Numpad2 = 100,// VK_NUMPAD2, 0x62, Numeric keypad 2 key626Numpad3 = 101,// VK_NUMPAD3, 0x63, Numeric keypad 3 key627Numpad4 = 102,// VK_NUMPAD4, 0x64, Numeric keypad 4 key628Numpad5 = 103,// VK_NUMPAD5, 0x65, Numeric keypad 5 key629Numpad6 = 104,// VK_NUMPAD6, 0x66, Numeric keypad 6 key630Numpad7 = 105,// VK_NUMPAD7, 0x67, Numeric keypad 7 key631Numpad8 = 106,// VK_NUMPAD8, 0x68, Numeric keypad 8 key632Numpad9 = 107,// VK_NUMPAD9, 0x69, Numeric keypad 9 key633NumpadMultiply = 108,// VK_MULTIPLY, 0x6A, Multiply key634NumpadAdd = 109,// VK_ADD, 0x6B, Add key635NUMPAD_SEPARATOR = 110,// VK_SEPARATOR, 0x6C, Separator key636NumpadSubtract = 111,// VK_SUBTRACT, 0x6D, Subtract key637NumpadDecimal = 112,// VK_DECIMAL, 0x6E, Decimal key638NumpadDivide = 113,// VK_DIVIDE, 0x6F,639/**640* Cover all key codes when IME is processing input.641*/642KEY_IN_COMPOSITION = 114,643ABNT_C1 = 115,// Brazilian (ABNT) Keyboard644ABNT_C2 = 116,// Brazilian (ABNT) Keyboard645AudioVolumeMute = 117,646AudioVolumeUp = 118,647AudioVolumeDown = 119,648BrowserSearch = 120,649BrowserHome = 121,650BrowserBack = 122,651BrowserForward = 123,652MediaTrackNext = 124,653MediaTrackPrevious = 125,654MediaStop = 126,655MediaPlayPause = 127,656LaunchMediaPlayer = 128,657LaunchMail = 129,658LaunchApp2 = 130,659/**660* VK_CLEAR, 0x0C, CLEAR key661*/662Clear = 131,663/**664* Placed last to cover the length of the enum.665* Please do not depend on this value!666*/667MAX_VALUE = 132668}669670export enum MarkerSeverity {671Hint = 1,672Info = 2,673Warning = 4,674Error = 8675}676677export enum MarkerTag {678Unnecessary = 1,679Deprecated = 2680}681682/**683* Position in the minimap to render the decoration.684*/685export enum MinimapPosition {686Inline = 1,687Gutter = 2688}689690/**691* Section header style.692*/693export enum MinimapSectionHeaderStyle {694Normal = 1,695Underlined = 2696}697698/**699* Type of hit element with the mouse in the editor.700*/701export enum MouseTargetType {702/**703* Mouse is on top of an unknown element.704*/705UNKNOWN = 0,706/**707* Mouse is on top of the textarea used for input.708*/709TEXTAREA = 1,710/**711* Mouse is on top of the glyph margin712*/713GUTTER_GLYPH_MARGIN = 2,714/**715* Mouse is on top of the line numbers716*/717GUTTER_LINE_NUMBERS = 3,718/**719* Mouse is on top of the line decorations720*/721GUTTER_LINE_DECORATIONS = 4,722/**723* Mouse is on top of the whitespace left in the gutter by a view zone.724*/725GUTTER_VIEW_ZONE = 5,726/**727* Mouse is on top of text in the content.728*/729CONTENT_TEXT = 6,730/**731* Mouse is on top of empty space in the content (e.g. after line text or below last line)732*/733CONTENT_EMPTY = 7,734/**735* Mouse is on top of a view zone in the content.736*/737CONTENT_VIEW_ZONE = 8,738/**739* Mouse is on top of a content widget.740*/741CONTENT_WIDGET = 9,742/**743* Mouse is on top of the decorations overview ruler.744*/745OVERVIEW_RULER = 10,746/**747* Mouse is on top of a scrollbar.748*/749SCROLLBAR = 11,750/**751* Mouse is on top of an overlay widget.752*/753OVERLAY_WIDGET = 12,754/**755* Mouse is outside of the editor.756*/757OUTSIDE_EDITOR = 13758}759760export enum NewSymbolNameTag {761AIGenerated = 1762}763764export enum NewSymbolNameTriggerKind {765Invoke = 0,766Automatic = 1767}768769/**770* A positioning preference for rendering overlay widgets.771*/772export enum OverlayWidgetPositionPreference {773/**774* Position the overlay widget in the top right corner775*/776TOP_RIGHT_CORNER = 0,777/**778* Position the overlay widget in the bottom right corner779*/780BOTTOM_RIGHT_CORNER = 1,781/**782* Position the overlay widget in the top center783*/784TOP_CENTER = 2785}786787/**788* Vertical Lane in the overview ruler of the editor.789*/790export enum OverviewRulerLane {791Left = 1,792Center = 2,793Right = 4,794Full = 7795}796797/**798* How a partial acceptance was triggered.799*/800export enum PartialAcceptTriggerKind {801Word = 0,802Line = 1,803Suggest = 2804}805806export enum PositionAffinity {807/**808* Prefers the left most position.809*/810Left = 0,811/**812* Prefers the right most position.813*/814Right = 1,815/**816* No preference.817*/818None = 2,819/**820* If the given position is on injected text, prefers the position left of it.821*/822LeftOfInjectedText = 3,823/**824* If the given position is on injected text, prefers the position right of it.825*/826RightOfInjectedText = 4827}828829export enum RenderLineNumbersType {830Off = 0,831On = 1,832Relative = 2,833Interval = 3,834Custom = 4835}836837export enum RenderMinimap {838None = 0,839Text = 1,840Blocks = 2841}842843export enum ScrollType {844Smooth = 0,845Immediate = 1846}847848export enum ScrollbarVisibility {849Auto = 1,850Hidden = 2,851Visible = 3852}853854/**855* The direction of a selection.856*/857export enum SelectionDirection {858/**859* The selection starts above where it ends.860*/861LTR = 0,862/**863* The selection starts below where it ends.864*/865RTL = 1866}867868export enum ShowLightbulbIconMode {869Off = 'off',870OnCode = 'onCode',871On = 'on'872}873874export enum SignatureHelpTriggerKind {875Invoke = 1,876TriggerCharacter = 2,877ContentChange = 3878}879880/**881* A symbol kind.882*/883export enum SymbolKind {884File = 0,885Module = 1,886Namespace = 2,887Package = 3,888Class = 4,889Method = 5,890Property = 6,891Field = 7,892Constructor = 8,893Enum = 9,894Interface = 10,895Function = 11,896Variable = 12,897Constant = 13,898String = 14,899Number = 15,900Boolean = 16,901Array = 17,902Object = 18,903Key = 19,904Null = 20,905EnumMember = 21,906Struct = 22,907Event = 23,908Operator = 24,909TypeParameter = 25910}911912export enum SymbolTag {913Deprecated = 1914}915916/**917* Text Direction for a decoration.918*/919export enum TextDirection {920LTR = 0,921RTL = 1922}923924/**925* The kind of animation in which the editor's cursor should be rendered.926*/927export enum TextEditorCursorBlinkingStyle {928/**929* Hidden930*/931Hidden = 0,932/**933* Blinking934*/935Blink = 1,936/**937* Blinking with smooth fading938*/939Smooth = 2,940/**941* Blinking with prolonged filled state and smooth fading942*/943Phase = 3,944/**945* Expand collapse animation on the y axis946*/947Expand = 4,948/**949* No-Blinking950*/951Solid = 5952}953954/**955* The style in which the editor's cursor should be rendered.956*/957export enum TextEditorCursorStyle {958/**959* As a vertical line (sitting between two characters).960*/961Line = 1,962/**963* As a block (sitting on top of a character).964*/965Block = 2,966/**967* As a horizontal line (sitting under a character).968*/969Underline = 3,970/**971* As a thin vertical line (sitting between two characters).972*/973LineThin = 4,974/**975* As an outlined block (sitting on top of a character).976*/977BlockOutline = 5,978/**979* As a thin horizontal line (sitting under a character).980*/981UnderlineThin = 6982}983984/**985* Describes the behavior of decorations when typing/editing near their edges.986* Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`987*/988export enum TrackedRangeStickiness {989AlwaysGrowsWhenTypingAtEdges = 0,990NeverGrowsWhenTypingAtEdges = 1,991GrowsOnlyWhenTypingBefore = 2,992GrowsOnlyWhenTypingAfter = 3993}994995/**996* Describes how to indent wrapped lines.997*/998export enum WrappingIndent {999/**1000* No indentation => wrapped lines begin at column 1.1001*/1002None = 0,1003/**1004* Same => wrapped lines get the same indentation as the parent.1005*/1006Same = 1,1007/**1008* Indent => wrapped lines get +1 indentation toward the parent.1009*/1010Indent = 2,1011/**1012* DeepIndent => wrapped lines get +2 indentation toward the parent.1013*/1014DeepIndent = 31015}10161017