8 references to WorkspaceFileTextLoader
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
230var newLoader = new WorkspaceFileTextLoader(metadataWorkspace.CurrentSolution.Services, fileInfo.TemporaryFilePath, MetadataAsSourceGeneratedFileInfo.Encoding); 289workspace.OnDocumentClosed(documentIdInfo.DocumentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, fileInfo.TemporaryFilePath, MetadataAsSourceGeneratedFileInfo.Encoding));
MetadataAsSource\MetadataAsSourceFileService.cs (1)
216workspace.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, filePath, defaultEncoding: null));
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\CommandLineProject.cs (1)
168loader: new WorkspaceFileTextLoader(languageServices.SolutionServices, absolutePath, commandLineArguments.Encoding),
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
420documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.SolutionServices, filePath, defaultEncoding: null)));
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
98=> new WorkspaceFileTextLoader(this.SolutionServices, fullPath, defaultEncoding: null);
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
359new WorkspaceFileTextLoader(_solutionServices, info.FilePath, encoding),
MSBuild\MSBuildWorkspace.cs (1)
481.WithTextLoader(new WorkspaceFileTextLoader(Services.SolutionServices, fullPath, text.Encoding));