5 instantiations of WatchedDirectory
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LoadedProject.cs (1)
60_sourceFileChangeContext = fileWatcher.CreateContext([new(_projectDirectory, [".cs", ".cshtml", ".razor"])]);
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
LspFileChangeWatcherTests.cs (1)
60var context = lspFileChangeWatcher.CreateContext([new ProjectSystem.WatchedDirectory(tempDirectory.Path, extensionFilters: [])]);
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
113return referenceDirectories.SelectAsArray(static d => new WatchedDirectory(d, [".dll"]));
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
213LanguageNames.VisualBasic => [new(rootPath, [".vb"])], 214LanguageNames.CSharp => [new(rootPath, [".cs", ".razor", ".cshtml"])],
22 references to WatchedDirectory
Microsoft.CodeAnalysis.LanguageServer (12)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (1)
44public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories)
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (5)
44public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 49private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 71public FileChangeContext(ImmutableArray<WatchedDirectory> watchedDirectories, LspFileChangeWatcher lspFileChangeWatcher) 112if (WatchedDirectory.FilePathCoveredByWatchedDirectories(_watchedDirectories, filePath, s_stringComparison)) 141if (WatchedDirectory.FilePathCoveredByWatchedDirectories(_watchedDirectories, filePath, s_stringComparison))
HostWorkspace\FileWatching\SimpleFileChangeWatcher.cs (6)
20public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 25private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 33public FileChangeContext(ImmutableArray<WatchedDirectory> watchedDirectories) 35var watchedDirectoriesBuilder = ImmutableArray.CreateBuilder<WatchedDirectory>(watchedDirectories.Length); 38foreach (var watchedDirectory in watchedDirectories) 73if (WatchedDirectory.FilePathCoveredByWatchedDirectories(_watchedDirectories, filePath, StringComparison.Ordinal))
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\ProjectSystem\FileWatchedPortableExecutableReferenceFactory.cs (1)
74static ImmutableArray<WatchedDirectory> GetAdditionalWatchedDirectories()
Workspace\ProjectSystem\IFileChangeWatcher.cs (3)
13IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories); 55public static bool FilePathCoveredByWatchedDirectories(ImmutableArray<WatchedDirectory> watchedDirectories, string filePath, StringComparison stringComparison) 57foreach (var watchedDirectory in watchedDirectories)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
202static ImmutableArray<WatchedDirectory> GetWatchedDirectories(string? language, string? filePath)
Microsoft.VisualStudio.LanguageServices (5)
ProjectSystem\FileChangeWatcher.cs (5)
88public IFileChangeContext CreateContext(ImmutableArray<WatchedDirectory> watchedDirectories) 342private readonly ImmutableArray<WatchedDirectory> _watchedDirectories; 360public Context(FileChangeWatcher fileChangeWatcher, ImmutableArray<WatchedDirectory> watchedDirectories) 365foreach (var watchedDirectory in watchedDirectories) 396if (WatchedDirectory.FilePathCoveredByWatchedDirectories(_watchedDirectories, filePath, StringComparison.OrdinalIgnoreCase))