2 writes to _languageServiceProvider
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Workspaces\TestHostDocument.cs (2)
129_languageServiceProvider = languageServiceProvider; 199_languageServiceProvider ??= project.LanguageServiceProvider;
5 references to _languageServiceProvider
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (5)
Workspaces\TestHostDocument.cs (5)
64var workspace = _languageServiceProvider!.WorkspaceServices.Workspace; 253var workspace = (TestWorkspace?)_languageServiceProvider?.WorkspaceServices.Workspace; 257Contract.ThrowIfNull(_languageServiceProvider, $"To get a text buffer for a {nameof(TestHostDocument)}, it must have been parented in a project."); 258var contentType = _languageServiceProvider.GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType(); 260_textBuffer = workspace!.GetOrCreateBufferForPath(FilePath, contentType, _languageServiceProvider.Language, _initialText);