Skip to content

Commit

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

var attributes = File.GetAttributes(path);
if(attributes.HasFlag(FileAttributes.Hidden)) return;

Expand Down

0 comments on commit 6fc0c3c

Please sign in to comment.