1 write to Documents
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
171Documents = documents;
21 references to Documents
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Workspaces\LspMiscellaneousFilesWorkspace.cs (1)
66var id = projectInfo.Documents.Single().Id;
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\ProjectInfo.cs (2)
299var newDocuments = documents ?? Documents; 310newDocuments == Documents &&
Workspace\Solution\ProjectState.cs (1)
120DocumentStates = new TextDocumentStates<DocumentState>(projectInfoFixed.Documents, info => CreateDocument(info, parseOptions, loadTextOptions));
Workspace\Solution\SolutionCompilationState.cs (1)
607UpdateDocuments<DocumentState>(info.Documents);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
VisualStudioMSBuildWorkspaceTests.cs (1)
103Assert.Single(projectInfo.Documents.Where(d => d.Name == "CSharpClass.cs"));
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
CommandLineProject\CommandLineProjectTests.cs (9)
27var docInfo = info.Documents.First(); 58var docInfo = info.Documents.First(); 69var docInfo = info.Documents.First(); 81var docInfo = info.Documents.First(); 92var docInfo = info.Documents.First(); 104var docInfo = info.Documents.First(); 115var docInfo = info.Documents.First(); 126var firstDoc = info.Documents.Single(); 152var firstDoc = info.Documents.Single();
SolutionTests\ProjectInfoTests.cs (5)
78Assert.Same(documentInfo, ((ImmutableArray<DocumentInfo>)info1.Documents).Single()); 81Assert.True(((ImmutableArray<DocumentInfo>)info2.Documents).IsEmpty); 84Assert.True(((ImmutableArray<DocumentInfo>)info3.Documents).IsEmpty); 87Assert.True(((ImmutableArray<DocumentInfo>)info4.Documents).IsEmpty); 200SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithDocuments(value), opt => opt.Documents, documentInfo, allowDuplicates: false);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
280OnDocumentOpened(projectInfo.Documents.Single().Id, sourceTextContainer);