1 type derived from WorkspaceFileTextLoader
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\Projects\WorkspaceFileTextLoaderNoException.cs (1)
21internal sealed class WorkspaceFileTextLoaderNoException : WorkspaceFileTextLoader
30 instantiations of WorkspaceFileTextLoader
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveSession.cs (1)
237new WorkspaceFileTextLoader(solution.Services, initializationScriptPath, defaultEncoding: null));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
536loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, encodingA), 543loader: new WorkspaceFileTextLoader(solution.Services, sourceFileB.Path, encodingB), 550loader: new WorkspaceFileTextLoader(solution.Services, sourceFileC.Path, encodingC), 557loader: new WorkspaceFileTextLoader(solution.Services, sourceFileE.Path, encodingE), 597solution = solution.WithDocumentTextLoader(documentIdB, new WorkspaceFileTextLoader(solution.Services, sourceFileB.Path, encodingB), PreservationMode.PreserveValue); 4480loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, Encoding.UTF8), 4567loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, Encoding.UTF8), 4634loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, Encoding.UTF8), 4699loader: new WorkspaceFileTextLoader(workspace.Services.SolutionServices, sourceFile.Path, Encoding.UTF8),
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
311workspace.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, fileInfo.TemporaryFilePath, MetadataAsSourceGeneratedFileInfo.Encoding));
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
89loader: loadFileFromDisk ? new WorkspaceFileTextLoader(services, TemporaryFilePath, Encoding) : null,
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
383workspace.OnDocumentClosed(info.DocumentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, filePath, info.Encoding));
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
CompilerInvocation.cs (1)
110loader: new WorkspaceFileTextLoader(languageServices.SolutionServices, mappedPath, parsedCommandLine.Encoding));
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\CommandLineProject.cs (2)
132loader: new WorkspaceFileTextLoader(languageServices.SolutionServices, absolutePath, commandLineArguments.Encoding), 159loader: new WorkspaceFileTextLoader(languageServices.SolutionServices, absolutePath, commandLineArguments.Encoding),
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
95var textLoader = new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.Workspace.Services.SolutionServices, fullPath, defaultEncoding: null); 408documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.Workspace.Services.SolutionServices, filePath, defaultEncoding: null)));
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
455new WorkspaceFileTextLoader(_solutionServices, info.FilePath, encoding),
MSBuild\MSBuildWorkspace.cs (1)
455.WithTextLoader(new WorkspaceFileTextLoader(Services.SolutionServices, fullPath, text.Encoding));
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionTests.cs (4)
2653.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 2712.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 2779.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 3273.AddDocument(did, "x", new WorkspaceFileTextLoader(solution.Services, @"C:\doesnotexist.cs", Encoding.UTF8))
Microsoft.VisualStudio.LanguageServices (5)
Implementation\AbstractEditorFactory.cs (1)
329var fileLoader = new WorkspaceFileTextLoader(solution.Services, filePath, defaultEncoding: null);
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
294var fileLoader = new WorkspaceFileTextLoader(Services.SolutionServices, filePath, defaultEncoding: null);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (3)
336w.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null)); 340w.OnAdditionalDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null)); 345w.OnAnalyzerConfigDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null));
Microsoft.VisualStudio.LanguageServices.LiveShare (1)
Client\RemoteLanguageServiceWorkspace.cs (1)
353loader: new WorkspaceFileTextLoader(Services.SolutionServices, filePath, defaultEncoding: null),
3 references to WorkspaceFileTextLoader
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
95var textLoader = new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.Workspace.Services.SolutionServices, fullPath, defaultEncoding: null);
Microsoft.VisualStudio.LanguageServices (2)
Implementation\AbstractEditorFactory.cs (1)
329var fileLoader = new WorkspaceFileTextLoader(solution.Services, filePath, defaultEncoding: null);
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
294var fileLoader = new WorkspaceFileTextLoader(Services.SolutionServices, filePath, defaultEncoding: null);