From dc7e7c7699cc01b1b6fefa97f9b496d8f447d7a1 Mon Sep 17 00:00:00 2001 From: Daniel Imfeld Date: Sun, 16 Nov 2025 14:36:48 -1000 Subject: fix(ts_ls): broken in non-Deno repo #4198 --- lsp/ts_ls.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lsp/ts_ls.lua b/lsp/ts_ls.lua index cc588007..dc71fca3 100644 --- a/lsp/ts_ls.lua +++ b/lsp/ts_ls.lua @@ -64,8 +64,8 @@ return { or vim.list_extend(root_markers, { '.git' }) -- exclude deno local deno_path = vim.fs.root(bufnr, { 'deno.json', 'deno.lock' }) - local project_root = vim.fs.root(bufnr, { root_markers }) - if deno_path and not project_root or #deno_path >= #project_root then + local project_root = vim.fs.root(bufnr, root_markers) + if deno_path and (not project_root or #deno_path >= #project_root) then return end -- We fallback to the current working directory if no project root is found -- cgit v1.2.3-70-g09d2