Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikMennen committed Nov 13, 2023
1 parent c549e37 commit 19bdb73
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/OneWare.ProjectExplorer/Services/ProjectWatchInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ private async Task ProcessAsync(string path, IReadOnlyCollection<FileSystemEvent
{
try
{
if (!File.Exists(path) && changes.Last().ChangeType is WatcherChangeTypes.Deleted && _root.Search(path) is {} deletedEntry)
if (!File.Exists(path))
{
await _projectExplorerService.RemoveAsync(deletedEntry);
if(changes.Last().ChangeType is WatcherChangeTypes.Deleted && _root.Search(path) is {} deletedEntry)
await _projectExplorerService.RemoveAsync(deletedEntry);
return;
}

Expand Down

0 comments on commit 19bdb73

Please sign in to comment.