Class DiffEditorOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public class DiffEditorOptions
    extends org.primefaces.shaded.json.JSONObject
    implements java.io.Serializable
    The options to create a Monaco Code diff editor instance.
    See Also:
    Serialized Form
    • Constructor Detail

      • DiffEditorOptions

        public DiffEditorOptions()
    • Method Detail

      • getComments

        public EditorCommentsOptions getComments()
        Returns:
        Control the behavior of comments in the editor.
      • setComments

        public DiffEditorOptions setComments​(EditorCommentsOptions comments)
        Parameters:
        comments - Control the behavior of comments in the editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFind

        public EditorFindOptions getFind()
        Returns:
        Control the behavior of the find widget.
      • setFind

        public DiffEditorOptions setFind​(EditorFindOptions find)
        Parameters:
        find - Control the behavior of the find widget.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getGuides

        public EditorGuidesOptions getGuides()
        Returns:
        Controls the behavior of editor guides.
      • setGuides

        public DiffEditorOptions setGuides​(EditorGuidesOptions guides)
        Parameters:
        guides - Controls the behavior of editor guides.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setHover

        public DiffEditorOptions setHover​(EditorHoverOptions hover)
        Parameters:
        hover - Configure the editor's hover.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getInlayHints

        public EditorInlayHintOptions getInlayHints()
        Returns:
        Control the behavior and rendering of the inline hints.
      • setInlayHints

        public DiffEditorOptions setInlayHints​(EditorInlayHintOptions inlayHints)
        Parameters:
        inlayHints - Control the behavior and rendering of the inline hints.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getInlineSuggest

        public EditorInlineSuggestOptions getInlineSuggest()
        Returns:
        Control the behavior and rendering of the inline completions.
      • setInlineSuggest

        public DiffEditorOptions setInlineSuggest​(EditorInlineSuggestOptions inlineSuggest)
        Parameters:
        inlineSuggest - Control the behavior and rendering of the inline completions.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLightbulb

        public EditorLightbulbOptions getLightbulb()
        Returns:
        Control the behavior and rendering of the code action lightbulb.
      • setLightbulb

        public DiffEditorOptions setLightbulb​(EditorLightbulbOptions lightbulb)
        Parameters:
        lightbulb - Control the behavior and rendering of the code action lightbulb.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMinimap

        public EditorMinimapOptions getMinimap()
        Returns:
        Control the behavior and rendering of the minimap.
      • setMinimap

        public DiffEditorOptions setMinimap​(EditorMinimapOptions minimap)
        Parameters:
        minimap - Control the behavior and rendering of the minimap.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getPadding

        public EditorPaddingOptions getPadding()
        Returns:
        Controls the spacing around the editor.
      • setPadding

        public DiffEditorOptions setPadding​(EditorPaddingOptions padding)
        Parameters:
        padding - Controls the spacing around the editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getParameterHints

        public EditorParameterHints getParameterHints()
        Returns:
        Parameter hint options.
      • setParameterHints

        public DiffEditorOptions setParameterHints​(EditorParameterHints parameterHints)
        Parameters:
        parameterHints - Parameter hint options.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getQuickSuggestions

        public EditorQuickSuggestionsOptions getQuickSuggestions()
        Returns:
        Enable quick suggestions (shadow suggestions) Defaults to true.
      • setQuickSuggestions

        public DiffEditorOptions setQuickSuggestions​(EditorQuickSuggestionsOptions quickSuggestions)
        Parameters:
        quickSuggestions - Enable quick suggestions (shadow suggestions) Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getScrollbar

        public EditorScrollbarOptions getScrollbar()
        Returns:
        Control the behavior and rendering of the scrollbars.
      • setScrollbar

        public DiffEditorOptions setScrollbar​(EditorScrollbarOptions scrollbar)
        Parameters:
        scrollbar - Control the behavior and rendering of the scrollbars.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setSmartSelect

        public DiffEditorOptions setSmartSelect​(EditorSmartSelectOptions smartSelect)
        Parameters:
        smartSelect - Smart select options.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setSuggest

        public DiffEditorOptions setSuggest​(EditorSuggestOptions suggest)
        Parameters:
        suggest - Suggest options.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getUnicodeHighlight

        public EditorUnicodeHighlightOptions getUnicodeHighlight()
        Returns:
        Defines how Unicode characters should be highlighted.
      • setUnicodeHighlight

        public DiffEditorOptions setUnicodeHighlight​(EditorUnicodeHighlightOptions unicodeHighlight)
        Parameters:
        unicodeHighlight - Defines how Unicode characters should be highlighted.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoClosingOvertype

        public java.lang.String getAutoClosingOvertype()
        Returns:
        Options for typing over closing quotes or brackets.
      • setAutoClosingOvertype

        public DiffEditorOptions setAutoClosingOvertype​(EAutoClosingOvertype autoClosingOvertype)
        Parameters:
        autoClosingOvertype - Options for typing over closing quotes or brackets.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoClosingOvertype

        public DiffEditorOptions setAutoClosingOvertype​(java.lang.String autoClosingOvertype)
        Parameters:
        autoClosingOvertype - Options for typing over closing quotes or brackets.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoIndent

        public java.lang.String getAutoIndent()
        Returns:
        Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults to advanced.
      • setAutoIndent

        public DiffEditorOptions setAutoIndent​(EAutoIndent autoIndent)
        Parameters:
        autoIndent - Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults to advanced.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoIndent

        public DiffEditorOptions setAutoIndent​(java.lang.String autoIndent)
        Parameters:
        autoIndent - Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines. Defaults to advanced.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAcceptSuggestionOnEnter

        public java.lang.String getAcceptSuggestionOnEnter()
        Returns:
        Accept suggestions on ENTER. Defaults to on.
      • setAcceptSuggestionOnEnter

        public DiffEditorOptions setAcceptSuggestionOnEnter​(EAcceptSuggestionOnEnter acceptSuggestionOnEnter)
        Parameters:
        acceptSuggestionOnEnter - Accept suggestions on ENTER. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAcceptSuggestionOnEnter

        public DiffEditorOptions setAcceptSuggestionOnEnter​(java.lang.String acceptSuggestionOnEnter)
        Parameters:
        acceptSuggestionOnEnter - Accept suggestions on ENTER. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAccessibilitySupport

        public java.lang.String getAccessibilitySupport()
        Returns:
        Configure the editor's accessibility support. Defaults to auto. It is best to leave this to auto.
      • setAccessibilitySupport

        public DiffEditorOptions setAccessibilitySupport​(EAccessibilitySupport accessibilitySupport)
        Parameters:
        accessibilitySupport - Configure the editor's accessibility support. Defaults to auto. It is best to leave this to auto.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAccessibilitySupport

        public DiffEditorOptions setAccessibilitySupport​(java.lang.String accessibilitySupport)
        Parameters:
        accessibilitySupport - Configure the editor's accessibility support. Defaults to auto. It is best to leave this to auto.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoClosingBrackets

        public java.lang.String getAutoClosingBrackets()
        Returns:
        Options for auto closing brackets. Defaults to language defined behavior.
      • setAutoClosingBrackets

        public DiffEditorOptions setAutoClosingBrackets​(EAutoClosingBrackets autoClosingBrackets)
        Parameters:
        autoClosingBrackets - Options for auto closing brackets. Defaults to language defined behavior.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoClosingBrackets

        public DiffEditorOptions setAutoClosingBrackets​(java.lang.String autoClosingBrackets)
        Parameters:
        autoClosingBrackets - Options for auto closing brackets. Defaults to language defined behavior.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoClosingDelete

        public java.lang.String getAutoClosingDelete()
        Returns:
        Options for pressing backspace near quotes or bracket pairs.
      • setAutoClosingDelete

        public DiffEditorOptions setAutoClosingDelete​(EAutoClosingEditStrategy autoClosingDelete)
        Parameters:
        autoClosingDelete - Options for pressing backspace near quotes or bracket pairs.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoClosingDelete

        public DiffEditorOptions setAutoClosingDelete​(java.lang.String autoClosingDelete)
        Parameters:
        autoClosingDelete - Options for pressing backspace near quotes or bracket pairs.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoClosingQuotes

        public java.lang.String getAutoClosingQuotes()
        Returns:
        Options for auto closing quotes. Defaults to language defined behavior.
      • setAutoClosingQuotes

        public DiffEditorOptions setAutoClosingQuotes​(EAutoClosingQuotes autoClosingQuotes)
        Parameters:
        autoClosingQuotes - Options for auto closing quotes. Defaults to language defined behavior.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoClosingQuotes

        public DiffEditorOptions setAutoClosingQuotes​(java.lang.String autoClosingQuotes)
        Parameters:
        autoClosingQuotes - Options for auto closing quotes. Defaults to language defined behavior.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoSurround

        public java.lang.String getAutoSurround()
        Returns:
        Options for auto surrounding. Defaults to always allowing auto surrounding.
      • setAutoSurround

        public DiffEditorOptions setAutoSurround​(EAutoSurround autoSurround)
        Parameters:
        autoSurround - Options for auto surrounding. Defaults to always allowing auto surrounding.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setAutoSurround

        public DiffEditorOptions setAutoSurround​(java.lang.String autoSurround)
        Parameters:
        autoSurround - Options for auto surrounding. Defaults to always allowing auto surrounding.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCursorBlinking

        public java.lang.String getCursorBlinking()
        Returns:
        Control the cursor animation style, possible values are blink, smooth, phase, expand and solid. Defaults to blink.
      • setCursorBlinking

        public DiffEditorOptions setCursorBlinking​(ECursorBlinking cursorBlinking)
        Parameters:
        cursorBlinking - Control the cursor animation style, possible values are blink, smooth, phase, expand and solid. Defaults to blink.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setCursorBlinking

        public DiffEditorOptions setCursorBlinking​(java.lang.String cursorBlinking)
        Parameters:
        cursorBlinking - Control the cursor animation style, possible values are blink, smooth, phase, expand and solid. Defaults to blink.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCursorStyle

        public java.lang.String getCursorStyle()
        Returns:
        Control the cursor style, either block or line. Defaults to line.
      • setCursorStyle

        public DiffEditorOptions setCursorStyle​(ECursorStyle cursorStyle)
        Parameters:
        cursorStyle - Control the cursor style, either block or line. Defaults to line.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setCursorStyle

        public DiffEditorOptions setCursorStyle​(java.lang.String cursorStyle)
        Parameters:
        cursorStyle - Control the cursor style, either block or line. Defaults to line.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCursorSurroundingLinesStyle

        public java.lang.String getCursorSurroundingLinesStyle()
        Returns:
        Controls when cursorSurroundingLines should be enforced Defaults to default, cursorSurroundingLines is not enforced when cursor position is changed by mouse.
      • setCursorSurroundingLinesStyle

        public DiffEditorOptions setCursorSurroundingLinesStyle​(ECursorSurroundingLinesStyle cursorSurroundingLinesStyle)
        Parameters:
        cursorSurroundingLinesStyle - Controls when cursorSurroundingLines should be enforced Defaults to default, cursorSurroundingLines is not enforced when cursor position is changed by mouse.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setCursorSurroundingLinesStyle

        public DiffEditorOptions setCursorSurroundingLinesStyle​(java.lang.String cursorSurroundingLinesStyle)
        Parameters:
        cursorSurroundingLinesStyle - Controls when cursorSurroundingLines should be enforced Defaults to default, cursorSurroundingLines is not enforced when cursor position is changed by mouse.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFoldingStrategy

        public java.lang.String getFoldingStrategy()
        Returns:
        Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
      • setFoldingStrategy

        public DiffEditorOptions setFoldingStrategy​(EFoldingStrategy foldingStrategy)
        Parameters:
        foldingStrategy - Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setFoldingStrategy

        public DiffEditorOptions setFoldingStrategy​(java.lang.String foldingStrategy)
        Parameters:
        foldingStrategy - Selects the folding strategy. 'auto' uses the strategies contributed for the current document, 'indentation' uses the indentation based folding strategy. Defaults to 'auto'.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFontWeight

        public java.lang.String getFontWeight()
        Returns:
        The font weight
      • setFontWeight

        public DiffEditorOptions setFontWeight​(EFontWeight fontWeight)
        Parameters:
        fontWeight - The font weight
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setFontWeight

        public DiffEditorOptions setFontWeight​(java.lang.String fontWeight)
        Parameters:
        fontWeight - The font weight
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLineNumbers

        public java.lang.String getLineNumbers()
        Returns:
        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 truey, line numbers will be rendered normally (equivalent of using an identity function). Otherwise, line numbers will not be rendered. Defaults to on.
      • setLineNumbers

        public DiffEditorOptions setLineNumbers​(ELineNumbers lineNumbers)
        Parameters:
        lineNumbers - 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 truey, line numbers will be rendered normally (equivalent of using an identity function). Otherwise, line numbers will not be rendered. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setLineNumbers

        public DiffEditorOptions setLineNumbers​(java.lang.String lineNumbers)
        Parameters:
        lineNumbers - 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 truey, line numbers will be rendered normally (equivalent of using an identity function). Otherwise, line numbers will not be rendered. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMatchBrackets

        public java.lang.String getMatchBrackets()
        Returns:
        Enable highlighting of matching brackets. Defaults to always.
      • setMatchBrackets

        public DiffEditorOptions setMatchBrackets​(EMatchBrackets matchBrackets)
        Parameters:
        matchBrackets - Enable highlighting of matching brackets. Defaults to always.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setMatchBrackets

        public DiffEditorOptions setMatchBrackets​(java.lang.String matchBrackets)
        Parameters:
        matchBrackets - Enable highlighting of matching brackets. Defaults to always.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMouseStyle

        public java.lang.String getMouseStyle()
        Returns:
        Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to text
      • setMouseStyle

        public DiffEditorOptions setMouseStyle​(EMouseStyle mouseStyle)
        Parameters:
        mouseStyle - Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to text
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setMouseStyle

        public DiffEditorOptions setMouseStyle​(java.lang.String mouseStyle)
        Parameters:
        mouseStyle - Control the mouse pointer style, either 'text' or 'default' or 'copy' Defaults to text
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMultiCursorModifier

        public java.lang.String getMultiCursorModifier()
        Returns:
        The modifier to be used to add multiple cursors with the mouse. Defaults to alt
      • setMultiCursorModifier

        public DiffEditorOptions setMultiCursorModifier​(EMultiCursorModifier multiCursorModifier)
        Parameters:
        multiCursorModifier - The modifier to be used to add multiple cursors with the mouse. Defaults to alt
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setMultiCursorModifier

        public DiffEditorOptions setMultiCursorModifier​(java.lang.String multiCursorModifier)
        Parameters:
        multiCursorModifier - The modifier to be used to add multiple cursors with the mouse. Defaults to alt
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMultiCursorPaste

        public java.lang.String getMultiCursorPaste()
        Returns:
        Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to spread.
      • setMultiCursorPaste

        public DiffEditorOptions setMultiCursorPaste​(EMultiCursorPaste multiCursorPaste)
        Parameters:
        multiCursorPaste - Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to spread.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setMultiCursorPaste

        public DiffEditorOptions setMultiCursorPaste​(java.lang.String multiCursorPaste)
        Parameters:
        multiCursorPaste - Configure the behaviour when pasting a text with the line count equal to the cursor count. Defaults to spread.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getPeekWidgetDefaultFocus

        public java.lang.String getPeekWidgetDefaultFocus()
        Returns:
        Controls whether to focus the inline editor in the peek widget by default. Defaults to false.
      • setPeekWidgetDefaultFocus

        public DiffEditorOptions setPeekWidgetDefaultFocus​(EPeekWidgetDefaultFocus peekWidgetDefaultFocus)
        Parameters:
        peekWidgetDefaultFocus - Controls whether to focus the inline editor in the peek widget by default. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setPeekWidgetDefaultFocus

        public DiffEditorOptions setPeekWidgetDefaultFocus​(java.lang.String peekWidgetDefaultFocus)
        Parameters:
        peekWidgetDefaultFocus - Controls whether to focus the inline editor in the peek widget by default. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRenderLineHighlight

        public java.lang.String getRenderLineHighlight()
        Returns:
        Enable rendering of current line highlight. Defaults to all.
      • setRenderLineHighlight

        public DiffEditorOptions setRenderLineHighlight​(ERenderLineHighlight renderLineHighlight)
        Parameters:
        renderLineHighlight - Enable rendering of current line highlight. Defaults to all.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setRenderLineHighlight

        public DiffEditorOptions setRenderLineHighlight​(java.lang.String renderLineHighlight)
        Parameters:
        renderLineHighlight - Enable rendering of current line highlight. Defaults to all.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRenderValidationDecorations

        public java.lang.String getRenderValidationDecorations()
        Returns:
        Should the editor render validation decorations. Defaults to editable.
      • setRenderValidationDecorations

        public DiffEditorOptions setRenderValidationDecorations​(ERenderValidationDecorations renderValidationDecorations)
        Parameters:
        renderValidationDecorations - Should the editor render validation decorations. Defaults to editable.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setRenderValidationDecorations

        public DiffEditorOptions setRenderValidationDecorations​(java.lang.String renderValidationDecorations)
        Parameters:
        renderValidationDecorations - Should the editor render validation decorations. Defaults to editable.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRenderWhitespace

        public java.lang.String getRenderWhitespace()
        Returns:
        Enable rendering of whitespace. Defaults to none.
      • setRenderWhitespace

        public DiffEditorOptions setRenderWhitespace​(ERenderWhitespace renderWhitespace)
        Parameters:
        renderWhitespace - Enable rendering of whitespace. Defaults to none.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setRenderWhitespace

        public DiffEditorOptions setRenderWhitespace​(java.lang.String renderWhitespace)
        Parameters:
        renderWhitespace - Enable rendering of whitespace. Defaults to none.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getShowFoldingControls

        public java.lang.String getShowFoldingControls()
        Returns:
        Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults to mouseover.
      • setShowFoldingControls

        public DiffEditorOptions setShowFoldingControls​(EShowFoldingControls showFoldingControls)
        Parameters:
        showFoldingControls - Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults to mouseover.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setShowFoldingControls

        public DiffEditorOptions setShowFoldingControls​(java.lang.String showFoldingControls)
        Parameters:
        showFoldingControls - Controls whether the fold actions in the gutter stay always visible or hide unless the mouse is over the gutter. Defaults to mouseover.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getSnippetSuggestions

        public java.lang.String getSnippetSuggestions()
        Returns:
        Enable snippet suggestions. Defaults to 'inline'.
      • setSnippetSuggestions

        public DiffEditorOptions setSnippetSuggestions​(ESnippetSuggestions snippetSuggestions)
        Parameters:
        snippetSuggestions - Enable snippet suggestions. Defaults to 'inline'.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setSnippetSuggestions

        public DiffEditorOptions setSnippetSuggestions​(java.lang.String snippetSuggestions)
        Parameters:
        snippetSuggestions - Enable snippet suggestions. Defaults to 'inline'.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getSuggestSelection

        public java.lang.String getSuggestSelection()
        Returns:
        Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false.
      • setSuggestSelection

        public DiffEditorOptions setSuggestSelection​(ESuggestSelection suggestSelection)
        Parameters:
        suggestSelection - Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setSuggestSelection

        public DiffEditorOptions setSuggestSelection​(java.lang.String suggestSelection)
        Parameters:
        suggestSelection - Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getTabCompletion

        public java.lang.String getTabCompletion()
        Returns:
        Enable tab completion.
      • setTabCompletion

        public DiffEditorOptions setTabCompletion​(ETabCompletion tabCompletion)
        Parameters:
        tabCompletion - Enable tab completion.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setTabCompletion

        public DiffEditorOptions setTabCompletion​(java.lang.String tabCompletion)
        Parameters:
        tabCompletion - Enable tab completion.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getUnusualLineTerminators

        public java.lang.String getUnusualLineTerminators()
        Returns:
        Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to prompt.
      • setUnusualLineTerminators

        public DiffEditorOptions setUnusualLineTerminators​(EUnusualLineTerminators unusualLineTerminators)
        Parameters:
        unusualLineTerminators - Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to prompt.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setUnusualLineTerminators

        public DiffEditorOptions setUnusualLineTerminators​(java.lang.String unusualLineTerminators)
        Parameters:
        unusualLineTerminators - Remove unusual line terminators like LINE SEPARATOR (LS), PARAGRAPH SEPARATOR (PS). Defaults to prompt.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrap

        public java.lang.String getWordWrap()
        Returns:
        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.
      • setWordWrap

        public DiffEditorOptions setWordWrap​(EWordWrap wordWrap)
        Parameters:
        wordWrap - 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.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setWordWrap

        public DiffEditorOptions setWordWrap​(java.lang.String wordWrap)
        Parameters:
        wordWrap - 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.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrapOverride1

        public java.lang.String getWordWrapOverride1()
        Returns:
        Override the wordWrap setting.
      • setWordWrapOverride1

        public DiffEditorOptions setWordWrapOverride1​(EWordWrapOverride1 wordWrapOverride1)
        Parameters:
        wordWrapOverride1 - Override the wordWrap setting.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setWordWrapOverride1

        public DiffEditorOptions setWordWrapOverride1​(java.lang.String wordWrapOverride1)
        Parameters:
        wordWrapOverride1 - Override the wordWrap setting.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrapOverride2

        public java.lang.String getWordWrapOverride2()
        Returns:
        Override the wordWrapOverride1 setting.
      • setWordWrapOverride2

        public DiffEditorOptions setWordWrapOverride2​(EWordWrapOverride2 wordWrapOverride2)
        Parameters:
        wordWrapOverride2 - Override the wordWrapOverride1 setting.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setWordWrapOverride2

        public DiffEditorOptions setWordWrapOverride2​(java.lang.String wordWrapOverride2)
        Parameters:
        wordWrapOverride2 - Override the wordWrapOverride1 setting.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWrappingIndent

        public java.lang.String getWrappingIndent()
        Returns:
        Control indentation of wrapped lines. Can be: none, same, indent or deepIndent. Defaults to same in vscode and to none in monaco-editor.
      • setWrappingIndent

        public DiffEditorOptions setWrappingIndent​(EWrappingIndent wrappingIndent)
        Parameters:
        wrappingIndent - Control indentation of wrapped lines. Can be: none, same, indent or deepIndent. Defaults to same in vscode and to none in monaco-editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setWrappingIndent

        public DiffEditorOptions setWrappingIndent​(java.lang.String wrappingIndent)
        Parameters:
        wrappingIndent - Control indentation of wrapped lines. Can be: none, same, indent or deepIndent. Defaults to same in vscode and to none in monaco-editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWrappingStrategy

        public java.lang.String getWrappingStrategy()
        Returns:
        Controls the wrapping strategy to use. Defaults to simple.
      • setWrappingStrategy

        public DiffEditorOptions setWrappingStrategy​(EWrappingStrategy wrappingStrategy)
        Parameters:
        wrappingStrategy - Controls the wrapping strategy to use. Defaults to simple.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setWrappingStrategy

        public DiffEditorOptions setWrappingStrategy​(java.lang.String wrappingStrategy)
        Parameters:
        wrappingStrategy - Controls the wrapping strategy to use. Defaults to simple.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRulers

        public org.primefaces.shaded.json.JSONArray getRulers()
        Returns:
        Render vertical lines at the specified columns. Defaults to empty array.
      • setRulers

        public DiffEditorOptions setRulers​(org.primefaces.shaded.json.JSONArray rulers)
        Parameters:
        rulers - Render vertical lines at the specified columns. Defaults to empty array.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setRulers

        public DiffEditorOptions setRulers​(java.util.List<EditorRulerOption> rulers)
        Parameters:
        rulers - Render vertical lines at the specified columns. Defaults to empty array.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isAcceptSuggestionOnCommitCharacter

        public java.lang.Boolean isAcceptSuggestionOnCommitCharacter()
        Returns:
        Accept suggestions on provider defined characters. Defaults to true.
      • setAcceptSuggestionOnCommitCharacter

        public DiffEditorOptions setAcceptSuggestionOnCommitCharacter​(java.lang.Boolean acceptSuggestionOnCommitCharacter)
        Parameters:
        acceptSuggestionOnCommitCharacter - Accept suggestions on provider defined characters. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isAutomaticLayout

        public java.lang.Boolean isAutomaticLayout()
        Returns:
        Enable that the editor will install an interval to check if its container dom node size has changed. Enabling this might have a severe performance impact. Defaults to false.
      • setAutomaticLayout

        public DiffEditorOptions setAutomaticLayout​(java.lang.Boolean automaticLayout)
        Parameters:
        automaticLayout - Enable that the editor will install an interval to check if its container dom node size has changed. Enabling this might have a severe performance impact. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isCodeLens

        public java.lang.Boolean isCodeLens()
        Returns:
        Show code lens Defaults to true.
      • setCodeLens

        public DiffEditorOptions setCodeLens​(java.lang.Boolean codeLens)
        Parameters:
        codeLens - Show code lens Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isColorDecorators

        public java.lang.Boolean isColorDecorators()
        Returns:
        Enable inline color decorators and color picker rendering.
      • setColorDecorators

        public DiffEditorOptions setColorDecorators​(java.lang.Boolean colorDecorators)
        Parameters:
        colorDecorators - Enable inline color decorators and color picker rendering.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isColumnSelection

        public java.lang.Boolean isColumnSelection()
        Returns:
        Enable that the selection with the mouse and keys is doing column selection. Defaults to false.
      • setColumnSelection

        public DiffEditorOptions setColumnSelection​(java.lang.Boolean columnSelection)
        Parameters:
        columnSelection - Enable that the selection with the mouse and keys is doing column selection. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isContextmenu

        public java.lang.Boolean isContextmenu()
        Returns:
        Enable custom contextmenu. Defaults to true.
      • setContextmenu

        public DiffEditorOptions setContextmenu​(java.lang.Boolean contextmenu)
        Parameters:
        contextmenu - Enable custom contextmenu. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isCopyWithSyntaxHighlighting

        public java.lang.Boolean isCopyWithSyntaxHighlighting()
        Returns:
        Syntax highlighting is copied.
      • setCopyWithSyntaxHighlighting

        public DiffEditorOptions setCopyWithSyntaxHighlighting​(java.lang.Boolean copyWithSyntaxHighlighting)
        Parameters:
        copyWithSyntaxHighlighting - Syntax highlighting is copied.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isCursorSmoothCaretAnimation

        public java.lang.Boolean isCursorSmoothCaretAnimation()
        Returns:
        Enable smooth caret animation. Defaults to false.
      • setCursorSmoothCaretAnimation

        public DiffEditorOptions setCursorSmoothCaretAnimation​(java.lang.Boolean cursorSmoothCaretAnimation)
        Parameters:
        cursorSmoothCaretAnimation - Enable smooth caret animation. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isDefinitionLinkOpensInPeek

        public java.lang.Boolean isDefinitionLinkOpensInPeek()
        Returns:
        Controls whether the definition link opens element in the peek widget. Defaults to false.
      • setDefinitionLinkOpensInPeek

        public DiffEditorOptions setDefinitionLinkOpensInPeek​(java.lang.Boolean definitionLinkOpensInPeek)
        Parameters:
        definitionLinkOpensInPeek - Controls whether the definition link opens element in the peek widget. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isDisableLayerHinting

        public java.lang.Boolean isDisableLayerHinting()
        Returns:
        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.
      • setDisableLayerHinting

        public DiffEditorOptions setDisableLayerHinting​(java.lang.Boolean disableLayerHinting)
        Parameters:
        disableLayerHinting - 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.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isDisableMonospaceOptimizations

        public java.lang.Boolean isDisableMonospaceOptimizations()
        Returns:
        Disable the optimizations for monospace fonts. Defaults to false.
      • setDisableMonospaceOptimizations

        public DiffEditorOptions setDisableMonospaceOptimizations​(java.lang.Boolean disableMonospaceOptimizations)
        Parameters:
        disableMonospaceOptimizations - Disable the optimizations for monospace fonts. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isDragAndDrop

        public java.lang.Boolean isDragAndDrop()
        Returns:
        Controls if the editor should allow to move selections via drag and drop. Defaults to false.
      • setDragAndDrop

        public DiffEditorOptions setDragAndDrop​(java.lang.Boolean dragAndDrop)
        Parameters:
        dragAndDrop - Controls if the editor should allow to move selections via drag and drop. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isEmptySelectionClipboard

        public java.lang.Boolean isEmptySelectionClipboard()
        Returns:
        Copying without a selection copies the current line
      • setEmptySelectionClipboard

        public DiffEditorOptions setEmptySelectionClipboard​(java.lang.Boolean emptySelectionClipboard)
        Parameters:
        emptySelectionClipboard - Copying without a selection copies the current line
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFixedOverflowWidgets

        public java.lang.Boolean isFixedOverflowWidgets()
        Returns:
        Display overflow widgets as fixed. Defaults to false
      • setFixedOverflowWidgets

        public DiffEditorOptions setFixedOverflowWidgets​(java.lang.Boolean fixedOverflowWidgets)
        Parameters:
        fixedOverflowWidgets - Display overflow widgets as fixed. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFolding

        public java.lang.Boolean isFolding()
        Returns:
        Enable code folding. Defaults to true.
      • setFolding

        public DiffEditorOptions setFolding​(java.lang.Boolean folding)
        Parameters:
        folding - Enable code folding. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFoldingHighlight

        public java.lang.Boolean isFoldingHighlight()
        Returns:
        Enable highlight for folded regions. Defaults to true.
      • setFoldingHighlight

        public DiffEditorOptions setFoldingHighlight​(java.lang.Boolean foldingHighlight)
        Parameters:
        foldingHighlight - Enable highlight for folded regions. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFoldingImportsByDefault

        public java.lang.Boolean isFoldingImportsByDefault()
        Returns:
        Auto fold imports folding regions. Defaults to true.
      • setFoldingImportsByDefault

        public DiffEditorOptions setFoldingImportsByDefault​(java.lang.Boolean foldingImportsByDefault)
        Parameters:
        foldingImportsByDefault - Auto fold imports folding regions. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFontLigatures

        public java.lang.Boolean isFontLigatures()
        Returns:
        Enable font ligatures. Defaults to false
      • setFontLigatures

        public DiffEditorOptions setFontLigatures​(java.lang.Boolean fontLigatures)
        Parameters:
        fontLigatures - Enable font ligatures. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFormatOnPaste

        public java.lang.Boolean isFormatOnPaste()
        Returns:
        Enable format on paste. Defaults to false
      • setFormatOnPaste

        public DiffEditorOptions setFormatOnPaste​(java.lang.Boolean formatOnPaste)
        Parameters:
        formatOnPaste - Enable format on paste. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isFormatOnType

        public java.lang.Boolean isFormatOnType()
        Returns:
        Enable format on type. Defaults to false
      • setFormatOnType

        public DiffEditorOptions setFormatOnType​(java.lang.Boolean formatOnType)
        Parameters:
        formatOnType - Enable format on type. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isGlyphMargin

        public java.lang.Boolean isGlyphMargin()
        Returns:
        Enable the rendering of the glyph margin. Defaults to true. in vscode and to false in monaco-editor
      • setGlyphMargin

        public DiffEditorOptions setGlyphMargin​(java.lang.Boolean glyphMargin)
        Parameters:
        glyphMargin - Enable the rendering of the glyph margin. Defaults to true. in vscode and to false in monaco-editor
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isHideCursorInOverviewRuler

        public java.lang.Boolean isHideCursorInOverviewRuler()
        Returns:
        Should the cursor be hidden in the overview ruler. Defaults to false
      • setHideCursorInOverviewRuler

        public DiffEditorOptions setHideCursorInOverviewRuler​(java.lang.Boolean hideCursorInOverviewRuler)
        Parameters:
        hideCursorInOverviewRuler - Should the cursor be hidden in the overview ruler. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isLargeFileOptimizations

        public java.lang.Boolean isLargeFileOptimizations()
        Returns:
        Special handling for large files to disable certain memory intensive features. Defaults to true.
      • setLargeFileOptimizations

        public DiffEditorOptions setLargeFileOptimizations​(java.lang.Boolean largeFileOptimizations)
        Parameters:
        largeFileOptimizations - Special handling for large files to disable certain memory intensive features. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isLinkedEditing

        public java.lang.Boolean isLinkedEditing()
        Returns:
        Enables linked editing. Defaults to false.
      • setLinkedEditing

        public DiffEditorOptions setLinkedEditing​(java.lang.Boolean linkedEditing)
        Parameters:
        linkedEditing - Enables linked editing. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isLinks

        public java.lang.Boolean isLinks()
        Returns:
        Enable detecting links and making them clickable. Defaults to true.
      • setLinks

        public DiffEditorOptions setLinks​(java.lang.Boolean links)
        Parameters:
        links - Enable detecting links and making them clickable. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isMouseWheelZoom

        public java.lang.Boolean isMouseWheelZoom()
        Returns:
        Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults to false
      • setMouseWheelZoom

        public DiffEditorOptions setMouseWheelZoom​(java.lang.Boolean mouseWheelZoom)
        Parameters:
        mouseWheelZoom - Zoom the font in the editor when using the mouse wheel in combination with holding Ctrl. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isMultiCursorMergeOverlapping

        public java.lang.Boolean isMultiCursorMergeOverlapping()
        Returns:
        Merge overlapping selections. Defaults to true.
      • setMultiCursorMergeOverlapping

        public DiffEditorOptions setMultiCursorMergeOverlapping​(java.lang.Boolean multiCursorMergeOverlapping)
        Parameters:
        multiCursorMergeOverlapping - Merge overlapping selections. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isOccurrencesHighlight

        public java.lang.Boolean isOccurrencesHighlight()
        Returns:
        Enable semantic occurrences highlight. Defaults to true.
      • setOccurrencesHighlight

        public DiffEditorOptions setOccurrencesHighlight​(java.lang.Boolean occurrencesHighlight)
        Parameters:
        occurrencesHighlight - Enable semantic occurrences highlight. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isOverviewRulerBorder

        public java.lang.Boolean isOverviewRulerBorder()
        Returns:
        Controls if a border should be drawn around the overview ruler. Defaults to true.
      • setOverviewRulerBorder

        public DiffEditorOptions setOverviewRulerBorder​(java.lang.Boolean overviewRulerBorder)
        Parameters:
        overviewRulerBorder - Controls if a border should be drawn around the overview ruler. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isReadOnly

        public java.lang.Boolean isReadOnly()
        Returns:
        Should the editor be read only. Defaults to false
      • setReadOnly

        public DiffEditorOptions setReadOnly​(java.lang.Boolean readOnly)
        Parameters:
        readOnly - Should the editor be read only. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenameOnType

        @Deprecated
        public java.lang.Boolean isRenameOnType()
        Deprecated.
        Returns:
        Deprecated, use linkedEditing instead.
      • setRenameOnType

        @Deprecated
        public DiffEditorOptions setRenameOnType​(java.lang.Boolean renameOnType)
        Deprecated.
        Parameters:
        renameOnType - Deprecated, use linkedEditing instead.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderControlCharacters

        public java.lang.Boolean isRenderControlCharacters()
        Returns:
        Enable rendering of control characters. Defaults to true.
      • setRenderControlCharacters

        public DiffEditorOptions setRenderControlCharacters​(java.lang.Boolean renderControlCharacters)
        Parameters:
        renderControlCharacters - Enable rendering of control characters. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderFinalNewline

        public java.lang.Boolean isRenderFinalNewline()
        Returns:
        Render last line number when the file ends with a newline. Defaults to true.
      • setRenderFinalNewline

        public DiffEditorOptions setRenderFinalNewline​(java.lang.Boolean renderFinalNewline)
        Parameters:
        renderFinalNewline - Render last line number when the file ends with a newline. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderLineHighlightOnlyWhenFocus

        public java.lang.Boolean isRenderLineHighlightOnlyWhenFocus()
        Returns:
        Control if the current line highlight should be rendered only the editor is focused. Defaults to false.
      • setRenderLineHighlightOnlyWhenFocus

        public DiffEditorOptions setRenderLineHighlightOnlyWhenFocus​(java.lang.Boolean renderLineHighlightOnlyWhenFocus)
        Parameters:
        renderLineHighlightOnlyWhenFocus - Control if the current line highlight should be rendered only the editor is focused. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRoundedSelection

        public java.lang.Boolean isRoundedSelection()
        Returns:
        Render the editor selection with rounded borders. Defaults to true.
      • setRoundedSelection

        public DiffEditorOptions setRoundedSelection​(java.lang.Boolean roundedSelection)
        Parameters:
        roundedSelection - Render the editor selection with rounded borders. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isScrollBeyondLastLine

        public java.lang.Boolean isScrollBeyondLastLine()
        Returns:
        Enable that scrolling can go one screen size after the last line. Defaults to true.
      • setScrollBeyondLastLine

        public DiffEditorOptions setScrollBeyondLastLine​(java.lang.Boolean scrollBeyondLastLine)
        Parameters:
        scrollBeyondLastLine - Enable that scrolling can go one screen size after the last line. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isScrollPredominantAxis

        public java.lang.Boolean isScrollPredominantAxis()
        Returns:
        Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad. Defaults to true.}
      • setScrollPredominantAxis

        public DiffEditorOptions setScrollPredominantAxis​(java.lang.Boolean scrollPredominantAxis)
        Parameters:
        scrollPredominantAxis - Enable that the editor scrolls only the predominant axis. Prevents horizontal drift when scrolling vertically on a trackpad. Defaults to true.}
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isSelectOnLineNumbers

        public java.lang.Boolean isSelectOnLineNumbers()
        Returns:
        Should the corresponding line be selected when clicking on the line number? Defaults to true.
      • setSelectOnLineNumbers

        public DiffEditorOptions setSelectOnLineNumbers​(java.lang.Boolean selectOnLineNumbers)
        Parameters:
        selectOnLineNumbers - Should the corresponding line be selected when clicking on the line number? Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isSelectionClipboard

        public java.lang.Boolean isSelectionClipboard()
        Returns:
        Enable Linux primary clipboard. Defaults to true.
      • setSelectionClipboard

        public DiffEditorOptions setSelectionClipboard​(java.lang.Boolean selectionClipboard)
        Parameters:
        selectionClipboard - Enable Linux primary clipboard. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isSelectionHighlight

        public java.lang.Boolean isSelectionHighlight()
        Returns:
        Enable selection highlight. Defaults to true.
      • setSelectionHighlight

        public DiffEditorOptions setSelectionHighlight​(java.lang.Boolean selectionHighlight)
        Parameters:
        selectionHighlight - Enable selection highlight. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isShowDeprecated

        public java.lang.Boolean isShowDeprecated()
        Returns:
        Controls strikethrough deprecated variables.
      • setShowDeprecated

        public DiffEditorOptions setShowDeprecated​(java.lang.Boolean showDeprecated)
        Parameters:
        showDeprecated - Controls strikethrough deprecated variables.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isShowUnused

        public java.lang.Boolean isShowUnused()
        Returns:
        Controls fading out of unused variables
      • setShowUnused

        public DiffEditorOptions setShowUnused​(java.lang.Boolean showUnused)
        Parameters:
        showUnused - Controls fading out of unused variables
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isSmoothScrolling

        public java.lang.Boolean isSmoothScrolling()
        Returns:
        Enable that the editor animates scrolling to a position. Defaults to false
      • setSmoothScrolling

        public DiffEditorOptions setSmoothScrolling​(java.lang.Boolean smoothScrolling)
        Parameters:
        smoothScrolling - Enable that the editor animates scrolling to a position. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isStablePeek

        public java.lang.Boolean isStablePeek()
        Returns:
        Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false
      • setStablePeek

        public DiffEditorOptions setStablePeek​(java.lang.Boolean stablePeek)
        Parameters:
        stablePeek - Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isSuggestOnTriggerCharacters

        public java.lang.Boolean isSuggestOnTriggerCharacters()
        Returns:
        Enable the suggestion box to pop-up on trigger characters. Defaults to true.
      • setSuggestOnTriggerCharacters

        public DiffEditorOptions setSuggestOnTriggerCharacters​(java.lang.Boolean suggestOnTriggerCharacters)
        Parameters:
        suggestOnTriggerCharacters - Enable the suggestion box to pop-up on trigger characters. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isUnfoldOnClickAfterEndOfLine

        public java.lang.Boolean isUnfoldOnClickAfterEndOfLine()
        Returns:
        Controls whether clicking on the empty content after a folded line will unfold the line. Defaults to false.
      • setUnfoldOnClickAfterEndOfLine

        public DiffEditorOptions setUnfoldOnClickAfterEndOfLine​(java.lang.Boolean unfoldOnClickAfterEndOfLine)
        Parameters:
        unfoldOnClickAfterEndOfLine - Controls whether clicking on the empty content after a folded line will unfold the line. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isUseShadowDOM

        public java.lang.Boolean isUseShadowDOM()
        Returns:
        Control if the editor should use shadow DOM.
      • setUseShadowDOM

        public DiffEditorOptions setUseShadowDOM​(java.lang.Boolean useShadowDOM)
        Parameters:
        useShadowDOM - Control if the editor should use shadow DOM.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isUseTabStops

        public java.lang.Boolean isUseTabStops()
        Returns:
        Inserting and deleting whitespace follows tab stops.
      • setUseTabStops

        public DiffEditorOptions setUseTabStops​(java.lang.Boolean useTabStops)
        Parameters:
        useTabStops - Inserting and deleting whitespace follows tab stops.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isWordWrapMinified

        public java.lang.Boolean isWordWrapMinified()
        Returns:
        Force word wrapping when the text appears to be of a minified/generated file. Defaults to true.
      • setWordWrapMinified

        public DiffEditorOptions setWordWrapMinified​(java.lang.Boolean wordWrapMinified)
        Parameters:
        wordWrapMinified - Force word wrapping when the text appears to be of a minified/generated file. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAccessibilityPageSize

        public java.lang.Number getAccessibilityPageSize()
        Returns:
        Controls the number of lines in the editor that can be read out by a screen reader.
      • setAccessibilityPageSize

        public DiffEditorOptions setAccessibilityPageSize​(java.lang.Number accessibilityPageSize)
        Parameters:
        accessibilityPageSize - Controls the number of lines in the editor that can be read out by a screen reader.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCodeActionsOnSaveTimeout

        public java.lang.Number getCodeActionsOnSaveTimeout()
        Returns:
        Timeout for running code actions on save.
      • setCodeActionsOnSaveTimeout

        public DiffEditorOptions setCodeActionsOnSaveTimeout​(java.lang.Number codeActionsOnSaveTimeout)
        Parameters:
        codeActionsOnSaveTimeout - Timeout for running code actions on save.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCodeLensFontSize

        public java.lang.Number getCodeLensFontSize()
        Returns:
        Code lens font size. Default to 90% of the editor font size.
      • setCodeLensFontSize

        public DiffEditorOptions setCodeLensFontSize​(java.lang.Number codeLensFontSize)
        Parameters:
        codeLensFontSize - Code lens font size. Default to 90% of the editor font size.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCursorSurroundingLines

        public java.lang.Number getCursorSurroundingLines()
        Returns:
        Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to 0.
      • setCursorSurroundingLines

        public DiffEditorOptions setCursorSurroundingLines​(java.lang.Number cursorSurroundingLines)
        Parameters:
        cursorSurroundingLines - Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to 0.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCursorWidth

        public java.lang.Number getCursorWidth()
        Returns:
        Control the width of the cursor when cursorStyle is set to line
      • setCursorWidth

        public DiffEditorOptions setCursorWidth​(java.lang.Number cursorWidth)
        Parameters:
        cursorWidth - Control the width of the cursor when cursorStyle is set to line
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFastScrollSensitivity

        public java.lang.Number getFastScrollSensitivity()
        Returns:
        Fast scrolling multiplier speed when pressing Alt Defaults to 5.
      • setFastScrollSensitivity

        public DiffEditorOptions setFastScrollSensitivity​(java.lang.Number fastScrollSensitivity)
        Parameters:
        fastScrollSensitivity - Fast scrolling multiplier speed when pressing Alt Defaults to 5.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFontSize

        public java.lang.Number getFontSize()
        Returns:
        The font size
      • setFontSize

        public DiffEditorOptions setFontSize​(java.lang.Number fontSize)
        Parameters:
        fontSize - The font size
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isInDiffEditor

        public java.lang.Boolean isInDiffEditor()
        Returns:
        This editor is used inside a diff editor.
      • setInDiffEditor

        public DiffEditorOptions setInDiffEditor​(java.lang.Boolean inDiffEditor)
        Parameters:
        inDiffEditor - This editor is used inside a diff editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isStickyTabStops

        public java.lang.Boolean isStickyTabStops()
        Returns:
        Emulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.
      • setStickyTabStops

        public DiffEditorOptions setStickyTabStops​(java.lang.Boolean stickyTabStops)
        Parameters:
        stickyTabStops - Emulate selection behaviour of tab characters when using spaces for indentation. This means selection will stick to tab stops.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLetterSpacing

        public java.lang.Number getLetterSpacing()
        Returns:
        The letter spacing
      • setLetterSpacing

        public DiffEditorOptions setLetterSpacing​(java.lang.Number letterSpacing)
        Parameters:
        letterSpacing - The letter spacing
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLineHeight

        public java.lang.Number getLineHeight()
        Returns:
        The line height
      • setLineHeight

        public DiffEditorOptions setLineHeight​(java.lang.Number lineHeight)
        Parameters:
        lineHeight - The line height
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLineNumbersMinChars

        public java.lang.Number getLineNumbersMinChars()
        Returns:
        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 truey, line numbers will be rendered normally (equivalent of using an identity function). Otherwise, line numbers will not be rendered. Defaults to on.
      • setLineNumbersMinChars

        public DiffEditorOptions setLineNumbersMinChars​(java.lang.Number lineNumbersMinChars)
        Parameters:
        lineNumbersMinChars - 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 truey, line numbers will be rendered normally (equivalent of using an identity function). Otherwise, line numbers will not be rendered. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMouseWheelScrollSensitivity

        public java.lang.Number getMouseWheelScrollSensitivity()
        Returns:
        A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events. Defaults to 1.
      • setMouseWheelScrollSensitivity

        public DiffEditorOptions setMouseWheelScrollSensitivity​(java.lang.Number mouseWheelScrollSensitivity)
        Parameters:
        mouseWheelScrollSensitivity - A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events. Defaults to 1.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getOverviewRulerLanes

        public java.lang.Number getOverviewRulerLanes()
        Returns:
        The number of vertical lanes the overview ruler should render. Defaults to 3.
      • setOverviewRulerLanes

        public DiffEditorOptions setOverviewRulerLanes​(java.lang.Number overviewRulerLanes)
        Parameters:
        overviewRulerLanes - The number of vertical lanes the overview ruler should render. Defaults to 3.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getQuickSuggestionsDelay

        public java.lang.Number getQuickSuggestionsDelay()
        Returns:
        Quick suggestions show delay (in ms) Defaults to 10 (ms)
      • setQuickSuggestionsDelay

        public DiffEditorOptions setQuickSuggestionsDelay​(java.lang.Number quickSuggestionsDelay)
        Parameters:
        quickSuggestionsDelay - Quick suggestions show delay (in ms) Defaults to 10 (ms)
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRevealHorizontalRightPadding

        public java.lang.Number getRevealHorizontalRightPadding()
        Returns:
        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).
      • setRevealHorizontalRightPadding

        public DiffEditorOptions setRevealHorizontalRightPadding​(java.lang.Number revealHorizontalRightPadding)
        Parameters:
        revealHorizontalRightPadding - 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).
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getScrollBeyondLastColumn

        public java.lang.Number getScrollBeyondLastColumn()
        Returns:
        Enable that scrolling can go beyond the last column by a number of columns. Defaults to 5.
      • setScrollBeyondLastColumn

        public DiffEditorOptions setScrollBeyondLastColumn​(java.lang.Number scrollBeyondLastColumn)
        Parameters:
        scrollBeyondLastColumn - Enable that scrolling can go beyond the last column by a number of columns. Defaults to 5.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getStopRenderingLineAfter

        public java.lang.Number getStopRenderingLineAfter()
        Returns:
        Performance guard: Stop rendering a line after x characters. Defaults to 10000. Use -1 to never stop rendering
      • setStopRenderingLineAfter

        public DiffEditorOptions setStopRenderingLineAfter​(java.lang.Number stopRenderingLineAfter)
        Parameters:
        stopRenderingLineAfter - Performance guard: Stop rendering a line after x characters. Defaults to 10000. Use -1 to never stop rendering
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getSuggestFontSize

        public java.lang.Number getSuggestFontSize()
        Returns:
        The font size for the suggest widget. Defaults to the editor font size.
      • setSuggestFontSize

        public DiffEditorOptions setSuggestFontSize​(java.lang.Number suggestFontSize)
        Parameters:
        suggestFontSize - The font size for the suggest widget. Defaults to the editor font size.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getSuggestLineHeight

        public java.lang.Number getSuggestLineHeight()
        Returns:
        The line height for the suggest widget. Defaults to the editor line height.
      • setSuggestLineHeight

        public DiffEditorOptions setSuggestLineHeight​(java.lang.Number suggestLineHeight)
        Parameters:
        suggestLineHeight - The line height for the suggest widget. Defaults to the editor line height.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getTabIndex

        public java.lang.Number getTabIndex()
        Returns:
        The tabindex property of the editor's textarea.
      • setTabIndex

        public DiffEditorOptions setTabIndex​(java.lang.Number tabIndex)
        Parameters:
        tabIndex - The tabindex property of the editor's textarea.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrapColumn

        public java.lang.Number getWordWrapColumn()
        Returns:
        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.
      • setWordWrapColumn

        public DiffEditorOptions setWordWrapColumn​(java.lang.Number wordWrapColumn)
        Parameters:
        wordWrapColumn - 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.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getLineDecorationsWidth

        public java.lang.String getLineDecorationsWidth()
      • setLineDecorationsWidth

        public DiffEditorOptions setLineDecorationsWidth​(java.lang.Number lineDecorationsWidth)
      • setLineDecorationsWidth

        public DiffEditorOptions setLineDecorationsWidth​(java.lang.String lineDecorationsWidth)
      • getAriaLabel

        public java.lang.String getAriaLabel()
        Returns:
        The aria label for the editor's textarea (when it is focused).
      • setAriaLabel

        public DiffEditorOptions setAriaLabel​(java.lang.String ariaLabel)
        Parameters:
        ariaLabel - The aria label for the editor's textarea (when it is focused).
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getCodeLensFontFamily

        public java.lang.String getCodeLensFontFamily()
        Returns:
        Code lens font family. Defaults to editor font family.
      • setCodeLensFontFamily

        public DiffEditorOptions setCodeLensFontFamily​(java.lang.String codeLensFontFamily)
        Parameters:
        codeLensFontFamily - Code lens font family. Defaults to editor font family.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getExtraEditorClassName

        public java.lang.String getExtraEditorClassName()
        Returns:
        Class name to be added to the editor.
      • setExtraEditorClassName

        public DiffEditorOptions setExtraEditorClassName​(java.lang.String extraEditorClassName)
        Parameters:
        extraEditorClassName - Class name to be added to the editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFontFamily

        public java.lang.String getFontFamily()
        Returns:
        The font family
      • setFontFamily

        public DiffEditorOptions setFontFamily​(java.lang.String fontFamily)
        Parameters:
        fontFamily - The font family
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordSeparators

        public java.lang.String getWordSeparators()
        Returns:
        A string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}|;:'",.<>/?
      • setWordSeparators

        public DiffEditorOptions setWordSeparators​(java.lang.String wordSeparators)
        Parameters:
        wordSeparators - A string containing the word separators used when doing word navigation. Defaults to `~!@#$%^&*()-=+[{]}|;:'",.<>/?
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrapBreakAfterCharacters

        public java.lang.String getWordWrapBreakAfterCharacters()
        Returns:
        Configure word wrapping characters. A break will be introduced after these characters. Defaults to tab stops, closing brackets and parentheses, and several other Unicode punctuation marks.
      • setWordWrapBreakAfterCharacters

        public DiffEditorOptions setWordWrapBreakAfterCharacters​(java.lang.String wordWrapBreakAfterCharacters)
        Parameters:
        wordWrapBreakAfterCharacters - Configure word wrapping characters. A break will be introduced after these characters. Defaults to tab stops, closing brackets and parentheses, and several other Unicode punctuation marks.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getWordWrapBreakBeforeCharacters

        public java.lang.String getWordWrapBreakBeforeCharacters()
        Returns:
        Configure word wrapping characters. A break will be introduced before these characters. Defaults to opening brackets and parentheses, and several other Unicode punctuation marks.
      • setWordWrapBreakBeforeCharacters

        public DiffEditorOptions setWordWrapBreakBeforeCharacters​(java.lang.String wordWrapBreakBeforeCharacters)
        Parameters:
        wordWrapBreakBeforeCharacters - Configure word wrapping characters. A break will be introduced before these characters. Defaults to opening brackets and parentheses, and several other Unicode punctuation marks.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getDimension

        public EditorDimension getDimension()
        Returns:
        The initial editor dimension (to avoid measuring the container).
      • setDimension

        public DiffEditorOptions setDimension​(EditorDimension dimension)
        Parameters:
        dimension - The initial editor dimension (to avoid measuring the container).
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getDiffWordWrap

        public java.lang.String getDiffWordWrap()
        Returns:
        Controls the wrapping of the diff editor.
      • setDiffWordWrap

        public DiffEditorOptions setDiffWordWrap​(EDiffWordWrap diffWordWrap)
        Parameters:
        diffWordWrap - Controls the wrapping of the diff editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setDiffWordWrap

        public DiffEditorOptions setDiffWordWrap​(java.lang.String diffWordWrap)
        Parameters:
        diffWordWrap - Controls the wrapping of the diff editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getTheme

        public java.lang.String getTheme()
        Returns:
        Initial theme to be used for rendering. The current out-of-the-box available themes are: vs (default), vs-dark, hc-black. You can create custom themes via monaco.editor.defineTheme. To switch a theme, use monaco.editor.setTheme
      • setTheme

        public DiffEditorOptions setTheme​(ETheme theme)
        Parameters:
        theme - Initial theme to be used for rendering. The current out-of-the-box available themes are: vs (default), vs-dark, hc-black. You can create custom themes via monaco.editor.defineTheme. To switch a theme, use monaco.editor.setTheme
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setTheme

        public DiffEditorOptions setTheme​(java.lang.String theme)
        Parameters:
        theme - Initial theme to be used for rendering. The current out-of-the-box available themes are: vs (default), vs-dark, hc-black. You can create custom themes via monaco.editor.defineTheme. To switch a theme, use monaco.editor.setTheme
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isDiffCodeLens

        public java.lang.Boolean isDiffCodeLens()
        Returns:
        Should the diff editor enable code lens? Defaults to false.
      • setDiffCodeLens

        public DiffEditorOptions setDiffCodeLens​(java.lang.Boolean diffCodeLens)
        Parameters:
        diffCodeLens - Should the diff editor enable code lens? Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isEnableSplitViewResizing

        public java.lang.Boolean isEnableSplitViewResizing()
        Returns:
        Allow the user to resize the diff editor split view. Defaults to true.
      • setEnableSplitViewResizing

        public DiffEditorOptions setEnableSplitViewResizing​(java.lang.Boolean enableSplitViewResizing)
        Parameters:
        enableSplitViewResizing - Allow the user to resize the diff editor split view. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isIgnoreTrimWhitespace

        public java.lang.Boolean isIgnoreTrimWhitespace()
        Returns:
        Compute the diff by ignoring leading/trailing whitespace Defaults to true.
      • setIgnoreTrimWhitespace

        public DiffEditorOptions setIgnoreTrimWhitespace​(java.lang.Boolean ignoreTrimWhitespace)
        Parameters:
        ignoreTrimWhitespace - Compute the diff by ignoring leading/trailing whitespace Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderIndicators

        public java.lang.Boolean isRenderIndicators()
        Returns:
        Render +/- indicators for added/deleted changes. Defaults to true.
      • setRenderIndicators

        public DiffEditorOptions setRenderIndicators​(java.lang.Boolean renderIndicators)
        Parameters:
        renderIndicators - Render +/- indicators for added/deleted changes. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderOverviewRuler

        public java.lang.Boolean isRenderOverviewRuler()
        Returns:
        Is the diff editor should render overview ruler Defaults to true
      • setRenderOverviewRuler

        public DiffEditorOptions setRenderOverviewRuler​(java.lang.Boolean renderOverviewRuler)
        Parameters:
        renderOverviewRuler - Is the diff editor should render overview ruler Defaults to true
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isRenderSideBySide

        public java.lang.Boolean isRenderSideBySide()
        Returns:
        Render the differences in two side-by-side editors. Defaults to true.
      • setRenderSideBySide

        public DiffEditorOptions setRenderSideBySide​(java.lang.Boolean renderSideBySide)
        Parameters:
        renderSideBySide - Render the differences in two side-by-side editors. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMaxComputationTime

        public java.lang.Number getMaxComputationTime()
        Returns:
        Timeout in milliseconds after which diff computation is cancelled. Defaults to 5000.
      • setMaxComputationTime

        public DiffEditorOptions setMaxComputationTime​(java.lang.Number maxComputationTime)
        Parameters:
        maxComputationTime - Timeout in milliseconds after which diff computation is cancelled. Defaults to 5000.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getMaxFileSize

        public java.lang.Number getMaxFileSize()
        Returns:
        Maximum supported file size in MB. Defaults to 50.
      • setMaxFileSize

        public DiffEditorOptions setMaxFileSize​(java.lang.Number maxFileSize)
        Parameters:
        maxFileSize - Maximum supported file size in MB. Defaults to 50.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getAutoDetectHighContrast

        public java.lang.String getAutoDetectHighContrast()
        Returns:
        If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. Defaults to true.
      • setAutoDetectHighContrast

        public DiffEditorOptions setAutoDetectHighContrast​(java.lang.String autoDetectHighContrast)
        Parameters:
        autoDetectHighContrast - If enabled, will automatically change to high contrast theme if the OS is using a high contrast theme. Defaults to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getModifiedAriaLabel

        public java.lang.String getModifiedAriaLabel()
        Returns:
        Aria label for modified editor.
      • setModifiedAriaLabel

        public DiffEditorOptions setModifiedAriaLabel​(java.lang.String modifiedAriaLabel)
        Parameters:
        modifiedAriaLabel - Aria label for modified editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getOriginalAriaLabel

        public java.lang.String getOriginalAriaLabel()
        Returns:
        Aria label for original editor.
      • setOriginalAriaLabel

        public DiffEditorOptions setOriginalAriaLabel​(java.lang.String originalAriaLabel)
        Parameters:
        originalAriaLabel - Aria label for original editor.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.