neovim / nvim-lspconfig

Quickstart configs for Nvim LSP
Apache License 2.0
9.98k stars 2.04k forks source link

refactor(eslint): use vim.lsp.buf.code_action to implement :EslintFixAll #3190

Closed icholy closed 1 month ago

icholy commented 1 month ago

The lsp.util.buf_versions table is deprecated and should not be used anymore. https://github.com/neovim/neovim/pull/28943. Simply switching to using vim.b[bufnr].changedtick is also problematic: https://github.com/neovim/neovim/issues/29163

icholy commented 1 month ago

This doesn't have the same behaviour because code_action auto-fills the context.diagnostics value with the current line's diagnostics.

glepnir commented 1 month ago

seems like those prs revert. so closed.