1 write to _threadingContext
Microsoft.VisualStudio.LanguageServices (1)
Snippets\SnippetExpansionClient.cs (1)
102_threadingContext = threadingContext;
11 references to _threadingContext
Microsoft.VisualStudio.LanguageServices (11)
Snippets\SnippetExpansionClient.cs (11)
121_threadingContext.ThrowIfNotOnUIThread(); 143pFunc = new SnippetFunctionSimpleTypeName(this, SubjectBuffer, bstrFieldName, param, _threadingContext); 146pFunc = new SnippetFunctionClassName(this, SubjectBuffer, bstrFieldName, _threadingContext); 149pFunc = new SnippetFunctionGenerateSwitchCases(this, SubjectBuffer, bstrFieldName, param, _threadingContext); 159_threadingContext.ThrowIfNotOnUIThread(); 231_threadingContext.JoinableTaskFactory.Run(() => AddReferencesAndImportsAsync( 546var symbols = _threadingContext.JoinableTaskFactory.Run(() => GetReferencedSymbolsToLeftOfCaretAsync(document, caretPosition: triggerSpan.End, cancellationToken)); 587client._threadingContext.ThrowIfNotOnUIThread(); 705_threadingContext.ThrowIfNotOnUIThread(); 706_threadingContext.JoinableTaskFactory.Run(() => OnModelUpdatedAsync(e.NewModel, CancellationToken.None)); 786await _threadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);