fix directory rename from disk

This commit is contained in:
Matt Parker
2025-10-21 19:03:35 +10:00
parent 4496f44a21
commit fb489ec429
4 changed files with 7 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ public class IdeFileExternalChangeHandler
// TODO: Test - this most likely only will ever be called on linux - windows and macos(?) does delete + create on rename of folders
private async Task OnFolderRenamed(string oldFolderPath, string newFolderPath)
{
var sharpIdeFolder = SolutionModel.AllFolders.SingleOrDefault(f => f.Path == newFolderPath);
var sharpIdeFolder = SolutionModel.AllFolders.SingleOrDefault(f => f.Path == oldFolderPath);
if (sharpIdeFolder is null)
{
return;