Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix incorrect root finding #3581

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Conversation

dundargoc
Copy link
Member

No description provided.

@dundargoc dundargoc marked this pull request as ready for review January 22, 2025 14:53
@dundargoc dundargoc requested a review from glepnir as a code owner January 22, 2025 14:53
@justinmk
Copy link
Member

After this we should tag a release

@dundargoc dundargoc merged commit 513f4f0 into neovim:master Jan 22, 2025
11 checks passed
@dundargoc dundargoc deleted the fix/root branch January 22, 2025 15:28
@@ -1,7 +1,7 @@
local util = require 'lspconfig.util'

local function get_typescript_server_path(root_dir)
local project_root = vim.fs.find('node_modules', { path = root_dir, upward = true })[1]
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
return project_root and (project_root .. '/typescript/lib') or ''

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be:

return project_root and (project_root .. '/node_modules/typescript/lib') or ''

This applies to the change in astro.lua as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants