11 Commits

Author SHA1 Message Date
Erikson Kaszubowski
dbf98c4d15
fix(angularls): improves node_modules path resolution #4190
Problem:
Search for node_modules uses a costly call to fn.globpath; the final
path resolution was not working on Linux.

Solution:
A custom function to resolve ngserver location from CMD wrappers on
Windows; and the corrected final path.

Co-authored-by: Erikson K. <erikson23@gmail.com>
2025-11-16 15:50:43 -08:00
Thomas Canta
cc3d020655
fix(angularls): reference to invalid field #4184
Problem:
`config.root` is not a valid field.

Solution
Replace it by `config.root_dir`.
2025-11-13 19:15:51 -08:00
Furkan Aydin
4e41e4c907
fix(angularls): add nil check for config parameter #4181
The cmd function's config parameter can sometimes be nil,
causing a warning when attempting to access config.root.
Added a nil check to safely handle this case.

Fixes #4180
2025-11-11 20:35:26 -08:00
Erikson Kaszubowski
7580edb811
fix(angularls): improve root path resolution #4083
Problem:
The current config for Angular LS make strong assumptions when trying to
find the root dir, which can lead to unexpected LSP crashes.

Solution:
By defining the 'cmd' field as a function, the config employs Neovim's
LSP root resolution to identify the correct path and find the relevant
node_modules folder.

Co-authored-by: Erikson Kaszubowski <erikson.kaszubowski@serpro.gov.br>
2025-10-30 20:08:07 -07:00
Igor
030a72f0aa chore: add type annotation for configs 2025-08-18 23:39:23 -03:00
Justin M. Keyes
c1366639e9
docs: cleanup #3792 2025-04-26 16:02:39 -07:00
Justin M. Keyes
3dde1b8796
docs: cleanup #3791 2025-04-26 15:59:54 -07:00
Justin M. Keyes
d345896549
ci(lint): check @brief docstring placement #3762 2025-04-22 05:44:50 -07:00
Justin M. Keyes
e8963b5b0b fix(angularls): cannot require() angularls.lua
The config makes too many assumptions and will just throw if those
assumptions don't hold...
2025-04-18 17:49:34 +02:00
Justin M. Keyes
f8b5cbe631 docs: cleanup
- brief should live at the top of each file
- fix indentation for some docs
2025-04-18 17:44:38 +02:00
HyBer
4692f3a14f
feat: angularls #3746 2025-04-18 07:53:37 -07:00