LuaLS / LuaLS/lua-language-server

Code action is trying to disable other linter's warnning

Open
#2,433 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

### How are you using the lua-language-server?

NeoVim

### Which OS are you using?

Linux

### What is the issue affecting?

Diagnostics/Syntax Checking, Other

### Expected Behaviour

If the warnning type are not from lua_ls, there should be no code action.

### Actual Behaviour

![image](https://github.com/LuaLS/lua-language-server/assets/32760059/827dc96e-1375-4799-8ae0-065fdf958e78)
The mixed_table warnning are form [senele](https://github.com/Kampfkarren/selene)

### Reproduction steps

1. Start with lua_ls
2. Install another linter, like selene
3. Run code action to a warnning form that linter

### Additional Notes

_No response_

### Log File

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in NeoVim with lua-language-server and selene installed, then inspect the diagnostic and code-action handling. Verify that a warning reported by selene, such as mixed_table, no longer receives a lua-language-server code action, while lua-language-server diagnostics still do.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.