Skip to content

Commit

Permalink
Merge pull request #281 from uolot/fix/codelens-error
Browse files Browse the repository at this point in the history
Fix textDocument/codeLens error when a non-TS file is open
  • Loading branch information
KostkaBrukowa authored Jul 15, 2024
2 parents 5da4d69 + 3451371 commit 3ecf6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/typescript-tools/autocommands/code_lens.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function M.setup_code_lens_autocmds()
return
end

pcall(vim.lsp.codelens.refresh)
pcall(vim.lsp.codelens.refresh, { bufnr = e.buf })
end,
group = augroup,
})
Expand Down

0 comments on commit 3ecf6b2

Please sign in to comment.