fix file updates

This commit is contained in:
Matt Parker
2025-10-19 13:41:21 +10:00
parent 302ee8edd2
commit 13e0db3dbc
2 changed files with 9 additions and 11 deletions

View File

@@ -33,12 +33,6 @@ public class IdeOpenTabsFileManager(RoslynAnalysis roslynAnalysis)
var newLazyTask = new Lazy<Task<string>>(() => Task.FromResult(newText));
_openFiles[file] = newLazyTask;
// Potentially should be event based?
if (file.IsRoslynWorkspaceFile)
{
await _roslynAnalysis.UpdateDocument(file, newText);
GlobalEvents.Instance.SolutionAltered.InvokeParallelFireAndForget();
}
}
public async Task ReloadFileFromDisk(SharpIdeFile file)