Path: blob/main/src/vs/editor/common/standalone/standaloneEnums.ts
3294 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,263multiCursorPaste = 87,264multiCursorLimit = 88,265occurrencesHighlight = 89,266occurrencesHighlightDelay = 90,267overtypeCursorStyle = 91,268overtypeOnPaste = 92,269overviewRulerBorder = 93,270overviewRulerLanes = 94,271padding = 95,272pasteAs = 96,273parameterHints = 97,274peekWidgetDefaultFocus = 98,275placeholder = 99,276definitionLinkOpensInPeek = 100,277quickSuggestions = 101,278quickSuggestionsDelay = 102,279readOnly = 103,280readOnlyMessage = 104,281renameOnType = 105,282renderRichScreenReaderContent = 106,283renderControlCharacters = 107,284renderFinalNewline = 108,285renderLineHighlight = 109,286renderLineHighlightOnlyWhenFocus = 110,287renderValidationDecorations = 111,288renderWhitespace = 112,289revealHorizontalRightPadding = 113,290roundedSelection = 114,291rulers = 115,292scrollbar = 116,293scrollBeyondLastColumn = 117,294scrollBeyondLastLine = 118,295scrollPredominantAxis = 119,296selectionClipboard = 120,297selectionHighlight = 121,298selectionHighlightMaxLength = 122,299selectionHighlightMultiline = 123,300selectOnLineNumbers = 124,301showFoldingControls = 125,302showUnused = 126,303snippetSuggestions = 127,304smartSelect = 128,305smoothScrolling = 129,306stickyScroll = 130,307stickyTabStops = 131,308stopRenderingLineAfter = 132,309suggest = 133,310suggestFontSize = 134,311suggestLineHeight = 135,312suggestOnTriggerCharacters = 136,313suggestSelection = 137,314tabCompletion = 138,315tabIndex = 139,316trimWhitespaceOnDelete = 140,317unicodeHighlighting = 141,318unusualLineTerminators = 142,319useShadowDOM = 143,320useTabStops = 144,321wordBreak = 145,322wordSegmenterLocales = 146,323wordSeparators = 147,324wordWrap = 148,325wordWrapBreakAfterCharacters = 149,326wordWrapBreakBeforeCharacters = 150,327wordWrapColumn = 151,328wordWrapOverride1 = 152,329wordWrapOverride2 = 153,330wrappingIndent = 154,331wrappingStrategy = 155,332showDeprecated = 156,333inertialScroll = 157,334inlayHints = 158,335wrapOnEscapedLineFeeds = 159,336effectiveCursorStyle = 160,337editorClassName = 161,338pixelRatio = 162,339tabFocusMode = 163,340layoutInfo = 164,341wrappingInfo = 165,342defaultColorDecorators = 166,343colorDecoratorsActivatedOn = 167,344inlineCompletionsAccessibilityVerbose = 168,345effectiveEditContext = 169,346scrollOnMiddleClick = 170,347effectiveAllowVariableFonts = 171348}349350/**351* End of line character preference.352*/353export enum EndOfLinePreference {354/**355* Use the end of line character identified in the text buffer.356*/357TextDefined = 0,358/**359* Use line feed (\n) as the end of line character.360*/361LF = 1,362/**363* Use carriage return and line feed (\r\n) as the end of line character.364*/365CRLF = 2366}367368/**369* End of line character preference.370*/371export enum EndOfLineSequence {372/**373* Use line feed (\n) as the end of line character.374*/375LF = 0,376/**377* Use carriage return and line feed (\r\n) as the end of line character.378*/379CRLF = 1380}381382/**383* Vertical Lane in the glyph margin of the editor.384*/385export enum GlyphMarginLane {386Left = 1,387Center = 2,388Right = 3389}390391export enum HoverVerbosityAction {392/**393* Increase the verbosity of the hover394*/395Increase = 0,396/**397* Decrease the verbosity of the hover398*/399Decrease = 1400}401402/**403* Describes what to do with the indentation when pressing Enter.404*/405export enum IndentAction {406/**407* Insert new line and copy the previous line's indentation.408*/409None = 0,410/**411* Insert new line and indent once (relative to the previous line's indentation).412*/413Indent = 1,414/**415* Insert two new lines:416* - the first one indented which will hold the cursor417* - the second one at the same indentation level418*/419IndentOutdent = 2,420/**421* Insert new line and outdent once (relative to the previous line's indentation).422*/423Outdent = 3424}425426export enum InjectedTextCursorStops {427Both = 0,428Right = 1,429Left = 2,430None = 3431}432433export enum InlayHintKind {434Type = 1,435Parameter = 2436}437438export enum InlineCompletionDisplayLocationKind {439Code = 1,440Label = 2441}442443export enum InlineCompletionEndOfLifeReasonKind {444Accepted = 0,445Rejected = 1,446Ignored = 2447}448449/**450* How an {@link InlineCompletionsProvider inline completion provider} was triggered.451*/452export enum InlineCompletionTriggerKind {453/**454* Completion was triggered automatically while editing.455* It is sufficient to return a single completion item in this case.456*/457Automatic = 0,458/**459* Completion was triggered explicitly by a user gesture.460* Return multiple completion items to enable cycling through them.461*/462Explicit = 1463}464/**465* Virtual Key Codes, the value does not hold any inherent meaning.466* Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx467* But these are "more general", as they should work across browsers & OS`s.468*/469export enum KeyCode {470DependsOnKbLayout = -1,471/**472* Placed first to cover the 0 value of the enum.473*/474Unknown = 0,475Backspace = 1,476Tab = 2,477Enter = 3,478Shift = 4,479Ctrl = 5,480Alt = 6,481PauseBreak = 7,482CapsLock = 8,483Escape = 9,484Space = 10,485PageUp = 11,486PageDown = 12,487End = 13,488Home = 14,489LeftArrow = 15,490UpArrow = 16,491RightArrow = 17,492DownArrow = 18,493Insert = 19,494Delete = 20,495Digit0 = 21,496Digit1 = 22,497Digit2 = 23,498Digit3 = 24,499Digit4 = 25,500Digit5 = 26,501Digit6 = 27,502Digit7 = 28,503Digit8 = 29,504Digit9 = 30,505KeyA = 31,506KeyB = 32,507KeyC = 33,508KeyD = 34,509KeyE = 35,510KeyF = 36,511KeyG = 37,512KeyH = 38,513KeyI = 39,514KeyJ = 40,515KeyK = 41,516KeyL = 42,517KeyM = 43,518KeyN = 44,519KeyO = 45,520KeyP = 46,521KeyQ = 47,522KeyR = 48,523KeyS = 49,524KeyT = 50,525KeyU = 51,526KeyV = 52,527KeyW = 53,528KeyX = 54,529KeyY = 55,530KeyZ = 56,531Meta = 57,532ContextMenu = 58,533F1 = 59,534F2 = 60,535F3 = 61,536F4 = 62,537F5 = 63,538F6 = 64,539F7 = 65,540F8 = 66,541F9 = 67,542F10 = 68,543F11 = 69,544F12 = 70,545F13 = 71,546F14 = 72,547F15 = 73,548F16 = 74,549F17 = 75,550F18 = 76,551F19 = 77,552F20 = 78,553F21 = 79,554F22 = 80,555F23 = 81,556F24 = 82,557NumLock = 83,558ScrollLock = 84,559/**560* Used for miscellaneous characters; it can vary by keyboard.561* For the US standard keyboard, the ';:' key562*/563Semicolon = 85,564/**565* For any country/region, the '+' key566* For the US standard keyboard, the '=+' key567*/568Equal = 86,569/**570* For any country/region, the ',' key571* For the US standard keyboard, the ',<' key572*/573Comma = 87,574/**575* For any country/region, the '-' key576* For the US standard keyboard, the '-_' key577*/578Minus = 88,579/**580* For any country/region, the '.' key581* For the US standard keyboard, the '.>' key582*/583Period = 89,584/**585* Used for miscellaneous characters; it can vary by keyboard.586* For the US standard keyboard, the '/?' key587*/588Slash = 90,589/**590* Used for miscellaneous characters; it can vary by keyboard.591* For the US standard keyboard, the '`~' key592*/593Backquote = 91,594/**595* Used for miscellaneous characters; it can vary by keyboard.596* For the US standard keyboard, the '[{' key597*/598BracketLeft = 92,599/**600* Used for miscellaneous characters; it can vary by keyboard.601* For the US standard keyboard, the '\|' key602*/603Backslash = 93,604/**605* Used for miscellaneous characters; it can vary by keyboard.606* For the US standard keyboard, the ']}' key607*/608BracketRight = 94,609/**610* Used for miscellaneous characters; it can vary by keyboard.611* For the US standard keyboard, the ''"' key612*/613Quote = 95,614/**615* Used for miscellaneous characters; it can vary by keyboard.616*/617OEM_8 = 96,618/**619* Either the angle bracket key or the backslash key on the RT 102-key keyboard.620*/621IntlBackslash = 97,622Numpad0 = 98,// VK_NUMPAD0, 0x60, Numeric keypad 0 key623Numpad1 = 99,// VK_NUMPAD1, 0x61, Numeric keypad 1 key624Numpad2 = 100,// VK_NUMPAD2, 0x62, Numeric keypad 2 key625Numpad3 = 101,// VK_NUMPAD3, 0x63, Numeric keypad 3 key626Numpad4 = 102,// VK_NUMPAD4, 0x64, Numeric keypad 4 key627Numpad5 = 103,// VK_NUMPAD5, 0x65, Numeric keypad 5 key628Numpad6 = 104,// VK_NUMPAD6, 0x66, Numeric keypad 6 key629Numpad7 = 105,// VK_NUMPAD7, 0x67, Numeric keypad 7 key630Numpad8 = 106,// VK_NUMPAD8, 0x68, Numeric keypad 8 key631Numpad9 = 107,// VK_NUMPAD9, 0x69, Numeric keypad 9 key632NumpadMultiply = 108,// VK_MULTIPLY, 0x6A, Multiply key633NumpadAdd = 109,// VK_ADD, 0x6B, Add key634NUMPAD_SEPARATOR = 110,// VK_SEPARATOR, 0x6C, Separator key635NumpadSubtract = 111,// VK_SUBTRACT, 0x6D, Subtract key636NumpadDecimal = 112,// VK_DECIMAL, 0x6E, Decimal key637NumpadDivide = 113,// VK_DIVIDE, 0x6F,638/**639* Cover all key codes when IME is processing input.640*/641KEY_IN_COMPOSITION = 114,642ABNT_C1 = 115,// Brazilian (ABNT) Keyboard643ABNT_C2 = 116,// Brazilian (ABNT) Keyboard644AudioVolumeMute = 117,645AudioVolumeUp = 118,646AudioVolumeDown = 119,647BrowserSearch = 120,648BrowserHome = 121,649BrowserBack = 122,650BrowserForward = 123,651MediaTrackNext = 124,652MediaTrackPrevious = 125,653MediaStop = 126,654MediaPlayPause = 127,655LaunchMediaPlayer = 128,656LaunchMail = 129,657LaunchApp2 = 130,658/**659* VK_CLEAR, 0x0C, CLEAR key660*/661Clear = 131,662/**663* Placed last to cover the length of the enum.664* Please do not depend on this value!665*/666MAX_VALUE = 132667}668669export enum MarkerSeverity {670Hint = 1,671Info = 2,672Warning = 4,673Error = 8674}675676export enum MarkerTag {677Unnecessary = 1,678Deprecated = 2679}680681/**682* Position in the minimap to render the decoration.683*/684export enum MinimapPosition {685Inline = 1,686Gutter = 2687}688689/**690* Section header style.691*/692export enum MinimapSectionHeaderStyle {693Normal = 1,694Underlined = 2695}696697/**698* Type of hit element with the mouse in the editor.699*/700export enum MouseTargetType {701/**702* Mouse is on top of an unknown element.703*/704UNKNOWN = 0,705/**706* Mouse is on top of the textarea used for input.707*/708TEXTAREA = 1,709/**710* Mouse is on top of the glyph margin711*/712GUTTER_GLYPH_MARGIN = 2,713/**714* Mouse is on top of the line numbers715*/716GUTTER_LINE_NUMBERS = 3,717/**718* Mouse is on top of the line decorations719*/720GUTTER_LINE_DECORATIONS = 4,721/**722* Mouse is on top of the whitespace left in the gutter by a view zone.723*/724GUTTER_VIEW_ZONE = 5,725/**726* Mouse is on top of text in the content.727*/728CONTENT_TEXT = 6,729/**730* Mouse is on top of empty space in the content (e.g. after line text or below last line)731*/732CONTENT_EMPTY = 7,733/**734* Mouse is on top of a view zone in the content.735*/736CONTENT_VIEW_ZONE = 8,737/**738* Mouse is on top of a content widget.739*/740CONTENT_WIDGET = 9,741/**742* Mouse is on top of the decorations overview ruler.743*/744OVERVIEW_RULER = 10,745/**746* Mouse is on top of a scrollbar.747*/748SCROLLBAR = 11,749/**750* Mouse is on top of an overlay widget.751*/752OVERLAY_WIDGET = 12,753/**754* Mouse is outside of the editor.755*/756OUTSIDE_EDITOR = 13757}758759export enum NewSymbolNameTag {760AIGenerated = 1761}762763export enum NewSymbolNameTriggerKind {764Invoke = 0,765Automatic = 1766}767768/**769* A positioning preference for rendering overlay widgets.770*/771export enum OverlayWidgetPositionPreference {772/**773* Position the overlay widget in the top right corner774*/775TOP_RIGHT_CORNER = 0,776/**777* Position the overlay widget in the bottom right corner778*/779BOTTOM_RIGHT_CORNER = 1,780/**781* Position the overlay widget in the top center782*/783TOP_CENTER = 2784}785786/**787* Vertical Lane in the overview ruler of the editor.788*/789export enum OverviewRulerLane {790Left = 1,791Center = 2,792Right = 4,793Full = 7794}795796/**797* How a partial acceptance was triggered.798*/799export enum PartialAcceptTriggerKind {800Word = 0,801Line = 1,802Suggest = 2803}804805export enum PositionAffinity {806/**807* Prefers the left most position.808*/809Left = 0,810/**811* Prefers the right most position.812*/813Right = 1,814/**815* No preference.816*/817None = 2,818/**819* If the given position is on injected text, prefers the position left of it.820*/821LeftOfInjectedText = 3,822/**823* If the given position is on injected text, prefers the position right of it.824*/825RightOfInjectedText = 4826}827828export enum RenderLineNumbersType {829Off = 0,830On = 1,831Relative = 2,832Interval = 3,833Custom = 4834}835836export enum RenderMinimap {837None = 0,838Text = 1,839Blocks = 2840}841842export enum ScrollType {843Smooth = 0,844Immediate = 1845}846847export enum ScrollbarVisibility {848Auto = 1,849Hidden = 2,850Visible = 3851}852853/**854* The direction of a selection.855*/856export enum SelectionDirection {857/**858* The selection starts above where it ends.859*/860LTR = 0,861/**862* The selection starts below where it ends.863*/864RTL = 1865}866867export enum ShowLightbulbIconMode {868Off = 'off',869OnCode = 'onCode',870On = 'on'871}872873export enum SignatureHelpTriggerKind {874Invoke = 1,875TriggerCharacter = 2,876ContentChange = 3877}878879/**880* A symbol kind.881*/882export enum SymbolKind {883File = 0,884Module = 1,885Namespace = 2,886Package = 3,887Class = 4,888Method = 5,889Property = 6,890Field = 7,891Constructor = 8,892Enum = 9,893Interface = 10,894Function = 11,895Variable = 12,896Constant = 13,897String = 14,898Number = 15,899Boolean = 16,900Array = 17,901Object = 18,902Key = 19,903Null = 20,904EnumMember = 21,905Struct = 22,906Event = 23,907Operator = 24,908TypeParameter = 25909}910911export enum SymbolTag {912Deprecated = 1913}914915/**916* Text Direction for a decoration.917*/918export enum TextDirection {919LTR = 0,920RTL = 1921}922923/**924* The kind of animation in which the editor's cursor should be rendered.925*/926export enum TextEditorCursorBlinkingStyle {927/**928* Hidden929*/930Hidden = 0,931/**932* Blinking933*/934Blink = 1,935/**936* Blinking with smooth fading937*/938Smooth = 2,939/**940* Blinking with prolonged filled state and smooth fading941*/942Phase = 3,943/**944* Expand collapse animation on the y axis945*/946Expand = 4,947/**948* No-Blinking949*/950Solid = 5951}952953/**954* The style in which the editor's cursor should be rendered.955*/956export enum TextEditorCursorStyle {957/**958* As a vertical line (sitting between two characters).959*/960Line = 1,961/**962* As a block (sitting on top of a character).963*/964Block = 2,965/**966* As a horizontal line (sitting under a character).967*/968Underline = 3,969/**970* As a thin vertical line (sitting between two characters).971*/972LineThin = 4,973/**974* As an outlined block (sitting on top of a character).975*/976BlockOutline = 5,977/**978* As a thin horizontal line (sitting under a character).979*/980UnderlineThin = 6981}982983/**984* Describes the behavior of decorations when typing/editing near their edges.985* Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`986*/987export enum TrackedRangeStickiness {988AlwaysGrowsWhenTypingAtEdges = 0,989NeverGrowsWhenTypingAtEdges = 1,990GrowsOnlyWhenTypingBefore = 2,991GrowsOnlyWhenTypingAfter = 3992}993994/**995* Describes how to indent wrapped lines.996*/997export enum WrappingIndent {998/**999* No indentation => wrapped lines begin at column 1.1000*/1001None = 0,1002/**1003* Same => wrapped lines get the same indentation as the parent.1004*/1005Same = 1,1006/**1007* Indent => wrapped lines get +1 indentation toward the parent.1008*/1009Indent = 2,1010/**1011* DeepIndent => wrapped lines get +2 indentation toward the parent.1012*/1013DeepIndent = 31014}10151016