2 writes to LanguageServiceProvider
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestHostDocument.cs (2)
105
LanguageServiceProvider
= languageServiceProvider;
171
LanguageServiceProvider
??= project.LanguageServiceProvider;
5 references to LanguageServiceProvider
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\EditorTestHostDocument.cs (4)
144
var workspace = (EditorTestWorkspace?)
LanguageServiceProvider
?.WorkspaceServices.Workspace;
148
Contract.ThrowIfNull(
LanguageServiceProvider
, $"To get a text buffer for a {nameof(TestHostDocument)}, it must have been parented in a project.");
149
var contentType =
LanguageServiceProvider
.GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType();
151
_textBuffer = workspace!.GetOrCreateBufferForPath(FilePath, contentType,
LanguageServiceProvider
.Language, InitialText);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestHostDocument.cs (1)
41
var workspace =
LanguageServiceProvider
!.WorkspaceServices.Workspace;