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

Completion item detail, description, and tag #5121

Open
matoous opened this issue Dec 11, 2022 · 1 comment
Open

Completion item detail, description, and tag #5121

matoous opened this issue Dec 11, 2022 · 1 comment
Labels
A-language-server Area: Language server client C-enhancement Category: Improvements

Comments

@matoous
Copy link
Contributor

matoous commented Dec 11, 2022

In latest version of LSP (3.17) there seems to be a few new completion features that are not supported by helix but could be useful. Specifically:

  • tagSupport - for now supports only deprecated tag that could for example render the item with strike-through.
  • CompletionItemLabelDetails
    • detail to show additional details about the completion item, such as function signature/type annotation
    • description for fully qualified names/file paths
  • preselect (already available in older versions) - could let the LSP decide which item to preselect, in our case it's currently always the first item. see: LSP Completion preselect and preview doc #2705

For full documentation see: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/#textDocument_completion

@matoous matoous added the C-enhancement Category: Improvements label Dec 11, 2022
@the-mikedavis the-mikedavis added the A-language-server Area: Language server client label Dec 11, 2022
@archseer
Copy link
Member

Preselect is here #2705

@matoous matoous changed the title Implement completion features from LSP 3.17 Completion item detail, description, and tag Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-server Area: Language server client C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants