We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9962e25 commit e6ea632Copy full SHA for e6ea632
lua/lspconfig/configs/angularls.lua
@@ -12,6 +12,10 @@ end
12
local function get_angular_core_version(root_dir)
13
local project_root = vim.fs.dirname(vim.fs.find('node_modules', { path = root_dir, upward = true })[1])
14
15
+ if not project_root then
16
+ return ''
17
+ end
18
+
19
local package_json = project_root .. '/package.json'
20
if not vim.loop.fs_stat(package_json) then
21
return ''
0 commit comments