Update SharpIdeCodeEdit.cs

This commit is contained in:
Matt Parker
2025-10-08 22:54:19 +10:00
parent 8f1f510625
commit 9d00a6d033

View File

@@ -123,6 +123,7 @@ public partial class SharpIdeCodeEdit : CodeEdit
_ = Task.GodotRun(async () =>
{
var affectedFiles = await RoslynAnalysis.ApplyCodeActionAsync(codeAction);
// TODO: This can be more efficient - we can just update in memory and proceed with highlighting etc. Save to disk in background.
foreach (var (affectedFile, updatedText) in affectedFiles)
{
await Singletons.FileManager.UpdateInMemoryIfOpenAndSaveAsync(affectedFile, updatedText);