42 references to InsertTextFormat
Microsoft.CodeAnalysis.LanguageServer.Protocol (19)
Handler\Completion\CompletionResultFactory.cs (1)
402lspItem.InsertTextFormat = LSP.InsertTextFormat.Snippet;
Handler\InlineCompletions\InlineCompletionsHandler.cs (1)
162TextFormat = InsertTextFormat.Snippet,
Handler\OnAutoInsert\OnAutoInsertHandler.cs (5)
152TextEditFormat = LSP.InsertTextFormat.Snippet, 217TextEditFormat = LSP.InsertTextFormat.Snippet, 303var format = LSP.InsertTextFormat.Plaintext; 310format = 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)] 189public 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)
43public InsertTextFormat? InsertTextFormat
Protocol\Internal\Efficiency\OptimizedVSCompletionListJsonConverter.cs (1)
198if (completionItem.InsertTextFormat is not 0 and not InsertTextFormat.Plaintext)
Protocol\Internal\VSInternalDocumentOnAutoInsertResponseItem.cs (3)
21[DefaultValue(InsertTextFormat.Plaintext)] 24public InsertTextFormat TextEditFormat 28} = InsertTextFormat.Plaintext;
Protocol\Internal\VSInternalInlineCompletionItem.cs (2)
44public InsertTextFormat? TextFormat { get; set; } = InsertTextFormat.Plaintext;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (4)
InlineCompletions\InlineCompletionsTests.cs (1)
252Assert.Equal(LSP.InsertTextFormat.Snippet, item.TextFormat);
OnAutoInsert\AbstractOnAutoInsertTests.cs (1)
56Assert.Equal(InsertTextFormat.Snippet, result.TextEditFormat);
OnAutoInsert\RawStringOnAutoInsertTests.cs (2)
230Assert.Equal(InsertTextFormat.Snippet, result.TextEditFormat); 234Assert.Equal(InsertTextFormat.Plaintext, result.TextEditFormat);
Microsoft.CodeAnalysis.Razor.Workspaces (10)
AutoInsert\AutoClosingTagOnAutoInsertProvider.cs (4)
62var formatForEndTag = InsertTextFormat.Snippet; 76var format = InsertTextFormat.Plaintext;
AutoInsert\CloseTextTagOnAutoInsertProvider.cs (2)
30var format = InsertTextFormat.Snippet;
Completion\RazorCompletionListProvider.cs (3)
165var insertTextFormat = razorCompletionItem.IsSnippet ? InsertTextFormat.Snippet : InsertTextFormat.Plaintext;
Protocol\AutoInsert\RemoteAutoInsertTextEdit.cs (1)
13[property: DataMember(Order = 2)] InsertTextFormat InsertTextFormat)
Microsoft.CodeAnalysis.Razor.Workspaces.UnitTests (3)
Completion\RazorCompletionListProviderTest.cs (3)
252Assert.Equal(InsertTextFormat.Plaintext, converted.InsertTextFormat); 278Assert.Equal(InsertTextFormat.Snippet, converted.InsertTextFormat); 304Assert.Equal(InsertTextFormat.Snippet, converted.InsertTextFormat);
Microsoft.CodeAnalysis.Remote.Razor (1)
AutoInsert\RemoteAutoInsertService.cs (1)
160var mappedChange = autoInsertResponseItem.TextEditFormat == InsertTextFormat.Snippet
Microsoft.VisualStudio.LanguageServices.Razor (1)
Snippets\SnippetCompletionItemProvider.cs (1)
62InsertTextFormat = InsertTextFormat.Snippet,
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (3)
Cohost\CohostInlineCompletionEndpointTest.cs (1)
101Assert.Equal(InsertTextFormat.Snippet, item.TextFormat);
Cohost\CohostSnippetCompletionTest.cs (1)
112InsertTextFormat = InsertTextFormat.Snippet,
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
570TextEditFormat = InsertTextFormat.Snippet
Microsoft.VisualStudioCode.RazorExtension.UnitTests (1)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Endpoints\CohostOnAutoInsertEndpointTest.cs (1)
570TextEditFormat = InsertTextFormat.Snippet