1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/// Defines whether the insert text in a completion item should be interpreted as /// plain text or a snippet. #[derive(Debug, Serialize)] pub enum InsertTextFormat { /// The primary text to be inserted is treated as a plain string. PlainText = 1, /// 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. /// /// See also: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md Snippet = 2, }