Skip to content

Commit 35e397c

Browse files
Merge pull request #318 from carlos-algms/cgomes/fix-dropped-sanitize-helper
fix: use vim.fs.normalize instead of using a helper from lspconfig
2 parents 346062e + 10a0f3d commit 35e397c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/typescript-tools/tsserver_provider.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function TsserverProvider.new(on_loaded)
6464

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

67-
local sanitized_bufname = util.path.sanitize(bufname)
67+
local sanitized_bufname = vim.fs.normalize(bufname)
6868

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

0 commit comments

Comments
 (0)