Skip to content

Commit

Permalink
fix(volar): support volar 1.0 (#73)
Browse files Browse the repository at this point in the history
Volar introduced some breaking changes in version 1.0 vuejs/language-tools#1916.
Also see neovim/nvim-lspconfig#2181.
  • Loading branch information
deathmaz committed Oct 9, 2022
1 parent ef41cd4 commit 0eb7cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/mason-lspconfig/server_configurations/volar/init.lua
Expand Up @@ -5,7 +5,7 @@ local path = require "mason-core.path"
return function(install_dir)
---@param dir string
local function get_tsserverlib_path(dir)
return path.concat { dir, "node_modules", "typescript", "lib", "tsserverlibrary.js" }
return path.concat { dir, "node_modules", "typescript", "lib" }
end

---@param workspace_dir string|nil
Expand All @@ -21,7 +21,7 @@ return function(install_dir)

return {
on_new_config = function(new_config, new_install_dir)
new_config.init_options.typescript.serverPath = get_typescript_server_path(new_install_dir)
new_config.init_options.typescript.tsdk = get_typescript_server_path(new_install_dir)
end,
}
end

0 comments on commit 0eb7cfe

Please sign in to comment.