Module: LanguageServer::Protocol::Constant::InsertTextFormat

Defined in:
lib/language_server/protocol/constant/insert_text_format.rb

Overview

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

Constant Summary collapse

PLAIN_TEXT =

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

1
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.

2