file change handling

This commit is contained in:
Matt Parker
2025-10-17 20:33:54 +10:00
parent ffdadf7a79
commit 882382bbd4
6 changed files with 20 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
using System.Collections.Concurrent;
using SharpIDE.Application.Features.Analysis;
using SharpIDE.Application.Features.Events;
using SharpIDE.Application.Features.SolutionDiscovery;
namespace SharpIDE.Application.Features.FilePersistence;
@@ -59,6 +60,7 @@ public class IdeFileManager
var text = await GetFileTextAsync(file);
await WriteAllText(file, text);
file.IsDirty.Value = false;
GlobalEvents.Instance.IdeFileSavedToDisk.InvokeParallelFireAndForget(file);
}
public async Task UpdateInMemoryIfOpenAndSaveAsync(SharpIdeFile file, string newText)