1 write to ThreadingContext
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\CodeModelState.cs (1)
42this.ThreadingContext = threadingContext;
13 references to ThreadingContext
Microsoft.VisualStudio.LanguageServices.Implementation (13)
CodeModel\FileCodeModel.cs (7)
88_codeElementTable = new CleanableWeakComHandleTable<SyntaxNodeKey, EnvDTE.CodeElement>(state.ThreadingContext); 344var formatted = State.ThreadingContext.JoinableTaskFactory.Run(async () => 414document = State.ThreadingContext.JoinableTaskFactory.Run( 436=> State.ThreadingContext.JoinableTaskFactory.Run(() => 443=> State.ThreadingContext.JoinableTaskFactory.Run(() => 450=> State.ThreadingContext.JoinableTaskFactory.Run(() => 701var newDocument = State.ThreadingContext.JoinableTaskFactory.Run(async () =>
CodeModel\InternalElements\AbstractCodeElement.cs (1)
142=> State.ThreadingContext.JoinableTaskFactory.Run(() => GetDocument().GetLineFormattingOptionsAsync(CancellationToken.None).AsTask());
CodeModel\RootCodeModel.cs (5)
130=> this.State.ThreadingContext.JoinableTaskFactory.Run(async () => 136await this.State.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(); 142=> this.State.ThreadingContext.JoinableTaskFactory.Run(async () => 154await this.State.ThreadingContext.JoinableTaskFactory.SwitchToMainThreadAsync(); 169=> this.State.ThreadingContext.JoinableTaskFactory.Run(async () =>