Class DiffEditorOptions

java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.DiffEditorOptions
All Implemented Interfaces:
Serializable

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

    • DiffEditorOptions

      public DiffEditorOptions()
  • Method Details

    • getBracketPairColorization

      public EditorBracketPairColorizationOptions getBracketPairColorization()
      Returns:
      Configures bracket pair colorization (disabled by default).
    • setBracketPairColorization

      public DiffEditorOptions setBracketPairColorization(EditorBracketPairColorizationOptions bracketPairColorization)
      Parameters:
      bracketPairColorization - Configures bracket pair colorization (disabled by default).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • 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.
    • getDropIntoEditor

      public EditorDropIntoEditorOptions getDropIntoEditor()
      Returns:
      Controls dropping into the editor from an external source. When enabled, this shows a preview of the drop location and triggers an onDropIntoEditor event.
    • setDropIntoEditor

      public DiffEditorOptions setDropIntoEditor(EditorDropIntoEditorOptions dropIntoEditor)
      Parameters:
      dropIntoEditor - Controls dropping into the editor from an external source. When enabled, this shows a preview of the drop location and triggers an onDropIntoEditor event.
      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.
    • getGotoLocation

      public EditorGotoLocationOptions getGotoLocation()
    • setGotoLocation

      public DiffEditorOptions setGotoLocation(EditorGotoLocationOptions gotoLocation)
    • getHover

      public EditorHoverOptions getHover()
      Returns:
      Configure the editor's hover.
    • 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.
    • getPasteAs

      public EditorPasteAsOptions getPasteAs()
      Returns:
      Controls support for changing how content is pasted into the editor.
    • setPasteAs

      public DiffEditorOptions setPasteAs(EditorPasteAsOptions pasteAs)
      Parameters:
      pasteAs - Controls support for changing how content is pasted into the editor.
      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.
    • getSmartSelect

      public EditorSmartSelectOptions getSmartSelect()
      Returns:
      Smart select options.
    • setSmartSelect

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

      public EditorStickyScrollOptions getStickyScroll()
      Returns:
      Control the behavior of sticky scroll options
    • setStickyScroll

      public DiffEditorOptions setStickyScroll(EditorStickyScrollOptions stickyScroll)
      Parameters:
      stickyScroll - Control the behavior of sticky scroll options
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSuggest

      public EditorSuggestOptions getSuggest()
      Returns:
      Suggest options.
    • 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:
      Controls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).
    • setUnicodeHighlight

      public DiffEditorOptions setUnicodeHighlight(EditorUnicodeHighlightOptions unicodeHighlight)
      Parameters:
      unicodeHighlight - Controls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getAutoClosingOvertype

      public 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(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 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(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 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(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 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(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 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(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 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(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 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(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 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(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.
    • getColorDecoratorsActivatedOn

      public String getColorDecoratorsActivatedOn()
      Returns:
      Controls what is the condition to spawn a color picker from a color decorator.
    • setColorDecoratorsActivatedOn

      public DiffEditorOptions setColorDecoratorsActivatedOn(EColorDecoratorsActivatedOnMode colorDecoratorsActivatedOn)
      Parameters:
      colorDecoratorsActivatedOn - Controls what is the condition to spawn a color picker from a color decorator.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setColorDecoratorsActivatedOn

      public DiffEditorOptions setColorDecoratorsActivatedOn(String colorDecoratorsActivatedOn)
      Parameters:
      colorDecoratorsActivatedOn - Controls what is the condition to spawn a color picker from a color decorator.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getCursorBlinking

      public 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(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.
    • getCursorSmoothCaretAnimation

      public String getCursorSmoothCaretAnimation()
      Returns:
      Enable smooth caret animation. Defaults to off.
    • setCursorSmoothCaretAnimation

      public DiffEditorOptions setCursorSmoothCaretAnimation(ECursorSmoothCaretAnimation cursorSmoothCaretAnimation)
      Parameters:
      cursorSmoothCaretAnimation - Enable smooth caret animation. Defaults to off.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setCursorSmoothCaretAnimation

      public DiffEditorOptions setCursorSmoothCaretAnimation(String cursorSmoothCaretAnimation)
      Parameters:
      cursorSmoothCaretAnimation - Enable smooth caret animation. Defaults to off.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getCursorStyle

      public 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(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 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(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.
    • getExperimentalWhitespaceRendering

      public String getExperimentalWhitespaceRendering()
      Returns:
      Enable experimental whitespace rendering. Defaults to svg.
    • setExperimentalWhitespaceRendering

      public DiffEditorOptions setExperimentalWhitespaceRendering(EExperimentalWhitespaceRendering experimentalWhitespaceRendering)
      Parameters:
      experimentalWhitespaceRendering - Enable experimental whitespace rendering. Defaults to svg.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setExperimentalWhitespaceRendering

      public DiffEditorOptions setExperimentalWhitespaceRendering(String experimentalWhitespaceRendering)
      Parameters:
      experimentalWhitespaceRendering - Enable experimental whitespace rendering. Defaults to svg.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getFoldingStrategy

      public 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(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 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(String fontWeight)
      Parameters:
      fontWeight - The font weight
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getLineNumbers

      public 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(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 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(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 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(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 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(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 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(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.
    • getOccurrencesHighlight

      public String getOccurrencesHighlight()
      Returns:
      Enable semantic occurrences highlight. Defaults to singleFile.
    • setOccurrencesHighlight

      public DiffEditorOptions setOccurrencesHighlight(EOccurrencesHighlight occurrencesHighlight)
      Parameters:
      occurrencesHighlight - Enable semantic occurrences highlight. Defaults to singleFile.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setOccurrencesHighlight

      public DiffEditorOptions setOccurrencesHighlight(String occurrencesHighlight)
      Parameters:
      occurrencesHighlight - Enable semantic occurrences highlight. Defaults to singleFile.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getPeekWidgetDefaultFocus

      public 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(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.
    • getRenderFinalNewline

      public String getRenderFinalNewline()
      Returns:
      Render last line number when the file ends with a newline. Defaults to on for Windows and macOS and dimmed for Linux.
    • setRenderFinalNewline

      public DiffEditorOptions setRenderFinalNewline(ERenderFinalNewline renderFinalNewline)
      Parameters:
      renderFinalNewline - Render last line number when the file ends with a newline. Defaults to on for Windows and macOS and dimmed for Linux.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setRenderFinalNewline

      public DiffEditorOptions setRenderFinalNewline(String renderFinalNewline)
      Parameters:
      renderFinalNewline - Render last line number when the file ends with a newline. Defaults to on for Windows and macOS and dimmed for Linux.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getRenderLineHighlight

      public 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(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 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(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 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(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 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(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 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(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 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(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 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(String tabCompletion)
      Parameters:
      tabCompletion - Enable tab completion.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getUnusualLineTerminators

      public 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(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.
    • getWordBreak

      public String getWordBreak()
      Returns:
      Sets whether line breaks appear wherever the text would otherwise overflow its content box. When wordBreak = normal, Use the default line break rule. When wordBreak = keepAll, word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
    • setWordBreak

      public DiffEditorOptions setWordBreak(EWordBreak wordBreak)
      Parameters:
      wordBreak - Sets whether line breaks appear wherever the text would otherwise overflow its content box. When wordBreak = normal, Use the default line break rule. When wordBreak = keepAll, word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setWordBreak

      public DiffEditorOptions setWordBreak(String wordBreak)
      Parameters:
      wordBreak - Sets whether line breaks appear wherever the text would otherwise overflow its content box. When wordBreak = normal, Use the default line break rule. When wordBreak = keepAll, word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getWordWrap

      public 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(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 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(String wordWrapOverride1)
      Parameters:
      wordWrapOverride1 - Override the wordWrap setting.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getWordWrapOverride2

      public 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(String wordWrapOverride2)
      Parameters:
      wordWrapOverride2 - Override the wordWrapOverride1 setting.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getWrappingIndent

      public 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(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 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(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.
    • addRuler

      public DiffEditorOptions addRuler(EditorRulerOption... items)
      Returns:
      Render vertical lines at the specified columns. Defaults to empty array.
    • setRulers

      public DiffEditorOptions setRulers(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 Boolean isAcceptSuggestionOnCommitCharacter()
      Returns:
      Accept suggestions on provider defined characters. Defaults to true.
    • setAcceptSuggestionOnCommitCharacter

      public DiffEditorOptions setAcceptSuggestionOnCommitCharacter(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.
    • isAutoDetectHighContrast

      public Boolean isAutoDetectHighContrast()
      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(Boolean 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.
    • isAutomaticLayout

      public 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(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 Boolean isCodeLens()
      Returns:
      Show code lens Defaults to true.
    • setCodeLens

      public DiffEditorOptions setCodeLens(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 Boolean isColorDecorators()
      Returns:
      Enable inline color decorators and color picker rendering.
    • setColorDecorators

      public DiffEditorOptions setColorDecorators(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.
    • isColorDecoratorsLimit

      public Boolean isColorDecoratorsLimit()
      Returns:
      Controls the max number of color decorators that can be rendered in an editor at once.
    • setColorDecoratorsLimit

      public DiffEditorOptions setColorDecoratorsLimit(Boolean colorDecoratorsLimit)
      Parameters:
      colorDecoratorsLimit - Controls the max number of color decorators that can be rendered in an editor at once.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isColumnSelection

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

      public DiffEditorOptions setColumnSelection(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 Boolean isContextmenu()
      Returns:
      Enable custom contextmenu. Defaults to true.
    • setContextmenu

      public DiffEditorOptions setContextmenu(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 Boolean isCopyWithSyntaxHighlighting()
      Returns:
      Syntax highlighting is copied.
    • setCopyWithSyntaxHighlighting

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

      public Boolean isDefaultColorDecorators()
      Returns:
      Controls whether to use default color decorations or not using the default document color provider
    • setDefaultColorDecorators

      public DiffEditorOptions setDefaultColorDecorators(Boolean defaultColorDecorators)
      Parameters:
      defaultColorDecorators - Controls whether to use default color decorations or not using the default document color provider
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isDefinitionLinkOpensInPeek

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

      public DiffEditorOptions setDefinitionLinkOpensInPeek(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 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(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 Boolean isDisableMonospaceOptimizations()
      Returns:
      Disable the optimizations for monospace fonts. Defaults to false.
    • setDisableMonospaceOptimizations

      public DiffEditorOptions setDisableMonospaceOptimizations(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 Boolean isDragAndDrop()
      Returns:
      Controls if the editor should allow to move selections via drag and drop. Defaults to false.
    • setDragAndDrop

      public DiffEditorOptions setDragAndDrop(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 Boolean isEmptySelectionClipboard()
      Returns:
      Copying without a selection copies the current line
    • setEmptySelectionClipboard

      public DiffEditorOptions setEmptySelectionClipboard(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.
    • getExperimentalInlineEdit

      public EditorInlineEditOptions getExperimentalInlineEdit()
    • setExperimentalInlineEdit

      public DiffEditorOptions setExperimentalInlineEdit(EditorInlineEditOptions experimentalInlineEdit)
    • isFixedOverflowWidgets

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

      public DiffEditorOptions setFixedOverflowWidgets(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 Boolean isFolding()
      Returns:
      Enable code folding. Defaults to true.
    • setFolding

      public DiffEditorOptions setFolding(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 Boolean isFoldingHighlight()
      Returns:
      Enable highlight for folded regions. Defaults to true.
    • setFoldingHighlight

      public DiffEditorOptions setFoldingHighlight(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 Boolean isFoldingImportsByDefault()
      Returns:
      Auto fold imports folding regions. Defaults to true.
    • setFoldingImportsByDefault

      public DiffEditorOptions setFoldingImportsByDefault(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 Boolean isFontLigatures()
    • getFontLigatures

      public String getFontLigatures()
    • setFontLigatures

      public DiffEditorOptions setFontLigatures(Boolean fontLigatures)
    • setFontLigatures

      public DiffEditorOptions setFontLigatures(String fontLigatures)
    • isFontVariations

      public Boolean isFontVariations()
    • getFontVariations

      public String getFontVariations()
    • setFontVariations

      public DiffEditorOptions setFontVariations(Boolean fontVariations)
    • setFontVariations

      public DiffEditorOptions setFontVariations(String fontVariations)
    • isFormatOnPaste

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

      public DiffEditorOptions setFormatOnPaste(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 Boolean isFormatOnType()
      Returns:
      Enable format on type. Defaults to false
    • setFormatOnType

      public DiffEditorOptions setFormatOnType(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 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(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 Boolean isHideCursorInOverviewRuler()
      Returns:
      Should the cursor be hidden in the overview ruler. Defaults to false
    • setHideCursorInOverviewRuler

      public DiffEditorOptions setHideCursorInOverviewRuler(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.
    • isInlineCompletionsAccessibilityVerbose

      public Boolean isInlineCompletionsAccessibilityVerbose()
      Returns:
      Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.
    • setInlineCompletionsAccessibilityVerbose

      public DiffEditorOptions setInlineCompletionsAccessibilityVerbose(Boolean inlineCompletionsAccessibilityVerbose)
      Parameters:
      inlineCompletionsAccessibilityVerbose - Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isLargeFileOptimizations

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

      public DiffEditorOptions setLargeFileOptimizations(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 Boolean isLinkedEditing()
      Returns:
      Enables linked editing. Defaults to false.
    • setLinkedEditing

      public DiffEditorOptions setLinkedEditing(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 Boolean isLinks()
      Returns:
      Enable detecting links and making them clickable. Defaults to true.
    • setLinks

      public DiffEditorOptions setLinks(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.
    • isMatchOnWordStartOnly

      public Boolean isMatchOnWordStartOnly()
      Returns:
      Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
    • setMatchOnWordStartOnly

      public DiffEditorOptions setMatchOnWordStartOnly(Boolean matchOnWordStartOnly)
      Parameters:
      matchOnWordStartOnly - Controls whether suggestions allow matches in the middle of the word instead of only at the beginning
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isMouseWheelZoom

      public 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(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 Boolean isMultiCursorMergeOverlapping()
      Returns:
      Merge overlapping selections. Defaults to true.
    • setMultiCursorMergeOverlapping

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

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

      public DiffEditorOptions setOverviewRulerBorder(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 Boolean isReadOnly()
      Returns:
      Should the editor be read only. Defaults to false
    • setReadOnly

      public DiffEditorOptions setReadOnly(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 Boolean isRenameOnType()
      Deprecated.
      Returns:
      Deprecated, use
      invalid reference
      linkedEditing
      instead.
    • setRenameOnType

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

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

      public DiffEditorOptions setRenderControlCharacters(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.
    • isRenderLineHighlightOnlyWhenFocus

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

      public DiffEditorOptions setRenderLineHighlightOnlyWhenFocus(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 Boolean isRoundedSelection()
      Returns:
      Render the editor selection with rounded borders. Defaults to true.
    • setRoundedSelection

      public DiffEditorOptions setRoundedSelection(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.
    • isScreenReaderAnnounceInlineSuggestion

      public Boolean isScreenReaderAnnounceInlineSuggestion()
      Returns:
      Control whether a screen reader announces inline suggestion content immediately.
    • setScreenReaderAnnounceInlineSuggestion

      public DiffEditorOptions setScreenReaderAnnounceInlineSuggestion(Boolean screenReaderAnnounceInlineSuggestion)
      Parameters:
      screenReaderAnnounceInlineSuggestion - Control whether a screen reader announces inline suggestion content immediately.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isScrollBeyondLastLine

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

      public DiffEditorOptions setScrollBeyondLastLine(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 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(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 Boolean isSelectOnLineNumbers()
      Returns:
      Should the corresponding line be selected when clicking on the line number? Defaults to true.
    • setSelectOnLineNumbers

      public DiffEditorOptions setSelectOnLineNumbers(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 Boolean isSelectionClipboard()
      Returns:
      Enable Linux primary clipboard. Defaults to true.
    • setSelectionClipboard

      public DiffEditorOptions setSelectionClipboard(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 Boolean isSelectionHighlight()
      Returns:
      Enable selection highlight. Defaults to true.
    • setSelectionHighlight

      public DiffEditorOptions setSelectionHighlight(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 Boolean isShowDeprecated()
      Returns:
      Controls strikethrough deprecated variables.
    • setShowDeprecated

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

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

      public DiffEditorOptions setShowUnused(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 Boolean isSmoothScrolling()
      Returns:
      Enable that the editor animates scrolling to a position. Defaults to false
    • setSmoothScrolling

      public DiffEditorOptions setSmoothScrolling(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 Boolean isStablePeek()
      Returns:
      Keep peek editors open even when double clicking their content or when hitting Escape. Defaults to false
    • setStablePeek

      public DiffEditorOptions setStablePeek(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 Boolean isSuggestOnTriggerCharacters()
      Returns:
      Enable the suggestion box to pop-up on trigger characters. Defaults to true.
    • setSuggestOnTriggerCharacters

      public DiffEditorOptions setSuggestOnTriggerCharacters(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.
    • isTabFocusMode

      public Boolean isTabFocusMode()
      Returns:
      Controls whether the editor receives tabs or defers them to the workbench for navigation.
    • setTabFocusMode

      public DiffEditorOptions setTabFocusMode(Boolean tabFocusMode)
      Parameters:
      tabFocusMode - Controls whether the editor receives tabs or defers them to the workbench for navigation.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isUnfoldOnClickAfterEndOfLine

      public 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(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 Boolean isUseShadowDOM()
      Returns:
      Control if the editor should use shadow DOM.
    • setUseShadowDOM

      public DiffEditorOptions setUseShadowDOM(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 Boolean isUseTabStops()
      Returns:
      Inserting and deleting whitespace follows tab stops.
    • setUseTabStops

      public DiffEditorOptions setUseTabStops(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 Boolean isWordWrapMinified()
      Returns:
      Force word wrapping when the text appears to be of a minified/generated file. Defaults to true.
    • setWordWrapMinified

      public DiffEditorOptions setWordWrapMinified(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 Number getAccessibilityPageSize()
      Returns:
      Controls the number of lines in the editor that can be read out by a screen reader.
    • setAccessibilityPageSize

      public DiffEditorOptions setAccessibilityPageSize(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 Number getCodeActionsOnSaveTimeout()
      Returns:
      Timeout for running code actions on save.
    • setCodeActionsOnSaveTimeout

      public DiffEditorOptions setCodeActionsOnSaveTimeout(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 Number getCodeLensFontSize()
      Returns:
      Code lens font size. Default to 90% of the editor font size.
    • setCodeLensFontSize

      public DiffEditorOptions setCodeLensFontSize(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 Number getCursorSurroundingLines()
      Returns:
      Controls the minimal number of visible leading and trailing lines surrounding the cursor. Defaults to 0.
    • setCursorSurroundingLines

      public DiffEditorOptions setCursorSurroundingLines(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 Number getCursorWidth()
      Returns:
      Control the width of the cursor when cursorStyle is set to line
    • setCursorWidth

      public DiffEditorOptions setCursorWidth(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 Number getFastScrollSensitivity()
      Returns:
      Fast scrolling multiplier speed when pressing Alt Defaults to 5.
    • setFastScrollSensitivity

      public DiffEditorOptions setFastScrollSensitivity(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.
    • getFoldingMaximumRegions

      public Number getFoldingMaximumRegions()
      Returns:
      Maximum number of foldable regions. Defaults to 5000.
    • setFoldingMaximumRegions

      public DiffEditorOptions setFoldingMaximumRegions(Number foldingMaximumRegions)
      Parameters:
      foldingMaximumRegions - Maximum number of foldable regions. Defaults to 5000.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getFontSize

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

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

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

      public DiffEditorOptions setInDiffEditor(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 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(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 Number getLetterSpacing()
      Returns:
      The letter spacing
    • setLetterSpacing

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

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

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

      public 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(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 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(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.
    • getMultiCursorLimit

      public Number getMultiCursorLimit()
      Returns:
      Controls the max number of text cursors that can be in an active editor at once.
    • setMultiCursorLimit

      public DiffEditorOptions setMultiCursorLimit(Number multiCursorLimit)
      Parameters:
      multiCursorLimit - Controls the max number of text cursors that can be in an active editor at once.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getOverviewRulerLanes

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

      public DiffEditorOptions setOverviewRulerLanes(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 Number getQuickSuggestionsDelay()
      Returns:
      Quick suggestions show delay (in ms) Defaults to 10 (ms)
    • setQuickSuggestionsDelay

      public DiffEditorOptions setQuickSuggestionsDelay(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 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(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 Number getScrollBeyondLastColumn()
      Returns:
      Enable that scrolling can go beyond the last column by a number of columns. Defaults to 5.
    • setScrollBeyondLastColumn

      public DiffEditorOptions setScrollBeyondLastColumn(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 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(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 Number getSuggestFontSize()
      Returns:
      The font size for the suggest widget. Defaults to the editor font size.
    • setSuggestFontSize

      public DiffEditorOptions setSuggestFontSize(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 Number getSuggestLineHeight()
      Returns:
      The line height for the suggest widget. Defaults to the editor line height.
    • setSuggestLineHeight

      public DiffEditorOptions setSuggestLineHeight(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 Number getTabIndex()
      Returns:
      The tabindex property of the editor's textarea.
    • setTabIndex

      public DiffEditorOptions setTabIndex(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 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(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 String getLineDecorationsWidth()
    • setLineDecorationsWidth

      public DiffEditorOptions setLineDecorationsWidth(Number lineDecorationsWidth)
    • setLineDecorationsWidth

      public DiffEditorOptions setLineDecorationsWidth(String lineDecorationsWidth)
    • getAriaLabel

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

      public DiffEditorOptions setAriaLabel(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 String getCodeLensFontFamily()
      Returns:
      Code lens font family. Defaults to editor font family.
    • setCodeLensFontFamily

      public DiffEditorOptions setCodeLensFontFamily(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 String getExtraEditorClassName()
      Returns:
      Class name to be added to the editor.
    • setExtraEditorClassName

      public DiffEditorOptions setExtraEditorClassName(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 String getFontFamily()
      Returns:
      The font family
    • setFontFamily

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

      public String getPlaceholder()
      Returns:
      Sets a placeholder for the editor. If set, the placeholder is shown if the editor is empty.
    • setPlaceholder

      public DiffEditorOptions setPlaceholder(String placeholder)
      Parameters:
      placeholder - Sets a placeholder for the editor. If set, the placeholder is shown if the editor is empty.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getWordSegmenterLocales

      public org.primefaces.shaded.json.JSONArray getWordSegmenterLocales()
      Returns:
      Locales used for segmenting lines into words when doing word related navigations or operations.<p>Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.). Defaults to empty array
    • setWordSegmenterLocales

      public DiffEditorOptions setWordSegmenterLocales(org.primefaces.shaded.json.JSONArray wordSegmenterLocales)
      Parameters:
      wordSegmenterLocales - Locales used for segmenting lines into words when doing word related navigations or operations.<p>Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.). Defaults to empty array
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • addWordSegmenterLocale

      public DiffEditorOptions addWordSegmenterLocale(String... items)
      Returns:
      Locales used for segmenting lines into words when doing word related navigations or operations.<p>Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.). Defaults to empty array
    • setWordSegmenterLocales

      public DiffEditorOptions setWordSegmenterLocales(List<String> wordSegmenterLocales)
      Parameters:
      wordSegmenterLocales - Locales used for segmenting lines into words when doing word related navigations or operations.<p>Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.). Defaults to empty array
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getWordSeparators

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

      public DiffEditorOptions setWordSeparators(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 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(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 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(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.
    • getHideUnchangedRegions

      public EditorHideUnchangedRegions getHideUnchangedRegions()
      Returns:
      Options for whether unchanged regions should be hidden or visible.
    • setHideUnchangedRegions

      public DiffEditorOptions setHideUnchangedRegions(EditorHideUnchangedRegions hideUnchangedRegions)
      Parameters:
      hideUnchangedRegions - Options for whether unchanged regions should be hidden or visible.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getDiffAlgorithm

      public String getDiffAlgorithm()
      Returns:
      Controls the diff algorithm.
    • setDiffAlgorithm

      public DiffEditorOptions setDiffAlgorithm(EDiffAlgorithm diffAlgorithm)
      Parameters:
      diffAlgorithm - Controls the diff algorithm.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setDiffAlgorithm

      public DiffEditorOptions setDiffAlgorithm(String diffAlgorithm)
      Parameters:
      diffAlgorithm - Controls the diff algorithm.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getDiffWordWrap

      public 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(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 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(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.
    • isAccessibilityVerbose

      public Boolean isAccessibilityVerbose()
      Returns:
      Whether the diff editor aria label should be verbose.
    • setAccessibilityVerbose

      public DiffEditorOptions setAccessibilityVerbose(Boolean accessibilityVerbose)
      Parameters:
      accessibilityVerbose - Whether the diff editor aria label should be verbose.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isCompactMode

      public Boolean isCompactMode()
      Returns:
      If set, the diff editor is optimized for small views. Defaults to false.
    • setCompactMode

      public DiffEditorOptions setCompactMode(Boolean compactMode)
      Parameters:
      compactMode - If set, the diff editor is optimized for small views. Defaults to false.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isDiffCodeLens

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

      public DiffEditorOptions setDiffCodeLens(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 Boolean isEnableSplitViewResizing()
      Returns:
      Allow the user to resize the diff editor split view. Defaults to true.
    • setEnableSplitViewResizing

      public DiffEditorOptions setEnableSplitViewResizing(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 Boolean isIgnoreTrimWhitespace()
      Returns:
      Compute the diff by ignoring leading/trailing whitespace Defaults to true.
    • setIgnoreTrimWhitespace

      public DiffEditorOptions setIgnoreTrimWhitespace(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.
    • isOnlyShowAccessibleDiffViewer

      public Boolean isOnlyShowAccessibleDiffViewer()
      Returns:
      If the diff editor should only show the difference review mode.
    • setOnlyShowAccessibleDiffViewer

      public DiffEditorOptions setOnlyShowAccessibleDiffViewer(Boolean onlyShowAccessibleDiffViewer)
      Parameters:
      onlyShowAccessibleDiffViewer - If the diff editor should only show the difference review mode.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isRenderGutterMenu

      public Boolean isRenderGutterMenu()
      Returns:
      Indicates if the gutter menu should be rendered.
    • setRenderGutterMenu

      public DiffEditorOptions setRenderGutterMenu(Boolean renderGutterMenu)
      Parameters:
      renderGutterMenu - Indicates if the gutter menu should be rendered.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isRenderIndicators

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

      public DiffEditorOptions setRenderIndicators(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.
    • isRenderMarginRevertIcon

      public Boolean isRenderMarginRevertIcon()
      Returns:
      Shows icons in the glyph margin to revert changes. Default to true.
    • setRenderMarginRevertIcon

      public DiffEditorOptions setRenderMarginRevertIcon(Boolean renderMarginRevertIcon)
      Parameters:
      renderMarginRevertIcon - Shows icons in the glyph margin to revert changes. Default to true.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isRenderOverviewRuler

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

      public DiffEditorOptions setRenderOverviewRuler(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 Boolean isRenderSideBySide()
      Returns:
      Render the differences in two side-by-side editors. Defaults to true.
    • setRenderSideBySide

      public DiffEditorOptions setRenderSideBySide(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.
    • isUseInlineViewWhenSpaceIsLimited

      public Boolean isUseInlineViewWhenSpaceIsLimited()
      Returns:
      When <code>renderSideBySide</code> is enabled, <code>useInlineViewWhenSpaceIsLimited</code> is set, and the diff editor has a width less than <code>renderSideBySideInlineBreakpoint</code>, the inline view is used.
    • setUseInlineViewWhenSpaceIsLimited

      public DiffEditorOptions setUseInlineViewWhenSpaceIsLimited(Boolean useInlineViewWhenSpaceIsLimited)
      Parameters:
      useInlineViewWhenSpaceIsLimited - When <code>renderSideBySide</code> is enabled, <code>useInlineViewWhenSpaceIsLimited</code> is set, and the diff editor has a width less than <code>renderSideBySideInlineBreakpoint</code>, the inline view is used.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getMaxComputationTime

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

      public DiffEditorOptions setMaxComputationTime(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 Number getMaxFileSize()
      Returns:
      Maximum supported file size in MB. Defaults to 50.
    • setMaxFileSize

      public DiffEditorOptions setMaxFileSize(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.
    • getRenderSideBySideInlineBreakpoint

      public Number getRenderSideBySideInlineBreakpoint()
      Returns:
      When <code>renderSideBySide</code> is enabled, <code>useInlineViewWhenSpaceIsLimited</code> is set, and the diff editor has a width less than <code>renderSideBySideInlineBreakpoint</code>, the inline view is used.
    • setRenderSideBySideInlineBreakpoint

      public DiffEditorOptions setRenderSideBySideInlineBreakpoint(Number renderSideBySideInlineBreakpoint)
      Parameters:
      renderSideBySideInlineBreakpoint - When <code>renderSideBySide</code> is enabled, <code>useInlineViewWhenSpaceIsLimited</code> is set, and the diff editor has a width less than <code>renderSideBySideInlineBreakpoint</code>, the inline view is used.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getSplitViewDefaultRatio

      public Number getSplitViewDefaultRatio()
      Returns:
      The default ratio when rendering side-by-side editors. Must be a number between <code>0</code> and <code>1</code>, min sizes apply. Defaults to <code>0.5</code>
    • setSplitViewDefaultRatio

      public DiffEditorOptions setSplitViewDefaultRatio(Number splitViewDefaultRatio)
      Parameters:
      splitViewDefaultRatio - The default ratio when rendering side-by-side editors. Must be a number between <code>0</code> and <code>1</code>, min sizes apply. Defaults to <code>0.5</code>
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getModifiedAriaLabel

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

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

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

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