20 references to Instance
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (2)
55return NoOpWatchedFile.Instance; 59return NoOpWatchedFile.Instance;
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
142return NoOpWatchedFile.Instance;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (16)
DefaultFileChangeWatcherTests.cs (16)
126Assert.Same(NoOpWatchedFile.Instance, watchedFile); 141Assert.NotSame(NoOpWatchedFile.Instance, watchedFile); 156Assert.NotSame(NoOpWatchedFile.Instance, watchedFile); 170Assert.NotSame(NoOpWatchedFile.Instance, watchedFile); 187Assert.NotSame(NoOpWatchedFile.Instance, watchedFile1); 188Assert.NotSame(NoOpWatchedFile.Instance, watchedFile2); 208Assert.NotSame(NoOpWatchedFile.Instance, watcher1); 209Assert.NotSame(NoOpWatchedFile.Instance, watcher2); 225Assert.Same(NoOpWatchedFile.Instance, watchedFile); 255Assert.Same(NoOpWatchedFile.Instance, csWatcher); 256Assert.Same(NoOpWatchedFile.Instance, vbWatcher); 259Assert.NotSame(NoOpWatchedFile.Instance, txtWatcher); 276Assert.Same(NoOpWatchedFile.Instance, watchedFile); 292Assert.NotSame(NoOpWatchedFile.Instance, watchedFile); 307Assert.NotSame(NoOpWatchedFile.Instance, watchedFile); 323Assert.NotSame(NoOpWatchedFile.Instance, watcher2);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
397return NoOpWatchedFile.Instance;