Skip to content

Commit 1e2cfa6

Browse files
committed
debug: add tree buffer detection logging
1 parent 32f05ee commit 1e2cfa6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/claudecode/init.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@ function M._create_commands()
608608
local current_ft = (vim.bo and vim.bo.filetype) or ""
609609
local current_bufname = (vim.api and vim.api.nvim_buf_get_name and vim.api.nvim_buf_get_name(0)) or ""
610610

611+
-- Debug logging for tree buffer detection
612+
logger.debug("command", "Tree buffer detection:")
613+
logger.debug("command", " current_ft: '" .. tostring(current_ft) .. "'")
614+
logger.debug("command", " current_bufname: '" .. tostring(current_bufname) .. "'")
615+
611616
local is_tree_buffer = current_ft == "NvimTree"
612617
or current_ft == "neo-tree"
613618
or current_ft == "oil"
@@ -616,6 +621,8 @@ function M._create_commands()
616621
or string.match(current_bufname, "NvimTree")
617622
or string.match(current_bufname, "minifiles://")
618623

624+
logger.debug("command", " is_tree_buffer: " .. tostring(is_tree_buffer))
625+
619626
if is_tree_buffer then
620627
local integrations = require("claudecode.integrations")
621628
local files, error = integrations.get_selected_files_from_tree()

0 commit comments

Comments
 (0)