Skip to content

Commit 6bfb8d9

Browse files
committed
chore(renderer): add re-render debug logging
1 parent f5a38bc commit 6bfb8d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lua/opencode/ui/renderer.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
local state = require('opencode.state')
2+
local config = require('opencode.config')
23
local formatter = require('opencode.ui.formatter')
34
local output_window = require('opencode.ui.output_window')
45
local Promise = require('opencode.promise')
@@ -88,6 +89,11 @@ function M.render_full_session()
8889
return
8990
end
9091

92+
if config.debug.enabled then
93+
-- TODO: I want to track full renders for now, remove at some point
94+
vim.notify('rendering full session\n' .. debug.traceback(), vim.log.levels.WARN)
95+
end
96+
9197
fetch_session():and_then(M._render_full_session_data)
9298
end
9399

0 commit comments

Comments
 (0)