Files
neovim/runtime/lua/vim
Olivia Kinnear 34815777b2 fix(lsp): remove side-effects if vim.lsp.enable() raises an error (#37571)
Problem:
If `vim.lsp.enable()` fails with an error, either because `'*'` is one
of the provided names or because there is an error in a config,
`vim.lsp.enable()` will still have side-effects:
- All names before the one that encountered an error will still be added
  to `lsp._enabled_configs`, but the autocommand will not get added or
  run.
- Any name which makes `vim.lsp.config[name]` error will be added to
  `lsp._enabled_configs`, causing all future calls to `vim.lsp.enable()`
  to fail. This will also break `:che vim.lsp`.

Solution:
- Check all names for errors before modifying `lsp._enabled_configs`.
- Check `vim.lsp.config[name]` does not raise an error before enabling
  the name.
2026-01-27 13:17:45 -08:00
..
2026-01-27 09:18:02 -05:00
2026-01-10 17:47:16 +02:00
2025-08-17 11:54:53 +08:00
2025-06-06 15:36:48 +01:00
2026-01-27 09:18:02 -05:00
2026-01-09 10:07:15 +01:00
2026-01-27 09:18:02 -05:00
2026-01-27 09:19:46 -05:00
2026-01-27 09:18:02 -05:00
2025-09-16 11:41:36 +08:00
2025-11-22 19:32:45 -05:00