From aaa807fb2ea8d3caf41c153a174c6b7e472a8428 Mon Sep 17 00:00:00 2001 From: GR3YH4TT3R93 <76727386+GR3YH4TT3R93@users.noreply.github.com> Date: Sun, 24 Aug 2025 08:47:33 -0700 Subject: feat(vue_ls): preliminary typescript-tools support #4030 This commit adds preliminary `typescript-tools` support for `vue_ls`. This is to allow for a smooth transition if support for `typescript.tsserverRequest` is added. --- lsp/vue_ls.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lsp/vue_ls.lua b/lsp/vue_ls.lua index caa2ced8..95e09e20 100644 --- a/lsp/vue_ls.lua +++ b/lsp/vue_ls.lua @@ -32,6 +32,7 @@ return { local function typescriptHandler(_, result, context) local ts_client = vim.lsp.get_clients({ bufnr = context.bufnr, name = 'ts_ls' })[1] or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'vtsls' })[1] + or vim.lsp.get_clients({ bufnr = context.bufnr, name = 'typescript-tools' })[1] if not ts_client then -- there can sometimes be a short delay until `ts_ls`/`vtsls` are attached so we retry for a few times until it is ready @@ -41,7 +42,10 @@ return { typescriptHandler(_, result, context) end, 100) else - vim.notify('Could not find `ts_ls` or `vtsls` lsp client, required by `vue_ls`.', vim.log.levels.ERROR) + vim.notify( + 'Could not find `ts_ls`, `vtsls`, or `typescript-tools` lsp client required by `vue_ls`.', + vim.log.levels.ERROR + ) end return end -- cgit v1.2.3-70-g09d2