feat(logs): show full paths in lsp logs (#33886)

feat(logs): show full path of short_src in lsp logs

Problem:
- Cannot gf to info.short_src printed in the logs since only the last 16
  characters are printed

Solution:
- Print full info.short_src and remove ...
This commit is contained in:
Anakin Childerhose
2025-05-17 12:57:22 -04:00
committed by GitHub
parent 81bb7613f9
commit 4eed85f9bd

View File

@@ -132,10 +132,10 @@ local function create_logger(level, levelnr)
end
local info = debug.getinfo(2, 'Sl')
local header = string.format(
'[%s][%s] ...%s:%s',
'[%s][%s] %s:%s',
level,
os.date(log_date_format),
info.short_src:sub(-16),
info.short_src,
info.currentline
)
local parts = { header }