Skip to content

Commit 5a7038a

Browse files
committed
feat: warn user if dirty buffer was discarded on diff creation
1 parent b93cc93 commit 5a7038a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/claudecode/diff.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ function M._setup_blocking_diff(params, resolution_callback)
756756
message = "Failed to discard unsaved changes before creating diff",
757757
data = discard_err,
758758
})
759+
else
760+
logger.warn("diff", "Discarded unsaved changes in " .. params.old_file_path)
759761
end
760762
end
761763
end

0 commit comments

Comments
 (0)