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

Use CompletionItem.insertText by default, and fall back to label #9

Closed
wants to merge 1 commit into from

Conversation

topisani
Copy link
Contributor

This fixes cquery, where completions would be inserted with the function
signature included, which is extremely annoying.

It should however be noted that insertText is deprecated, and servers
should use textEdits instead, but thats a lot more involved in kakoune,
and luckily not a lot of servers seem to do that yet anyway.

Reference: https://github.com/Microsoft/language-server-protocol/blob/gh-pages/specification.md#completion-request-leftwards_arrow_with_hook

This fixes cquery, where completions would be inserted with the function
signature included, which is extremely annoying.

It should however be noted that insertText is deprecated, and servers
should use textEdits instead, but thats a lot more involved in kakoune,
and luckily not a lot of servers seem to do that yet anyway.
@topisani topisani closed this Oct 18, 2024
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.

1 participant