ignore disk events for files we save

This commit is contained in:
Matt Parker
2025-10-10 00:41:37 +10:00
parent 8791a23c19
commit f65ad7f18c
4 changed files with 24 additions and 8 deletions

View File

@@ -82,8 +82,8 @@ public sealed class IdeFileWatcher : IDisposable
// TODO: Make a note to users that they should not use files without extensions
private void HandleChanged(string fullPath)
{
if (Path.HasExtension(fullPath) is false) return;
Console.WriteLine($"FileSystemWatcher: Changed - {fullPath}");
if (Path.HasExtension(fullPath) is false) return; // we don't care about directory changes
//Console.WriteLine($"FileSystemWatcher: Changed - {fullPath}");
GlobalEvents.Instance.FileSystemWatcherInternal.FileChanged.InvokeParallelFireAndForget(fullPath);
}