Explorar o código

Check monaco.d.ts in

Alexandru Dima %!s(int64=5) %!d(string=hai) anos
pai
achega
736ab4b0c4
Modificáronse 2 ficheiros con 800 adicións e 2 borrados
  1. 400 1
      monaco.d.ts
  2. 400 1
      website/playground/monaco.d.ts.txt

+ 400 - 1
monaco.d.ts

@@ -2477,6 +2477,15 @@ declare namespace monaco.editor {
         readonly reason: CursorChangeReason;
     }
 
+    export enum AccessibilitySupport {
+        /**
+         * This should be the browser case where it is not known if a screen reader is attached or no.
+         */
+        Unknown = 0,
+        Disabled = 1,
+        Enabled = 2
+    }
+
     /**
      * Configuration options for auto closing quotes and brackets
      */
@@ -2492,6 +2501,17 @@ declare namespace monaco.editor {
      */
     export type EditorAutoClosingOvertypeStrategy = 'always' | 'auto' | 'never';
 
+    /**
+     * Configuration options for auto indentation in the editor
+     */
+    export enum EditorAutoIndentStrategy {
+        None = 0,
+        Keep = 1,
+        Brackets = 2,
+        Advanced = 3,
+        Full = 4
+    }
+
     /**
      * Configuration options for the editor.
      */
@@ -3037,6 +3057,79 @@ declare namespace monaco.editor {
     export class ConfigurationChangedEvent {
     }
 
+    /**
+     * All computed editor options.
+     */
+    export interface IComputedEditorOptions {
+        get<T extends EditorOption>(id: T): FindComputedEditorOptionValueById<T>;
+    }
+
+    export interface IEditorOption<K1 extends EditorOption, V> {
+        readonly id: K1;
+        readonly name: string;
+        defaultValue: V;
+    }
+
+    /**
+     * The kind of animation in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorBlinkingStyle {
+        /**
+         * Hidden
+         */
+        Hidden = 0,
+        /**
+         * Blinking
+         */
+        Blink = 1,
+        /**
+         * Blinking with smooth fading
+         */
+        Smooth = 2,
+        /**
+         * Blinking with prolonged filled state and smooth fading
+         */
+        Phase = 3,
+        /**
+         * Expand collapse animation on the y axis
+         */
+        Expand = 4,
+        /**
+         * No-Blinking
+         */
+        Solid = 5
+    }
+
+    /**
+     * The style in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorStyle {
+        /**
+         * As a vertical line (sitting between two characters).
+         */
+        Line = 1,
+        /**
+         * As a block (sitting on top of a character).
+         */
+        Block = 2,
+        /**
+         * As a horizontal line (sitting under a character).
+         */
+        Underline = 3,
+        /**
+         * As a thin vertical line (sitting between two characters).
+         */
+        LineThin = 4,
+        /**
+         * As an outlined block (sitting on top of a character).
+         */
+        BlockOutline = 5,
+        /**
+         * As a thin horizontal line (sitting under a character).
+         */
+        UnderlineThin = 6
+    }
+
     /**
      * Configuration options for editor find widget
      */
@@ -3052,6 +3145,8 @@ declare namespace monaco.editor {
         addExtraSpaceOnTop?: boolean;
     }
 
+    export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
+
     export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
 
     /**
@@ -3071,6 +3166,8 @@ declare namespace monaco.editor {
         alternativeReferenceCommand?: string;
     }
 
+    export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
+
     /**
      * Configuration options for editor hover
      */
@@ -3092,6 +3189,8 @@ declare namespace monaco.editor {
         sticky?: boolean;
     }
 
+    export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
+
     /**
      * A description for the overview ruler position.
      */
@@ -3221,6 +3320,8 @@ declare namespace monaco.editor {
         enabled?: boolean;
     }
 
+    export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
+
     /**
      * Configuration options for editor minimap
      */
@@ -3256,6 +3357,8 @@ declare namespace monaco.editor {
         scale?: number;
     }
 
+    export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
+
     /**
      * Configuration options for parameter hints
      */
@@ -3272,6 +3375,8 @@ declare namespace monaco.editor {
         cycle?: boolean;
     }
 
+    export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>;
+
     /**
      * Configuration options for quick suggestions
      */
@@ -3281,8 +3386,23 @@ declare namespace monaco.editor {
         strings: boolean;
     }
 
+    export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
+
     export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
 
+    export enum RenderLineNumbersType {
+        Off = 0,
+        On = 1,
+        Relative = 2,
+        Interval = 3,
+        Custom = 4
+    }
+
+    export interface InternalEditorRenderLineNumbersOptions {
+        readonly renderType: RenderLineNumbersType;
+        readonly renderFn: ((lineNumber: number) => string) | null;
+    }
+
     /**
      * Configuration options for editor scrollbars
      */
@@ -3349,6 +3469,21 @@ declare namespace monaco.editor {
         horizontalSliderSize?: number;
     }
 
+    export interface InternalEditorScrollbarOptions {
+        readonly arrowSize: number;
+        readonly vertical: ScrollbarVisibility;
+        readonly horizontal: ScrollbarVisibility;
+        readonly useShadows: boolean;
+        readonly verticalHasArrows: boolean;
+        readonly horizontalHasArrows: boolean;
+        readonly handleMouseWheel: boolean;
+        readonly alwaysConsumeMouseWheel: boolean;
+        readonly horizontalScrollbarSize: number;
+        readonly horizontalSliderSize: number;
+        readonly verticalScrollbarSize: number;
+        readonly verticalSliderSize: number;
+    }
+
     /**
      * Configuration options for editor suggest widget
      */
@@ -3487,6 +3622,262 @@ declare namespace monaco.editor {
         showSnippets?: boolean;
     }
 
+    export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
+
+    /**
+     * Describes how to indent wrapped lines.
+     */
+    export enum WrappingIndent {
+        /**
+         * No indentation => wrapped lines begin at column 1.
+         */
+        None = 0,
+        /**
+         * Same => wrapped lines get the same indentation as the parent.
+         */
+        Same = 1,
+        /**
+         * Indent => wrapped lines get +1 indentation toward the parent.
+         */
+        Indent = 2,
+        /**
+         * DeepIndent => wrapped lines get +2 indentation toward the parent.
+         */
+        DeepIndent = 3
+    }
+
+    export interface EditorWrappingInfo {
+        readonly isDominatedByLongLines: boolean;
+        readonly isWordWrapMinified: boolean;
+        readonly isViewportWrapping: boolean;
+        readonly wrappingColumn: number;
+    }
+
+    export enum EditorOption {
+        acceptSuggestionOnCommitCharacter = 0,
+        acceptSuggestionOnEnter = 1,
+        accessibilitySupport = 2,
+        accessibilityPageSize = 3,
+        ariaLabel = 4,
+        autoClosingBrackets = 5,
+        autoClosingOvertype = 6,
+        autoClosingQuotes = 7,
+        autoIndent = 8,
+        automaticLayout = 9,
+        autoSurround = 10,
+        codeLens = 11,
+        colorDecorators = 12,
+        contextmenu = 13,
+        copyWithSyntaxHighlighting = 14,
+        cursorBlinking = 15,
+        cursorSmoothCaretAnimation = 16,
+        cursorStyle = 17,
+        cursorSurroundingLines = 18,
+        cursorSurroundingLinesStyle = 19,
+        cursorWidth = 20,
+        disableLayerHinting = 21,
+        disableMonospaceOptimizations = 22,
+        dragAndDrop = 23,
+        emptySelectionClipboard = 24,
+        extraEditorClassName = 25,
+        fastScrollSensitivity = 26,
+        find = 27,
+        fixedOverflowWidgets = 28,
+        folding = 29,
+        foldingStrategy = 30,
+        fontFamily = 31,
+        fontInfo = 32,
+        fontLigatures = 33,
+        fontSize = 34,
+        fontWeight = 35,
+        formatOnPaste = 36,
+        formatOnType = 37,
+        glyphMargin = 38,
+        gotoLocation = 39,
+        hideCursorInOverviewRuler = 40,
+        highlightActiveIndentGuide = 41,
+        hover = 42,
+        inDiffEditor = 43,
+        letterSpacing = 44,
+        lightbulb = 45,
+        lineDecorationsWidth = 46,
+        lineHeight = 47,
+        lineNumbers = 48,
+        lineNumbersMinChars = 49,
+        links = 50,
+        matchBrackets = 51,
+        minimap = 52,
+        mouseStyle = 53,
+        mouseWheelScrollSensitivity = 54,
+        mouseWheelZoom = 55,
+        multiCursorMergeOverlapping = 56,
+        multiCursorModifier = 57,
+        multiCursorPaste = 58,
+        occurrencesHighlight = 59,
+        overviewRulerBorder = 60,
+        overviewRulerLanes = 61,
+        parameterHints = 62,
+        quickSuggestions = 63,
+        quickSuggestionsDelay = 64,
+        readOnly = 65,
+        renderControlCharacters = 66,
+        renderIndentGuides = 67,
+        renderFinalNewline = 68,
+        renderLineHighlight = 69,
+        renderWhitespace = 70,
+        revealHorizontalRightPadding = 71,
+        roundedSelection = 72,
+        rulers = 73,
+        scrollbar = 74,
+        scrollBeyondLastColumn = 75,
+        scrollBeyondLastLine = 76,
+        selectionClipboard = 77,
+        selectionHighlight = 78,
+        selectOnLineNumbers = 79,
+        showFoldingControls = 80,
+        showUnused = 81,
+        snippetSuggestions = 82,
+        smoothScrolling = 83,
+        stopRenderingLineAfter = 84,
+        suggest = 85,
+        suggestFontSize = 86,
+        suggestLineHeight = 87,
+        suggestOnTriggerCharacters = 88,
+        suggestSelection = 89,
+        tabCompletion = 90,
+        useTabStops = 91,
+        wordSeparators = 92,
+        wordWrap = 93,
+        wordWrapBreakAfterCharacters = 94,
+        wordWrapBreakBeforeCharacters = 95,
+        wordWrapBreakObtrusiveCharacters = 96,
+        wordWrapColumn = 97,
+        wordWrapMinified = 98,
+        wrappingIndent = 99,
+        editorClassName = 100,
+        pixelRatio = 101,
+        tabFocusMode = 102,
+        layoutInfo = 103,
+        wrappingInfo = 104
+    }
+    export const EditorOptions: {
+        acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
+        acceptSuggestionOnEnter: IEditorOption<EditorOption.acceptSuggestionOnEnter, "on" | "off" | "smart">;
+        accessibilitySupport: IEditorOption<EditorOption.accessibilitySupport, AccessibilitySupport>;
+        accessibilityPageSize: IEditorOption<EditorOption.accessibilityPageSize, number>;
+        ariaLabel: IEditorOption<EditorOption.ariaLabel, string>;
+        autoClosingBrackets: IEditorOption<EditorOption.autoClosingBrackets, EditorAutoClosingStrategy>;
+        autoClosingOvertype: IEditorOption<EditorOption.autoClosingOvertype, EditorAutoClosingOvertypeStrategy>;
+        autoClosingQuotes: IEditorOption<EditorOption.autoClosingQuotes, EditorAutoClosingStrategy>;
+        autoIndent: IEditorOption<EditorOption.autoIndent, EditorAutoIndentStrategy>;
+        automaticLayout: IEditorOption<EditorOption.automaticLayout, boolean>;
+        autoSurround: IEditorOption<EditorOption.autoSurround, EditorAutoSurroundStrategy>;
+        codeLens: IEditorOption<EditorOption.codeLens, boolean>;
+        colorDecorators: IEditorOption<EditorOption.colorDecorators, boolean>;
+        contextmenu: IEditorOption<EditorOption.contextmenu, boolean>;
+        copyWithSyntaxHighlighting: IEditorOption<EditorOption.copyWithSyntaxHighlighting, boolean>;
+        cursorBlinking: IEditorOption<EditorOption.cursorBlinking, TextEditorCursorBlinkingStyle>;
+        cursorSmoothCaretAnimation: IEditorOption<EditorOption.cursorSmoothCaretAnimation, boolean>;
+        cursorStyle: IEditorOption<EditorOption.cursorStyle, TextEditorCursorStyle>;
+        cursorSurroundingLines: IEditorOption<EditorOption.cursorSurroundingLines, number>;
+        cursorSurroundingLinesStyle: IEditorOption<EditorOption.cursorSurroundingLinesStyle, "default" | "all">;
+        cursorWidth: IEditorOption<EditorOption.cursorWidth, number>;
+        disableLayerHinting: IEditorOption<EditorOption.disableLayerHinting, boolean>;
+        disableMonospaceOptimizations: IEditorOption<EditorOption.disableMonospaceOptimizations, boolean>;
+        dragAndDrop: IEditorOption<EditorOption.dragAndDrop, boolean>;
+        emptySelectionClipboard: IEditorOption<EditorOption.emptySelectionClipboard, boolean>;
+        extraEditorClassName: IEditorOption<EditorOption.extraEditorClassName, string>;
+        fastScrollSensitivity: IEditorOption<EditorOption.fastScrollSensitivity, number>;
+        find: IEditorOption<EditorOption.find, EditorFindOptions>;
+        fixedOverflowWidgets: IEditorOption<EditorOption.fixedOverflowWidgets, boolean>;
+        folding: IEditorOption<EditorOption.folding, boolean>;
+        foldingStrategy: IEditorOption<EditorOption.foldingStrategy, "auto" | "indentation">;
+        fontFamily: IEditorOption<EditorOption.fontFamily, string>;
+        fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>;
+        fontLigatures2: IEditorOption<EditorOption.fontLigatures, string>;
+        fontSize: IEditorOption<EditorOption.fontSize, number>;
+        fontWeight: IEditorOption<EditorOption.fontWeight, string>;
+        formatOnPaste: IEditorOption<EditorOption.formatOnPaste, boolean>;
+        formatOnType: IEditorOption<EditorOption.formatOnType, boolean>;
+        glyphMargin: IEditorOption<EditorOption.glyphMargin, boolean>;
+        gotoLocation: IEditorOption<EditorOption.gotoLocation, GoToLocationOptions>;
+        hideCursorInOverviewRuler: IEditorOption<EditorOption.hideCursorInOverviewRuler, boolean>;
+        highlightActiveIndentGuide: IEditorOption<EditorOption.highlightActiveIndentGuide, boolean>;
+        hover: IEditorOption<EditorOption.hover, EditorHoverOptions>;
+        inDiffEditor: IEditorOption<EditorOption.inDiffEditor, boolean>;
+        letterSpacing: IEditorOption<EditorOption.letterSpacing, number>;
+        lightbulb: IEditorOption<EditorOption.lightbulb, EditorLightbulbOptions>;
+        lineDecorationsWidth: IEditorOption<EditorOption.lineDecorationsWidth, string | number>;
+        lineHeight: IEditorOption<EditorOption.lineHeight, number>;
+        lineNumbers: IEditorOption<EditorOption.lineNumbers, InternalEditorRenderLineNumbersOptions>;
+        lineNumbersMinChars: IEditorOption<EditorOption.lineNumbersMinChars, number>;
+        links: IEditorOption<EditorOption.links, boolean>;
+        matchBrackets: IEditorOption<EditorOption.matchBrackets, "always" | "never" | "near">;
+        minimap: IEditorOption<EditorOption.minimap, EditorMinimapOptions>;
+        mouseStyle: IEditorOption<EditorOption.mouseStyle, "default" | "text" | "copy">;
+        mouseWheelScrollSensitivity: IEditorOption<EditorOption.mouseWheelScrollSensitivity, number>;
+        mouseWheelZoom: IEditorOption<EditorOption.mouseWheelZoom, boolean>;
+        multiCursorMergeOverlapping: IEditorOption<EditorOption.multiCursorMergeOverlapping, boolean>;
+        multiCursorModifier: IEditorOption<EditorOption.multiCursorModifier, "altKey" | "metaKey" | "ctrlKey">;
+        multiCursorPaste: IEditorOption<EditorOption.multiCursorPaste, "spread" | "full">;
+        occurrencesHighlight: IEditorOption<EditorOption.occurrencesHighlight, boolean>;
+        overviewRulerBorder: IEditorOption<EditorOption.overviewRulerBorder, boolean>;
+        overviewRulerLanes: IEditorOption<EditorOption.overviewRulerLanes, number>;
+        parameterHints: IEditorOption<EditorOption.parameterHints, InternalParameterHintOptions>;
+        quickSuggestions: IEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions>;
+        quickSuggestionsDelay: IEditorOption<EditorOption.quickSuggestionsDelay, number>;
+        readOnly: IEditorOption<EditorOption.readOnly, boolean>;
+        renderControlCharacters: IEditorOption<EditorOption.renderControlCharacters, boolean>;
+        renderIndentGuides: IEditorOption<EditorOption.renderIndentGuides, boolean>;
+        renderFinalNewline: IEditorOption<EditorOption.renderFinalNewline, boolean>;
+        renderLineHighlight: IEditorOption<EditorOption.renderLineHighlight, "all" | "line" | "none" | "gutter">;
+        renderWhitespace: IEditorOption<EditorOption.renderWhitespace, "all" | "none" | "boundary" | "selection">;
+        revealHorizontalRightPadding: IEditorOption<EditorOption.revealHorizontalRightPadding, number>;
+        roundedSelection: IEditorOption<EditorOption.roundedSelection, boolean>;
+        rulers: IEditorOption<EditorOption.rulers, {}>;
+        scrollbar: IEditorOption<EditorOption.scrollbar, InternalEditorScrollbarOptions>;
+        scrollBeyondLastColumn: IEditorOption<EditorOption.scrollBeyondLastColumn, number>;
+        scrollBeyondLastLine: IEditorOption<EditorOption.scrollBeyondLastLine, boolean>;
+        selectionClipboard: IEditorOption<EditorOption.selectionClipboard, boolean>;
+        selectionHighlight: IEditorOption<EditorOption.selectionHighlight, boolean>;
+        selectOnLineNumbers: IEditorOption<EditorOption.selectOnLineNumbers, boolean>;
+        showFoldingControls: IEditorOption<EditorOption.showFoldingControls, "always" | "mouseover">;
+        showUnused: IEditorOption<EditorOption.showUnused, boolean>;
+        snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "top" | "bottom" | "inline">;
+        smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
+        stopRenderingLineAfter: IEditorOption<EditorOption.stopRenderingLineAfter, number>;
+        suggest: IEditorOption<EditorOption.suggest, InternalSuggestOptions>;
+        suggestFontSize: IEditorOption<EditorOption.suggestFontSize, number>;
+        suggestLineHeight: IEditorOption<EditorOption.suggestLineHeight, number>;
+        suggestOnTriggerCharacters: IEditorOption<EditorOption.suggestOnTriggerCharacters, boolean>;
+        suggestSelection: IEditorOption<EditorOption.suggestSelection, "first" | "recentlyUsed" | "recentlyUsedByPrefix">;
+        tabCompletion: IEditorOption<EditorOption.tabCompletion, "on" | "off" | "onlySnippets">;
+        useTabStops: IEditorOption<EditorOption.useTabStops, boolean>;
+        wordSeparators: IEditorOption<EditorOption.wordSeparators, string>;
+        wordWrap: IEditorOption<EditorOption.wordWrap, "on" | "off" | "wordWrapColumn" | "bounded">;
+        wordWrapBreakAfterCharacters: IEditorOption<EditorOption.wordWrapBreakAfterCharacters, string>;
+        wordWrapBreakBeforeCharacters: IEditorOption<EditorOption.wordWrapBreakBeforeCharacters, string>;
+        wordWrapBreakObtrusiveCharacters: IEditorOption<EditorOption.wordWrapBreakObtrusiveCharacters, string>;
+        wordWrapColumn: IEditorOption<EditorOption.wordWrapColumn, number>;
+        wordWrapMinified: IEditorOption<EditorOption.wordWrapMinified, boolean>;
+        wrappingIndent: IEditorOption<EditorOption.wrappingIndent, WrappingIndent>;
+        editorClassName: IEditorOption<EditorOption.editorClassName, string>;
+        pixelRatio: IEditorOption<EditorOption.pixelRatio, number>;
+        tabFocusMode: IEditorOption<EditorOption.tabFocusMode, boolean>;
+        layoutInfo: IEditorOption<EditorOption.layoutInfo, EditorLayoutInfo>;
+        wrappingInfo: IEditorOption<EditorOption.wrappingInfo, EditorWrappingInfo>;
+    };
+
+    type EditorOptionsType = typeof EditorOptions;
+
+    type FindEditorOptionsKeyById<T extends EditorOption> = {
+        [K in keyof EditorOptionsType]: EditorOptionsType[K]['id'] extends T ? K : never;
+    }[keyof EditorOptionsType];
+
+    type ComputedEditorOptionValue<T extends IEditorOption<any, any>> = T extends IEditorOption<any, infer R> ? R : never;
+
+    export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>;
+
     /**
      * A view zone is a full horizontal rectangle that 'pushes' text down.
      * The editor reserves space for view zones when rendering.
@@ -3937,6 +4328,14 @@ declare namespace monaco.editor {
          * It is safe to call setModel(null) to simply detach the current model from the editor.
          */
         setModel(model: ITextModel | null): void;
+        /**
+         * Gets all the editor computed options.
+         */
+        getOptions(): IComputedEditorOptions;
+        /**
+         * Gets a specific editor option.
+         */
+        getOption<T extends EditorOption>(id: T): FindComputedEditorOptionValueById<T>;
         /**
          * Returns the editor's configuration (without any validation or defaults).
          */
@@ -5688,7 +6087,7 @@ declare namespace monaco.worker {
 
 }
 
-//dtsv=2
+//dtsv=3
 
 
 declare namespace monaco.languages.typescript {

+ 400 - 1
website/playground/monaco.d.ts.txt

@@ -2477,6 +2477,15 @@ declare namespace monaco.editor {
         readonly reason: CursorChangeReason;
     }
 
+    export enum AccessibilitySupport {
+        /**
+         * This should be the browser case where it is not known if a screen reader is attached or no.
+         */
+        Unknown = 0,
+        Disabled = 1,
+        Enabled = 2
+    }
+
     /**
      * Configuration options for auto closing quotes and brackets
      */
@@ -2492,6 +2501,17 @@ declare namespace monaco.editor {
      */
     export type EditorAutoClosingOvertypeStrategy = 'always' | 'auto' | 'never';
 
+    /**
+     * Configuration options for auto indentation in the editor
+     */
+    export enum EditorAutoIndentStrategy {
+        None = 0,
+        Keep = 1,
+        Brackets = 2,
+        Advanced = 3,
+        Full = 4
+    }
+
     /**
      * Configuration options for the editor.
      */
@@ -3037,6 +3057,79 @@ declare namespace monaco.editor {
     export class ConfigurationChangedEvent {
     }
 
+    /**
+     * All computed editor options.
+     */
+    export interface IComputedEditorOptions {
+        get<T extends EditorOption>(id: T): FindComputedEditorOptionValueById<T>;
+    }
+
+    export interface IEditorOption<K1 extends EditorOption, V> {
+        readonly id: K1;
+        readonly name: string;
+        defaultValue: V;
+    }
+
+    /**
+     * The kind of animation in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorBlinkingStyle {
+        /**
+         * Hidden
+         */
+        Hidden = 0,
+        /**
+         * Blinking
+         */
+        Blink = 1,
+        /**
+         * Blinking with smooth fading
+         */
+        Smooth = 2,
+        /**
+         * Blinking with prolonged filled state and smooth fading
+         */
+        Phase = 3,
+        /**
+         * Expand collapse animation on the y axis
+         */
+        Expand = 4,
+        /**
+         * No-Blinking
+         */
+        Solid = 5
+    }
+
+    /**
+     * The style in which the editor's cursor should be rendered.
+     */
+    export enum TextEditorCursorStyle {
+        /**
+         * As a vertical line (sitting between two characters).
+         */
+        Line = 1,
+        /**
+         * As a block (sitting on top of a character).
+         */
+        Block = 2,
+        /**
+         * As a horizontal line (sitting under a character).
+         */
+        Underline = 3,
+        /**
+         * As a thin vertical line (sitting between two characters).
+         */
+        LineThin = 4,
+        /**
+         * As an outlined block (sitting on top of a character).
+         */
+        BlockOutline = 5,
+        /**
+         * As a thin horizontal line (sitting under a character).
+         */
+        UnderlineThin = 6
+    }
+
     /**
      * Configuration options for editor find widget
      */
@@ -3052,6 +3145,8 @@ declare namespace monaco.editor {
         addExtraSpaceOnTop?: boolean;
     }
 
+    export type EditorFindOptions = Readonly<Required<IEditorFindOptions>>;
+
     export type GoToLocationValues = 'peek' | 'gotoAndPeek' | 'goto';
 
     /**
@@ -3071,6 +3166,8 @@ declare namespace monaco.editor {
         alternativeReferenceCommand?: string;
     }
 
+    export type GoToLocationOptions = Readonly<Required<IGotoLocationOptions>>;
+
     /**
      * Configuration options for editor hover
      */
@@ -3092,6 +3189,8 @@ declare namespace monaco.editor {
         sticky?: boolean;
     }
 
+    export type EditorHoverOptions = Readonly<Required<IEditorHoverOptions>>;
+
     /**
      * A description for the overview ruler position.
      */
@@ -3221,6 +3320,8 @@ declare namespace monaco.editor {
         enabled?: boolean;
     }
 
+    export type EditorLightbulbOptions = Readonly<Required<IEditorLightbulbOptions>>;
+
     /**
      * Configuration options for editor minimap
      */
@@ -3256,6 +3357,8 @@ declare namespace monaco.editor {
         scale?: number;
     }
 
+    export type EditorMinimapOptions = Readonly<Required<IEditorMinimapOptions>>;
+
     /**
      * Configuration options for parameter hints
      */
@@ -3272,6 +3375,8 @@ declare namespace monaco.editor {
         cycle?: boolean;
     }
 
+    export type InternalParameterHintOptions = Readonly<Required<IEditorParameterHintOptions>>;
+
     /**
      * Configuration options for quick suggestions
      */
@@ -3281,8 +3386,23 @@ declare namespace monaco.editor {
         strings: boolean;
     }
 
+    export type ValidQuickSuggestionsOptions = boolean | Readonly<Required<IQuickSuggestionsOptions>>;
+
     export type LineNumbersType = 'on' | 'off' | 'relative' | 'interval' | ((lineNumber: number) => string);
 
+    export enum RenderLineNumbersType {
+        Off = 0,
+        On = 1,
+        Relative = 2,
+        Interval = 3,
+        Custom = 4
+    }
+
+    export interface InternalEditorRenderLineNumbersOptions {
+        readonly renderType: RenderLineNumbersType;
+        readonly renderFn: ((lineNumber: number) => string) | null;
+    }
+
     /**
      * Configuration options for editor scrollbars
      */
@@ -3349,6 +3469,21 @@ declare namespace monaco.editor {
         horizontalSliderSize?: number;
     }
 
+    export interface InternalEditorScrollbarOptions {
+        readonly arrowSize: number;
+        readonly vertical: ScrollbarVisibility;
+        readonly horizontal: ScrollbarVisibility;
+        readonly useShadows: boolean;
+        readonly verticalHasArrows: boolean;
+        readonly horizontalHasArrows: boolean;
+        readonly handleMouseWheel: boolean;
+        readonly alwaysConsumeMouseWheel: boolean;
+        readonly horizontalScrollbarSize: number;
+        readonly horizontalSliderSize: number;
+        readonly verticalScrollbarSize: number;
+        readonly verticalSliderSize: number;
+    }
+
     /**
      * Configuration options for editor suggest widget
      */
@@ -3487,6 +3622,262 @@ declare namespace monaco.editor {
         showSnippets?: boolean;
     }
 
+    export type InternalSuggestOptions = Readonly<Required<ISuggestOptions>>;
+
+    /**
+     * Describes how to indent wrapped lines.
+     */
+    export enum WrappingIndent {
+        /**
+         * No indentation => wrapped lines begin at column 1.
+         */
+        None = 0,
+        /**
+         * Same => wrapped lines get the same indentation as the parent.
+         */
+        Same = 1,
+        /**
+         * Indent => wrapped lines get +1 indentation toward the parent.
+         */
+        Indent = 2,
+        /**
+         * DeepIndent => wrapped lines get +2 indentation toward the parent.
+         */
+        DeepIndent = 3
+    }
+
+    export interface EditorWrappingInfo {
+        readonly isDominatedByLongLines: boolean;
+        readonly isWordWrapMinified: boolean;
+        readonly isViewportWrapping: boolean;
+        readonly wrappingColumn: number;
+    }
+
+    export enum EditorOption {
+        acceptSuggestionOnCommitCharacter = 0,
+        acceptSuggestionOnEnter = 1,
+        accessibilitySupport = 2,
+        accessibilityPageSize = 3,
+        ariaLabel = 4,
+        autoClosingBrackets = 5,
+        autoClosingOvertype = 6,
+        autoClosingQuotes = 7,
+        autoIndent = 8,
+        automaticLayout = 9,
+        autoSurround = 10,
+        codeLens = 11,
+        colorDecorators = 12,
+        contextmenu = 13,
+        copyWithSyntaxHighlighting = 14,
+        cursorBlinking = 15,
+        cursorSmoothCaretAnimation = 16,
+        cursorStyle = 17,
+        cursorSurroundingLines = 18,
+        cursorSurroundingLinesStyle = 19,
+        cursorWidth = 20,
+        disableLayerHinting = 21,
+        disableMonospaceOptimizations = 22,
+        dragAndDrop = 23,
+        emptySelectionClipboard = 24,
+        extraEditorClassName = 25,
+        fastScrollSensitivity = 26,
+        find = 27,
+        fixedOverflowWidgets = 28,
+        folding = 29,
+        foldingStrategy = 30,
+        fontFamily = 31,
+        fontInfo = 32,
+        fontLigatures = 33,
+        fontSize = 34,
+        fontWeight = 35,
+        formatOnPaste = 36,
+        formatOnType = 37,
+        glyphMargin = 38,
+        gotoLocation = 39,
+        hideCursorInOverviewRuler = 40,
+        highlightActiveIndentGuide = 41,
+        hover = 42,
+        inDiffEditor = 43,
+        letterSpacing = 44,
+        lightbulb = 45,
+        lineDecorationsWidth = 46,
+        lineHeight = 47,
+        lineNumbers = 48,
+        lineNumbersMinChars = 49,
+        links = 50,
+        matchBrackets = 51,
+        minimap = 52,
+        mouseStyle = 53,
+        mouseWheelScrollSensitivity = 54,
+        mouseWheelZoom = 55,
+        multiCursorMergeOverlapping = 56,
+        multiCursorModifier = 57,
+        multiCursorPaste = 58,
+        occurrencesHighlight = 59,
+        overviewRulerBorder = 60,
+        overviewRulerLanes = 61,
+        parameterHints = 62,
+        quickSuggestions = 63,
+        quickSuggestionsDelay = 64,
+        readOnly = 65,
+        renderControlCharacters = 66,
+        renderIndentGuides = 67,
+        renderFinalNewline = 68,
+        renderLineHighlight = 69,
+        renderWhitespace = 70,
+        revealHorizontalRightPadding = 71,
+        roundedSelection = 72,
+        rulers = 73,
+        scrollbar = 74,
+        scrollBeyondLastColumn = 75,
+        scrollBeyondLastLine = 76,
+        selectionClipboard = 77,
+        selectionHighlight = 78,
+        selectOnLineNumbers = 79,
+        showFoldingControls = 80,
+        showUnused = 81,
+        snippetSuggestions = 82,
+        smoothScrolling = 83,
+        stopRenderingLineAfter = 84,
+        suggest = 85,
+        suggestFontSize = 86,
+        suggestLineHeight = 87,
+        suggestOnTriggerCharacters = 88,
+        suggestSelection = 89,
+        tabCompletion = 90,
+        useTabStops = 91,
+        wordSeparators = 92,
+        wordWrap = 93,
+        wordWrapBreakAfterCharacters = 94,
+        wordWrapBreakBeforeCharacters = 95,
+        wordWrapBreakObtrusiveCharacters = 96,
+        wordWrapColumn = 97,
+        wordWrapMinified = 98,
+        wrappingIndent = 99,
+        editorClassName = 100,
+        pixelRatio = 101,
+        tabFocusMode = 102,
+        layoutInfo = 103,
+        wrappingInfo = 104
+    }
+    export const EditorOptions: {
+        acceptSuggestionOnCommitCharacter: IEditorOption<EditorOption.acceptSuggestionOnCommitCharacter, boolean>;
+        acceptSuggestionOnEnter: IEditorOption<EditorOption.acceptSuggestionOnEnter, "on" | "off" | "smart">;
+        accessibilitySupport: IEditorOption<EditorOption.accessibilitySupport, AccessibilitySupport>;
+        accessibilityPageSize: IEditorOption<EditorOption.accessibilityPageSize, number>;
+        ariaLabel: IEditorOption<EditorOption.ariaLabel, string>;
+        autoClosingBrackets: IEditorOption<EditorOption.autoClosingBrackets, EditorAutoClosingStrategy>;
+        autoClosingOvertype: IEditorOption<EditorOption.autoClosingOvertype, EditorAutoClosingOvertypeStrategy>;
+        autoClosingQuotes: IEditorOption<EditorOption.autoClosingQuotes, EditorAutoClosingStrategy>;
+        autoIndent: IEditorOption<EditorOption.autoIndent, EditorAutoIndentStrategy>;
+        automaticLayout: IEditorOption<EditorOption.automaticLayout, boolean>;
+        autoSurround: IEditorOption<EditorOption.autoSurround, EditorAutoSurroundStrategy>;
+        codeLens: IEditorOption<EditorOption.codeLens, boolean>;
+        colorDecorators: IEditorOption<EditorOption.colorDecorators, boolean>;
+        contextmenu: IEditorOption<EditorOption.contextmenu, boolean>;
+        copyWithSyntaxHighlighting: IEditorOption<EditorOption.copyWithSyntaxHighlighting, boolean>;
+        cursorBlinking: IEditorOption<EditorOption.cursorBlinking, TextEditorCursorBlinkingStyle>;
+        cursorSmoothCaretAnimation: IEditorOption<EditorOption.cursorSmoothCaretAnimation, boolean>;
+        cursorStyle: IEditorOption<EditorOption.cursorStyle, TextEditorCursorStyle>;
+        cursorSurroundingLines: IEditorOption<EditorOption.cursorSurroundingLines, number>;
+        cursorSurroundingLinesStyle: IEditorOption<EditorOption.cursorSurroundingLinesStyle, "default" | "all">;
+        cursorWidth: IEditorOption<EditorOption.cursorWidth, number>;
+        disableLayerHinting: IEditorOption<EditorOption.disableLayerHinting, boolean>;
+        disableMonospaceOptimizations: IEditorOption<EditorOption.disableMonospaceOptimizations, boolean>;
+        dragAndDrop: IEditorOption<EditorOption.dragAndDrop, boolean>;
+        emptySelectionClipboard: IEditorOption<EditorOption.emptySelectionClipboard, boolean>;
+        extraEditorClassName: IEditorOption<EditorOption.extraEditorClassName, string>;
+        fastScrollSensitivity: IEditorOption<EditorOption.fastScrollSensitivity, number>;
+        find: IEditorOption<EditorOption.find, EditorFindOptions>;
+        fixedOverflowWidgets: IEditorOption<EditorOption.fixedOverflowWidgets, boolean>;
+        folding: IEditorOption<EditorOption.folding, boolean>;
+        foldingStrategy: IEditorOption<EditorOption.foldingStrategy, "auto" | "indentation">;
+        fontFamily: IEditorOption<EditorOption.fontFamily, string>;
+        fontInfo: IEditorOption<EditorOption.fontInfo, FontInfo>;
+        fontLigatures2: IEditorOption<EditorOption.fontLigatures, string>;
+        fontSize: IEditorOption<EditorOption.fontSize, number>;
+        fontWeight: IEditorOption<EditorOption.fontWeight, string>;
+        formatOnPaste: IEditorOption<EditorOption.formatOnPaste, boolean>;
+        formatOnType: IEditorOption<EditorOption.formatOnType, boolean>;
+        glyphMargin: IEditorOption<EditorOption.glyphMargin, boolean>;
+        gotoLocation: IEditorOption<EditorOption.gotoLocation, GoToLocationOptions>;
+        hideCursorInOverviewRuler: IEditorOption<EditorOption.hideCursorInOverviewRuler, boolean>;
+        highlightActiveIndentGuide: IEditorOption<EditorOption.highlightActiveIndentGuide, boolean>;
+        hover: IEditorOption<EditorOption.hover, EditorHoverOptions>;
+        inDiffEditor: IEditorOption<EditorOption.inDiffEditor, boolean>;
+        letterSpacing: IEditorOption<EditorOption.letterSpacing, number>;
+        lightbulb: IEditorOption<EditorOption.lightbulb, EditorLightbulbOptions>;
+        lineDecorationsWidth: IEditorOption<EditorOption.lineDecorationsWidth, string | number>;
+        lineHeight: IEditorOption<EditorOption.lineHeight, number>;
+        lineNumbers: IEditorOption<EditorOption.lineNumbers, InternalEditorRenderLineNumbersOptions>;
+        lineNumbersMinChars: IEditorOption<EditorOption.lineNumbersMinChars, number>;
+        links: IEditorOption<EditorOption.links, boolean>;
+        matchBrackets: IEditorOption<EditorOption.matchBrackets, "always" | "never" | "near">;
+        minimap: IEditorOption<EditorOption.minimap, EditorMinimapOptions>;
+        mouseStyle: IEditorOption<EditorOption.mouseStyle, "default" | "text" | "copy">;
+        mouseWheelScrollSensitivity: IEditorOption<EditorOption.mouseWheelScrollSensitivity, number>;
+        mouseWheelZoom: IEditorOption<EditorOption.mouseWheelZoom, boolean>;
+        multiCursorMergeOverlapping: IEditorOption<EditorOption.multiCursorMergeOverlapping, boolean>;
+        multiCursorModifier: IEditorOption<EditorOption.multiCursorModifier, "altKey" | "metaKey" | "ctrlKey">;
+        multiCursorPaste: IEditorOption<EditorOption.multiCursorPaste, "spread" | "full">;
+        occurrencesHighlight: IEditorOption<EditorOption.occurrencesHighlight, boolean>;
+        overviewRulerBorder: IEditorOption<EditorOption.overviewRulerBorder, boolean>;
+        overviewRulerLanes: IEditorOption<EditorOption.overviewRulerLanes, number>;
+        parameterHints: IEditorOption<EditorOption.parameterHints, InternalParameterHintOptions>;
+        quickSuggestions: IEditorOption<EditorOption.quickSuggestions, ValidQuickSuggestionsOptions>;
+        quickSuggestionsDelay: IEditorOption<EditorOption.quickSuggestionsDelay, number>;
+        readOnly: IEditorOption<EditorOption.readOnly, boolean>;
+        renderControlCharacters: IEditorOption<EditorOption.renderControlCharacters, boolean>;
+        renderIndentGuides: IEditorOption<EditorOption.renderIndentGuides, boolean>;
+        renderFinalNewline: IEditorOption<EditorOption.renderFinalNewline, boolean>;
+        renderLineHighlight: IEditorOption<EditorOption.renderLineHighlight, "all" | "line" | "none" | "gutter">;
+        renderWhitespace: IEditorOption<EditorOption.renderWhitespace, "all" | "none" | "boundary" | "selection">;
+        revealHorizontalRightPadding: IEditorOption<EditorOption.revealHorizontalRightPadding, number>;
+        roundedSelection: IEditorOption<EditorOption.roundedSelection, boolean>;
+        rulers: IEditorOption<EditorOption.rulers, {}>;
+        scrollbar: IEditorOption<EditorOption.scrollbar, InternalEditorScrollbarOptions>;
+        scrollBeyondLastColumn: IEditorOption<EditorOption.scrollBeyondLastColumn, number>;
+        scrollBeyondLastLine: IEditorOption<EditorOption.scrollBeyondLastLine, boolean>;
+        selectionClipboard: IEditorOption<EditorOption.selectionClipboard, boolean>;
+        selectionHighlight: IEditorOption<EditorOption.selectionHighlight, boolean>;
+        selectOnLineNumbers: IEditorOption<EditorOption.selectOnLineNumbers, boolean>;
+        showFoldingControls: IEditorOption<EditorOption.showFoldingControls, "always" | "mouseover">;
+        showUnused: IEditorOption<EditorOption.showUnused, boolean>;
+        snippetSuggestions: IEditorOption<EditorOption.snippetSuggestions, "none" | "top" | "bottom" | "inline">;
+        smoothScrolling: IEditorOption<EditorOption.smoothScrolling, boolean>;
+        stopRenderingLineAfter: IEditorOption<EditorOption.stopRenderingLineAfter, number>;
+        suggest: IEditorOption<EditorOption.suggest, InternalSuggestOptions>;
+        suggestFontSize: IEditorOption<EditorOption.suggestFontSize, number>;
+        suggestLineHeight: IEditorOption<EditorOption.suggestLineHeight, number>;
+        suggestOnTriggerCharacters: IEditorOption<EditorOption.suggestOnTriggerCharacters, boolean>;
+        suggestSelection: IEditorOption<EditorOption.suggestSelection, "first" | "recentlyUsed" | "recentlyUsedByPrefix">;
+        tabCompletion: IEditorOption<EditorOption.tabCompletion, "on" | "off" | "onlySnippets">;
+        useTabStops: IEditorOption<EditorOption.useTabStops, boolean>;
+        wordSeparators: IEditorOption<EditorOption.wordSeparators, string>;
+        wordWrap: IEditorOption<EditorOption.wordWrap, "on" | "off" | "wordWrapColumn" | "bounded">;
+        wordWrapBreakAfterCharacters: IEditorOption<EditorOption.wordWrapBreakAfterCharacters, string>;
+        wordWrapBreakBeforeCharacters: IEditorOption<EditorOption.wordWrapBreakBeforeCharacters, string>;
+        wordWrapBreakObtrusiveCharacters: IEditorOption<EditorOption.wordWrapBreakObtrusiveCharacters, string>;
+        wordWrapColumn: IEditorOption<EditorOption.wordWrapColumn, number>;
+        wordWrapMinified: IEditorOption<EditorOption.wordWrapMinified, boolean>;
+        wrappingIndent: IEditorOption<EditorOption.wrappingIndent, WrappingIndent>;
+        editorClassName: IEditorOption<EditorOption.editorClassName, string>;
+        pixelRatio: IEditorOption<EditorOption.pixelRatio, number>;
+        tabFocusMode: IEditorOption<EditorOption.tabFocusMode, boolean>;
+        layoutInfo: IEditorOption<EditorOption.layoutInfo, EditorLayoutInfo>;
+        wrappingInfo: IEditorOption<EditorOption.wrappingInfo, EditorWrappingInfo>;
+    };
+
+    type EditorOptionsType = typeof EditorOptions;
+
+    type FindEditorOptionsKeyById<T extends EditorOption> = {
+        [K in keyof EditorOptionsType]: EditorOptionsType[K]['id'] extends T ? K : never;
+    }[keyof EditorOptionsType];
+
+    type ComputedEditorOptionValue<T extends IEditorOption<any, any>> = T extends IEditorOption<any, infer R> ? R : never;
+
+    export type FindComputedEditorOptionValueById<T extends EditorOption> = NonNullable<ComputedEditorOptionValue<EditorOptionsType[FindEditorOptionsKeyById<T>]>>;
+
     /**
      * A view zone is a full horizontal rectangle that 'pushes' text down.
      * The editor reserves space for view zones when rendering.
@@ -3937,6 +4328,14 @@ declare namespace monaco.editor {
          * It is safe to call setModel(null) to simply detach the current model from the editor.
          */
         setModel(model: ITextModel | null): void;
+        /**
+         * Gets all the editor computed options.
+         */
+        getOptions(): IComputedEditorOptions;
+        /**
+         * Gets a specific editor option.
+         */
+        getOption<T extends EditorOption>(id: T): FindComputedEditorOptionValueById<T>;
         /**
          * Returns the editor's configuration (without any validation or defaults).
          */
@@ -5688,7 +6087,7 @@ declare namespace monaco.worker {
 
 }
 
-//dtsv=2
+//dtsv=3
 
 
 declare namespace monaco.languages.typescript {