Skip to content

Commit 843479b

Browse files
committed
debug: add logging to investigate path comparison issue
1 parent da42a15 commit 843479b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/claudecode/selection.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,12 @@ function M.send_at_mention_for_visual_selection(line1, line2)
694694
current_buf_name = current_buf_name:gsub("^minifiles://[^/]*/", "")
695695
end
696696

697+
-- Debug logging to understand the path comparison issue
698+
logger.debug("selection", "Path comparison debug:")
699+
logger.debug("selection", " sel_to_send.filePath: '" .. tostring(sel_to_send.filePath) .. "'")
700+
logger.debug("selection", " raw_current_buf_name: '" .. tostring(raw_current_buf_name) .. "'")
701+
logger.debug("selection", " current_buf_name (after extraction): '" .. tostring(current_buf_name) .. "'")
702+
697703
if sel_to_send.filePath ~= current_buf_name then
698704
logger.warn(
699705
"selection",

0 commit comments

Comments
 (0)