29 references to WorkspaceFileTextLoader
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
166masWorkspace!.OnDocumentClosed(info.DocumentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.FilePath, info.Encoding));
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveSession.cs (1)
251new WorkspaceFileTextLoader(solution.Services, initializationScriptPath, defaultEncoding: null));
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
364loader: new WorkspaceFileTextLoader(workspace.Services.SolutionServices, sourceFile.Path, Encoding.UTF8),
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
326workspace.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, fileInfo.TemporaryFilePath, MetadataAsSourceGeneratedFileInfo.Encoding));
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
88loader: loadFileFromDisk ? new WorkspaceFileTextLoader(services, TemporaryFilePath, Encoding) : null,
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
419workspace.OnDocumentClosed(info.DocumentId, new WorkspaceFileTextLoader(workspace.Services.SolutionServices, filePath, info.Encoding));
Microsoft.CodeAnalysis.Features.UnitTests (7)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (6)
90loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, encodingA), 97loader: new WorkspaceFileTextLoader(solution.Services, sourceFileB.Path, encodingB), 104loader: new WorkspaceFileTextLoader(solution.Services, sourceFileC.Path, encodingC), 111loader: new WorkspaceFileTextLoader(solution.Services, sourceFileE.Path, encodingE), 151solution = solution.WithDocumentTextLoader(documentIdB, new WorkspaceFileTextLoader(solution.Services, sourceFileB.Path, encodingB), PreservationMode.PreserveValue); 4856loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, Encoding.UTF8),
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
43loader: new WorkspaceFileTextLoader(solution.Services, sourceFileA.Path, Encoding.UTF8),
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)
442new WorkspaceFileTextLoader(_solutionServices, info.FilePath, encoding),
MSBuild\MSBuildWorkspace.cs (1)
474.WithTextLoader(new WorkspaceFileTextLoader(Services.SolutionServices, fullPath, text.Encoding));
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SolutionTests\SolutionTests.cs (4)
3330.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 3379.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 3446.AddDocument(did, "x", new WorkspaceFileTextLoader(workspace.Services.SolutionServices, file.Path, Encoding.UTF8)); 3945.AddDocument(did, "x", new WorkspaceFileTextLoader(solution.Services, @"C:\doesnotexist.cs", Encoding.UTF8))
Microsoft.VisualStudio.LanguageServices (5)
Implementation\AbstractEditorFactory.cs (1)
325var fileLoader = new WorkspaceFileTextLoader(solution.Services, filePath, defaultEncoding: null);
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
299var fileLoader = new WorkspaceFileTextLoader(Services.SolutionServices, filePath, defaultEncoding: null);
ProjectSystem\VisualStudioWorkspaceImpl.OpenFileTracker.cs (3)
330w.OnDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null)); 334w.OnAdditionalDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null)); 339w.OnAnalyzerConfigDocumentClosed(documentId, new WorkspaceFileTextLoader(w.Services.SolutionServices, moniker, defaultEncoding: null));
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\WorkspaceFileTextLoaderNoException.cs (1)
24: base(services, path, defaultEncoding)
Client\RemoteLanguageServiceWorkspace.cs (1)
337loader: new WorkspaceFileTextLoader(Services.SolutionServices, filePath, defaultEncoding: null),