diff --git a/src/SharpIDE.Application/Features/FileWatching/IdeFileExternalChangeHandler.cs b/src/SharpIDE.Application/Features/FileWatching/IdeFileExternalChangeHandler.cs index babea56..d467c14 100644 --- a/src/SharpIDE.Application/Features/FileWatching/IdeFileExternalChangeHandler.cs +++ b/src/SharpIDE.Application/Features/FileWatching/IdeFileExternalChangeHandler.cs @@ -32,10 +32,13 @@ public class IdeFileExternalChangeHandler var isMoveRatherThanRename = Path.GetDirectoryName(oldFolderPath) != Path.GetDirectoryName(newFolderPath); if (isMoveRatherThanRename) { - throw new NotImplementedException("Moving folders is not yet supported. Note that this should only be encountered on Linux."); + await _sharpIdeSolutionModificationService.MoveDirectory(sharpIdeFolder, sharpIdeFolder); + } + else + { + var newFolderName = Path.GetFileName(newFolderPath); + await _sharpIdeSolutionModificationService.RenameDirectory(sharpIdeFolder, newFolderName); } - var newFolderName = Path.GetFileName(newFolderPath); - await _sharpIdeSolutionModificationService.RenameDirectory(sharpIdeFolder, newFolderName); } private async Task OnFolderDeleted(string folderPath)