Skip to content

Commit

Permalink
Merge pull request #318 from carlos-algms/cgomes/fix-dropped-sanitize…
Browse files Browse the repository at this point in the history
…-helper

fix: use vim.fs.normalize instead of using a helper from lspconfig
  • Loading branch information
KostkaBrukowa authored Dec 4, 2024
2 parents 346062e + 10a0f3d commit 35e397c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/typescript-tools/tsserver_provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function TsserverProvider.new(on_loaded)

assert(util.bufname_valid(bufname), "Invalid buffer name!")

local sanitized_bufname = util.path.sanitize(bufname)
local sanitized_bufname = vim.fs.normalize(bufname)

self.root_dir = Path:new(config.get_root_dir(sanitized_bufname, bufnr))
self.npm_local_path = find_deep_node_modules_ancestor(sanitized_bufname):joinpath "node_modules"
Expand Down

0 comments on commit 35e397c

Please sign in to comment.