Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
savpek committed Jun 6, 2020
1 parent a62d7d6 commit e90ea72
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/OmniSharp.Host/FileWatching/ManualFileSystemWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public void Notify(string filePath, FileChangeType changeType = FileChangeType.U
{
if(changeType == FileChangeType.DirectoryDelete)
{
foreach(var matchingCallback in _callbacksMap.AsEnumerable().Where(x => x.Key.StartsWith(filePath + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)))
{
matchingCallback.Value.Invoke(matchingCallback.Key, FileChangeType.Delete);
}

_folderCallbacks.Invoke(filePath, FileChangeType.DirectoryDelete);
}

Expand Down

0 comments on commit e90ea72

Please sign in to comment.