Skip to content

Commit e6fcf79

Browse files
committed
feat: warn user if dirty buffer was discarded on diff creation
1 parent 3e6e0a5 commit e6fcf79

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
@@ -1132,6 +1132,8 @@ function M._setup_blocking_diff(params, resolution_callback)
11321132
message = "Failed to discard unsaved changes before creating diff",
11331133
data = discard_err,
11341134
})
1135+
else
1136+
logger.warn("diff", "Discarded unsaved changes in " .. params.old_file_path)
11351137
end
11361138
end
11371139
end

0 commit comments

Comments
 (0)