1 instantiation of CodeSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
15 references to CodeSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (10)
63public static CodeSnippet ReadSnippetFromFile(string filePath, string snippetTitle)
69var matchingSnippet = snippets.Value.Single(s => string.Equals(s.Title, snippetTitle, StringComparison.OrdinalIgnoreCase));
110internal static ImmutableArray<CodeSnippet>? ReadSnippets(XDocument document)
132public ExpansionTemplate(CodeSnippet snippet)
134var snippetElement = CodeSnippet.GetElementWithoutNamespace(snippet.CodeSnippetElement, "Snippet");
135var declarationsElement = CodeSnippet.GetElementWithoutNamespace(snippetElement, "Declarations");
137var code = CodeSnippet.GetElementWithoutNamespace(snippetElement, "Code");
161var functionElement = CodeSnippet.GetElementWithoutNamespace(declarationElement, "Function");
164CodeSnippet.GetElementInnerText(declarationElement, "ID"),
165CodeSnippet.GetElementInnerText(declarationElement, "Default") ?? " ",
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)