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

Allow LSP packages to customize format_completion #2467

Open
predragnikolic opened this issue May 3, 2024 · 0 comments
Open

Allow LSP packages to customize format_completion #2467

predragnikolic opened this issue May 3, 2024 · 0 comments

Comments

@predragnikolic
Copy link
Member

Currently the format_completion tries to have a one size fits all way to display LSP CompletionItem information.
That proven to not be ideal for some LSP servers.

While I am ok with the way that format_completion currently works,
it makes sense to expose an API to LSP-packages
to allow changing what will be used for the Sublime Text CompletionItem.trigger, CompletionItem.annotation, and CompletionItem.details.

Note to avoid performance issues, because format_completion can be called often,
the api must take that into account.

related:
#1924
#569
#2293 - we might allow LSP-* packages to alter the label
#1833 (comment) - see if we can avoid this issue as well

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

No branches or pull requests

1 participant