23 references to InsertTextFormat
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Handler\Completion\CompletionResultFactory.cs (1)
391
lspItem.InsertTextFormat = LSP.
InsertTextFormat
.Snippet;
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
162
TextFormat =
InsertTextFormat
.Snippet,
Handler\OnAutoInsert\OnAutoInsertHandler.cs (2)
135
TextEditFormat = LSP.
InsertTextFormat
.Snippet,
199
TextEditFormat = LSP.
InsertTextFormat
.Snippet,
Protocol\CompletionItem.cs (4)
175
/// The format of the insert text. If omitted, defaults to <see cref="
InsertTextFormat
.Plaintext"/>
188
[DefaultValue(
InsertTextFormat
.Plaintext)]
189
public
InsertTextFormat
InsertTextFormat
193
} =
InsertTextFormat
.Plaintext;
Protocol\CompletionItemSetting.cs (1)
20
/// when <see cref="CompletionItem.InsertTextFormat"/> is set to <see cref="
InsertTextFormat
.Snippet"/>.
Protocol\CompletionListItemDefaults.cs (1)
43
public
InsertTextFormat
? InsertTextFormat
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (1)
193
if (completionItem.InsertTextFormat != default && completionItem.InsertTextFormat !=
InsertTextFormat
.Plaintext)
Protocol\Internal\VSInternalDocumentOnAutoInsertResponseItem.cs (3)
21
[DefaultValue(
InsertTextFormat
.Plaintext)]
24
public
InsertTextFormat
TextEditFormat
28
} =
InsertTextFormat
.Plaintext;
Protocol\Internal\VSInternalInlineCompletionItem.cs (2)
44
public
InsertTextFormat
? TextFormat { get; set; } =
InsertTextFormat
.Plaintext;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlineCompletions\InlineCompletionsTests.cs (1)
252
Assert.Equal(LSP.
InsertTextFormat
.Snippet, item.TextFormat);
OnAutoInsert\OnAutoInsertTests.cs (1)
366
Assert.Equal(
InsertTextFormat
.Snippet, result.TextEditFormat);
Microsoft.VisualStudio.LanguageServices.Xaml (5)
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (2)
96
InsertTextFormat = xamlCompletion.IsSnippet ?
InsertTextFormat
.Snippet :
InsertTextFormat
.Plaintext,
Implementation\LanguageServer\Handler\OnAutoInsert\OnAutoInsertHandler.cs (3)
57
var
insertFormat =
InsertTextFormat
.Plaintext;
60
insertFormat =
InsertTextFormat
.Snippet;