refactor(#2826): add lifecycle logging to all Explorer members

This commit is contained in:
Alexander Courtis
2025-06-16 13:55:35 +10:00
parent fc81249d4f
commit 54439447f1
9 changed files with 63 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ local Window = Class:extend()
---@protected
---@param args WindowArgs
function Window:new(args)
args.explorer:log_lifecycle("Window:new")
args.explorer:log_new("Window")
self.explorer = args.explorer
self.adaptive_size = false
@@ -86,6 +86,10 @@ function Window:new(args)
self.initial_width = self:get_width()
end
function Window:destroy()
self.explorer:log_destroy("Window")
end
-- The initial state of a tab
local tabinitial = {
-- The position of the cursor { line, column }