LuaLS / LuaLS/lua-language-server
[Feature Request]: Way to add custom diagnostics in plugin.lua
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
It would be useful to be able to add custom diagnostics that can be propagated from plugin.lua in a custom plugin.
For a plugin my team is developing, we need a way to check that values the user is setting a variable to fall within a certain range (among other possible diagnostics). I can understand why this wouldn't be desirable to add to the core diagnostics.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading plugin.lua and tracing how plugin-provided information could be propagated into the language server's diagnostics. Confirm the expected behavior for range checks and define tests showing that custom diagnostics from a plugin reach users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100