diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-09-13 21:51:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-13 18:51:06 -0700 |
| commit | 2f78ff816b03661b5f74d0624e973eaca0d64ef1 (patch) | |
| tree | 35ad5cefe6d25145ac45e48b5b75dce9458faca3 /runtime/lua/vim/shared.lua | |
| parent | 5ef567d13049792cf00e3a50961353908f791d4b (diff) | |
fix(lsp): misleading logs in non-applicable filetypes #35749
Problem:
LSP logs show misleading "cannot start" messages when editing a filetype
NOT listed in the `config.filetypes` field.
[ERROR][2025-09-13 18:55:56] …/runtime//lua/vim/lsp/log.lua:151
"cannot start cssls due to config error: …/runtime//lua/vim/lsp.lua:423:
cmd: expected expected function or table with executable command,
got table: 0x0104701b18. Info: vscode-css-language-server is not executable"
Solution:
- `can_start`: check `config.filetypes` before checking the rest of the
config.
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions
