Skip to content

Commit 3ecf6b2

Browse files
Merge pull request #281 from uolot/fix/codelens-error
Fix textDocument/codeLens error when a non-TS file is open
2 parents 5da4d69 + 3451371 commit 3ecf6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/typescript-tools/autocommands/code_lens.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function M.setup_code_lens_autocmds()
2525
return
2626
end
2727

28-
pcall(vim.lsp.codelens.refresh)
28+
pcall(vim.lsp.codelens.refresh, { bufnr = e.buf })
2929
end,
3030
group = augroup,
3131
})

0 commit comments

Comments
 (0)