Top Description Fields Constructors Methods
org.eclipse.lsp4j

public final Enum InsertTextFormat

extends Enum<InsertTextFormat>
Class Inheritance

Defines whether the insert text in a completion item should be interpreted as plain text or a snippet.

Field Summary

Modifier and TypeField and Description
public static final InsertTextFormat
PlainText

The primary text to be inserted is treated as a plain string.

public static final InsertTextFormat
Snippet

The primary text to be inserted is treated as a snippet.

private final int

Constructor Summary

AccessConstructor and Description
private
InsertTextFormat(int value)

Method Summary

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

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

Field Detail

PlainTextback to summary
public static final InsertTextFormat PlainText

The primary text to be inserted is treated as a plain string.

Snippetback to summary
public static final InsertTextFormat Snippet

The primary text to be inserted is treated as a snippet.

A snippet can define tab stops and placeholders with `$1`, `$2` and `${3:foo}`. `$0` defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too.

valueback to summary
private final int value

Constructor Detail

InsertTextFormatback to summary
private InsertTextFormat(int value)

Method Detail

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