From 05fa493b6bc0391dd0d41f686deac20093fbc5c3 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Wed, 29 Oct 2025 21:49:59 +1000 Subject: [PATCH] fix file rename --- .../Features/FileWatching/FileChangedService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpIDE.Application/Features/FileWatching/FileChangedService.cs b/src/SharpIDE.Application/Features/FileWatching/FileChangedService.cs index c8e18f1..df0d196 100644 --- a/src/SharpIDE.Application/Features/FileWatching/FileChangedService.cs +++ b/src/SharpIDE.Application/Features/FileWatching/FileChangedService.cs @@ -169,7 +169,7 @@ public class FileChangedService(RoslynAnalysis roslynAnalysis, IdeOpenTabsFileMa var oldCts = Interlocked.Exchange(ref _updateSolutionDiagnosticsCts, newCts); await oldCts.CancelAsync(); oldCts.Dispose(); - await _roslynAnalysis.MoveDocument(file, oldFilePath); + await _roslynAnalysis.RenameDocument(file, oldFilePath); GlobalEvents.Instance.SolutionAltered.InvokeParallelFireAndForget(); await _roslynAnalysis.UpdateSolutionDiagnostics(newCts.Token); }