25 references to Folders
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildWorkspace.cs (3)
464
var relativePath = (info.
Folders
!= null && info.
Folders
.Count > 0)
465
? Path.Combine(Path.Combine([.. info.
Folders
]), fileName)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
398
info.Id, info.FilePath, info.
Folders
, ExportProvider,
446
var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.
Folders
, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (14)
CommandLineProject\CommandLineProjectTests.cs (9)
28
Assert.Equal(0, docInfo.
Folders
.Count);
59
Assert.Equal(0, docInfo.
Folders
.Count);
70
Assert.Equal(1, docInfo.
Folders
.Count);
71
Assert.Equal("subdir", docInfo.
Folders
[0]);
82
Assert.Equal(0, docInfo.
Folders
.Count);
93
Assert.Equal(1, docInfo.
Folders
.Count);
94
Assert.Equal("subdir", docInfo.
Folders
[0]);
105
Assert.Equal(0, docInfo.
Folders
.Count);
116
Assert.Equal(0, docInfo.
Folders
.Count);
SolutionTests\DocumentInfoTests.cs (5)
75
Assert.Equal("folder", ((ImmutableArray<string>)info1.
Folders
).Single());
78
Assert.True(((ImmutableArray<string>)info2.
Folders
).IsEmpty);
81
Assert.True(((ImmutableArray<string>)info3.
Folders
).IsEmpty);
84
Assert.True(((ImmutableArray<string>)info4.
Folders
).IsEmpty);
115
SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithFolders(value), opt => opt.
Folders
, "folder", allowDuplicates: true);
Microsoft.VisualStudio.LanguageServices (6)
ProjectSystem\VisualStudioWorkspaceImpl.AddAdditionalDocumentUndoUnit.cs (1)
24
=> fromProject.AddAdditionalDocument(DocumentInfo.Name, Text, DocumentInfo.
Folders
, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddAnalyzerConfigDocumentUndoUnit.cs (1)
23
=> fromProject.AddAnalyzerConfigDocument(DocumentInfo.Name, Text, DocumentInfo.
Folders
, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddDocumentUndoUnit.cs (1)
23
=> fromProject.AddDocument(DocumentInfo.Name, Text, DocumentInfo.
Folders
, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.cs (3)
776
var folders = info.
Folders
.AsEnumerable();
1300
if (document.Folders != updatedInfo.
Folders
&& !document.Folders.SequenceEqual(updatedInfo.
Folders
))