Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: "refactor!: make available_servers function private" #3589

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

dundargoc
Copy link
Member

This reverts commit e118ce5.

It turns out util.available_servers is used more than anticipated, so
we revert the privatization for the time being.

Closes #3588.

@dundargoc dundargoc marked this pull request as ready for review January 27, 2025 16:33
@dundargoc dundargoc requested a review from glepnir as a code owner January 27, 2025 16:33
@@ -223,7 +223,7 @@ function M.get_managed_clients()
return clients
end

function M._available_servers()
function M.available_servers()
Copy link
Member

@justinmk justinmk Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function M.available_servers()
--- @deprecated use `vim.lsp.confg` in Nvim 0.11+ instead.
function M.available_servers()

future: we should probably add lspconfig.util will be removed; use vim.lsp.confg in Nvim 0.11+ to all util.lua deprecation notices

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, people using nvim 0.10 won't have a way to remove this warning. I guess it's an acceptable tradeoff?

Copy link
Member

@justinmk justinmk Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our nvim-lspconfig deprecation plan didn't really consider concerns about non-breaking, soft warnings for Nvim 0.10, AFAIR. It doesn't strike me as too important, as long as their code doesn't break.

@dundargoc dundargoc force-pushed the revert/available_servers branch from 1aebdd7 to 8f5d0d1 Compare January 27, 2025 18:48
This reverts commit e118ce5.

It turns out `util.available_servers` is used more than anticipated, so
we revert the privatization for the time being.

Closes neovim#3588.
@dundargoc dundargoc force-pushed the revert/available_servers branch from 8f5d0d1 to 638d0bf Compare January 27, 2025 18:56
@dundargoc dundargoc requested a review from justinmk January 27, 2025 19:47
@justinmk justinmk merged commit 1f941b3 into neovim:master Jan 27, 2025
11 checks passed
@dundargoc dundargoc deleted the revert/available_servers branch January 27, 2025 21:09
folke pushed a commit to folke/neoconf.nvim that referenced this pull request Jan 28, 2025
## Description

Reverts #105.

[neovim/nvim-lspconfig - PR
#3589](neovim/nvim-lspconfig#3589) reverts
`_available_servers` back to `available_servers`.

## Related Issue(s)

Fixes #107.

## Screenshots

NA
mimikun added a commit to mimikun/dotfiles that referenced this pull request Jan 28, 2025
breaking changes in nvim-lspconfig reverted by neovim/nvim-lspconfig#3589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removal of util.available_servers from public API in #3571 - recommended alternative?
2 participants