18 references to Instance
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\FileWatching\DefaultFileChangeWatcher.FileChangeContext.cs (2)
78
return NoOpWatchedFile.
Instance
;
83
return NoOpWatchedFile.
Instance
;
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (1)
142
return NoOpWatchedFile.
Instance
;
Microsoft.CodeAnalysis.LanguageServer.UnitTests (14)
DefaultFileChangeWatcherTests.cs (14)
78
Assert.Same(NoOpWatchedFile.
Instance
, watchedFile);
93
Assert.NotSame(NoOpWatchedFile.
Instance
, watchedFile);
106
Assert.Same(NoOpWatchedFile.
Instance
, watchedFile);
121
Assert.NotSame(NoOpWatchedFile.
Instance
, watchedFile);
137
Assert.NotSame(NoOpWatchedFile.
Instance
, watcher1);
138
Assert.NotSame(NoOpWatchedFile.
Instance
, watcher2);
154
Assert.Same(NoOpWatchedFile.
Instance
, watchedFile);
186
Assert.Same(NoOpWatchedFile.
Instance
, csWatcher);
187
Assert.Same(NoOpWatchedFile.
Instance
, vbWatcher);
190
Assert.NotSame(NoOpWatchedFile.
Instance
, txtWatcher);
207
Assert.Same(NoOpWatchedFile.
Instance
, watchedFile);
223
Assert.NotSame(NoOpWatchedFile.
Instance
, watchedFile);
238
Assert.NotSame(NoOpWatchedFile.
Instance
, watchedFile);
254
Assert.NotSame(NoOpWatchedFile.
Instance
, watcher2);
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\FileChangeWatcher.cs (1)
397
return NoOpWatchedFile.
Instance
;