Top Description Fields Constructors Methods
org.eclipse.lsp4j

public final Enum InsertTextMode

extends Enum<InsertTextMode>
Class Inheritance

How whitespace and indentation is handled during completion item insertion.

Since 3.16.0

Field Summary

Modifier and TypeField and Description
public static final InsertTextMode
AdjustIndentation

The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.

public static final InsertTextMode
AsIs

The insertion or replace strings is taken as it is.

private final int

Constructor Summary

AccessConstructor and Description
private
InsertTextMode(int value)

Method Summary

Modifier and TypeMethod and Description
public static InsertTextMode
forValue(int value)

public int
public static InsertTextMode
public static InsertTextMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AdjustIndentationback to summary
public static final InsertTextMode AdjustIndentation

The editor adjusts leading whitespace of new lines so that they match the indentation up to the cursor of the line for which the item is accepted.

Consider a line like this: [2tabs][cursor][3tabs]foo. Accepting a multi line completion item is indented using 2 tabs and all following lines inserted will be indented using 2 tabs as well.

AsIsback to summary
public static final InsertTextMode AsIs

The insertion or replace strings is taken as it is. If the value is multi line the lines below the cursor will be inserted using the indentation defined in the string value. The client will not apply any kind of adjustments to the string.

valueback to summary
private final int value

Constructor Detail

InsertTextModeback to summary
private InsertTextMode(int value)

Method Detail

forValueback to summary
public static InsertTextMode forValue(int value)
getValueback to summary
public int getValue()
valueOfback to summary
public static InsertTextMode valueOf(String name)
valuesback to summary
public static InsertTextMode[] values()