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