Skip to content

fix: Temporarily disable completion resolve support for helix and neovim #18630

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

Merged
merged 2 commits into from
Dec 7, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Dec 6, 2024

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2024
@Veykril
Copy link
Member Author

Veykril commented Dec 6, 2024

r? @SomeoneToIgnore

@Veykril Veykril changed the title fix: Temporarily disable completion resolve support for helix fix: Temporarily disable completion resolve support for helix and neovim Dec 6, 2024
}

pub fn client_is_neovim(&self) -> bool {
self.client_info.as_ref().map(|it| it.name == "Neovim").unwrap_or_default()
Copy link
Member Author

Choose a reason for hiding this comment

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

Found this string in one issue in hrsh7th/cmp-nvim-lsp#36, so I'll just hope that that works

Copy link
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

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

Thank you for coming up with this, I would have been waiting for the spec clarifications still otherwise 😢

@@ -41,7 +41,11 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
})),
hover_provider: Some(HoverProviderCapability::Simple(true)),
completion_provider: Some(CompletionOptions {
resolve_provider: Some(config.caps().completions_resolve_provider()),
resolve_provider: if config.client_is_helix() || config.client_is_neovim() {
None

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants