From 664de12a7816dfa348bb475607edfa4fe0122025 Mon Sep 17 00:00:00 2001 From: An Hoang Date: Mon, 5 Jun 2023 07:48:56 +0700 Subject: fix(astro): correct the typescript.tsdk path (#2649) It's supposed to be a path to the TypeScript server folder, not a file. --- lua/lspconfig/server_configurations/astro.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/astro.lua b/lua/lspconfig/server_configurations/astro.lua index 6a70c680..c28dcb6e 100644 --- a/lua/lspconfig/server_configurations/astro.lua +++ b/lua/lspconfig/server_configurations/astro.lua @@ -2,8 +2,7 @@ local util = require 'lspconfig.util' local function get_typescript_server_path(root_dir) local project_root = util.find_node_modules_ancestor(root_dir) - return project_root and (util.path.join(project_root, 'node_modules', 'typescript', 'lib', 'tsserverlibrary.js')) - or '' + return project_root and (util.path.join(project_root, 'node_modules', 'typescript', 'lib')) or '' end return { -- cgit v1.3