18 references to SnippetExpansionClient
Microsoft.VisualStudio.LanguageServices (18)
Snippets\AbstractSnippetCommandHandler.cs (1)
321
protected bool AreSnippetsEnabledWithClient(EditorCommandArgs args, [NotNullWhen(true)] out
SnippetExpansionClient
? snippetExpansionClient)
Snippets\ISnippetExpansionClientFactory.cs (2)
14
SnippetExpansionClient
? TryGetSnippetExpansionClient(ITextView textView);
15
SnippetExpansionClient
GetOrCreateSnippetExpansionClient(Document document, ITextView textView, ITextBuffer subjectBuffer);
Snippets\SnippetExpansionClient.cs (2)
586
static void EnsureRegisteredForModelUpdatedEvents(
SnippetExpansionClient
client, Controller controller)
1198
internal readonly struct TestAccessor(
SnippetExpansionClient
instance)
Snippets\SnippetExpansionClientFactory.cs (8)
45
public
SnippetExpansionClient
? TryGetSnippetExpansionClient(ITextView textView)
49
_ = textView.Properties.TryGetProperty(typeof(
SnippetExpansionClient
), out
SnippetExpansionClient
? expansionClient);
53
public
SnippetExpansionClient
GetOrCreateSnippetExpansionClient(Document document, ITextView textView, ITextBuffer subjectBuffer)
57
if (!textView.Properties.TryGetProperty(typeof(
SnippetExpansionClient
), out
SnippetExpansionClient
? expansionClient))
60
textView.Properties.AddProperty(typeof(
SnippetExpansionClient
), expansionClient);
66
protected virtual
SnippetExpansionClient
CreateSnippetExpansionClient(Document document, ITextView textView, ITextBuffer subjectBuffer)
Snippets\SnippetFunctions\AbstractSnippetFunction.cs (2)
20
protected readonly
SnippetExpansionClient
snippetExpansionClient;
22
public AbstractSnippetFunction(
SnippetExpansionClient
snippetExpansionClient, ITextBuffer subjectBuffer, IThreadingContext threadingContext)
Snippets\SnippetFunctions\SnippetFunctionClassName.cs (1)
21
public SnippetFunctionClassName(
SnippetExpansionClient
snippetExpansionClient, ITextBuffer subjectBuffer, string fieldName, IThreadingContext threadingContext)
Snippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
25
SnippetExpansionClient
snippetExpansionClient,
Snippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (1)
23
SnippetExpansionClient
snippetExpansionClient,