52 references to Folders
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
55var documentWithInvalidFolders = document.WithFolders(document.Folders.Concat("Force-Namespace-Change"));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
86actualFolderPaths.Add(string.Join(PathUtilities.DirectorySeparatorStr, newDocument.Folders));
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Rename\RenamerTests.cs (1)
98AssertEx.SetEqual(endDocument.DocumentFolders, updatedDocument.Folders);
Microsoft.CodeAnalysis.Features (10)
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (1)
159newDocumentId, FileName, text: string.Empty, folders: document.Folders);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
166var folders = document.Folders;
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (2)
128var targetNamespace = PathMetadataUtilities.TryBuildNamespaceFromFolders(document.Folders, syntaxFacts, defaultNamespace); 161var folderPath = Path.Combine([.. document.Folders]);
EditAndContinue\CommittedSolution.cs (1)
274folders: document.Folders,
ExtractInterface\AbstractExtractInterfaceService.cs (1)
191refactoringResult.DocumentToExtractFrom.Folders,
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
410var folders = generateTypeOptionsResult.ExistingDocument.Folders;
NavigateTo\RoslynNavigateToItem.cs (1)
117_activeDocument = (activeDocument.Id, activeDocument.Folders);
Navigation\INavigableItem.cs (1)
58document.Folders,
src\Analyzers\Core\CodeFixes\MatchFolderAndNamespace\AbstractChangeNamespaceToMatchFolderCodeFixProvider.cs (1)
55var documentWithInvalidFolders = document.WithFolders(document.Folders.Concat("Force-Namespace-Change"));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Extensions\Extensions.cs (1)
57var path = Path.Combine([projectDirectoryName, .. document.Folders, document.Name]);
Microsoft.CodeAnalysis.Workspaces (5)
Rename\Renamer.cs (3)
98/// <param name="newDocumentFolders">The new set of folders for the <see cref="TextDocument.Folders"/> property</param> 123if (newDocumentFolders != null && !newDocumentFolders.SequenceEqual(document.Folders)) 130newDocumentFolders ??= document.Folders;
Rename\Renamer.RenameDocumentActionSet.cs (1)
141return project.Documents.FirstOrDefault(d => d.Name == _documentName && d.Folders.SequenceEqual(_documentFolders))
Workspace\Workspace.cs (1)
2050doc.Folders,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
VisualStudioMSBuildWorkspaceTests.cs (6)
1994var folder = Assert.Single(fooDoc.Folders); 2025Assert.Single(document2.Folders); 2042Assert.Single(documentB.Folders); 3327Assert.Equal(["dir1", "dir2", "dir3"], document.Folders); 3340Assert.Equal(["Blah"], linkedDocument.Folders); 3353Assert.Equal(["..", "MyDir"], linkedDocument.Folders);
Microsoft.CodeAnalysis.Workspaces.UnitTests (15)
CommandLineProject\CommandLineProjectWorkspaceTests.cs (4)
39Assert.Equal(0, gooDoc.Folders.Count); 67Assert.Equal(0, gooDoc.Folders.Count); 71Assert.Equal(1, barDoc.Folders.Count); 72Assert.Equal("subdir", barDoc.Folders[0]);
SolutionTests\SolutionTests.cs (2)
199Assert.Equal(folders, newSolution1.GetDocument(documentId)!.Folders); 206Assert.Equal([], newSolution3.GetDocument(documentId)!.Folders);
WorkspaceTests\AdhocWorkspaceTests.cs (8)
448Assert.Equal(0, originalDoc.Folders.Count); 468Assert.Equal(2, appliedDoc.Folders.Count); 469Assert.Equal("A", appliedDoc.Folders[0]); 470Assert.Equal("B", appliedDoc.Folders[1]); 547Assert.Equal(0, originalDoc.Folders.Count); 564Assert.Equal(2, appliedDoc.Folders.Count); 565Assert.Equal("A", appliedDoc.Folders[0]); 566Assert.Equal("B", appliedDoc.Folders[1]);
WorkspaceTests\WorkspaceTests.cs (1)
56Assert.Equal(0, originalDoc.Folders.Count);
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (2)
75&& document.Folders.Count == 1 76&& document.Folders[0] == PropertiesFolderName;
Microsoft.VisualStudio.LanguageServices (10)
GenerateType\GenerateTypeDialogViewModel.cs (4)
378this.SelectedProject.Documents.Where(n => n.Name != null && n.Folders.Count > 0 && n.Name == this.FileName && this.Folders.SequenceEqual(n.Folders)).Any()) || 816if (document.Folders.Count == 0) 822Name = string.Join("\\", document.Folders) + "\\" + document.Name;
Preview\TopLevelChange.cs (3)
157solution = solution.AddDocument(oldDocument.Id, oldDocument.Name, oldText, oldDocument.Folders, oldDocument.FilePath); 161solution = solution.AddAnalyzerConfigDocument(oldDocument.Id, oldDocument.Name, SourceText.From(oldText), oldDocument.Folders, oldDocument.FilePath); 165solution = solution.AddAdditionalDocument(oldDocument.Id, oldDocument.Name, oldText, oldDocument.Folders, oldDocument.FilePath);
ProjectSystem\VisualStudioWorkspaceImpl.cs (3)
1300if (document.Folders != updatedInfo.Folders && !document.Folders.SequenceEqual(updatedInfo.Folders)) 1303$"This Workspace does not support changing a document's {nameof(document.Folders)}.");