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 interception of Completion list and its transformation #51626

Open
vscodenpa opened this issue Jul 31, 2024 · 0 comments
Open

Allow interception of Completion list and its transformation #51626

vscodenpa opened this issue Jul 31, 2024 · 0 comments

Comments

@vscodenpa
Copy link
Owner

Ability to modify a Completion list right before it is rendered seems like missed opportunity, that would allow Plugin dev to change way completions are displayed to the user, this can be done in IntelliJ IDEs rather easily, and would be great if it was possible for VS-Code

I searched the whether it is possible similarly to IntelliJ IDEs to intercept the list of completions, inspect them and then modify the final list the way you like before it gets rendered.

There could be two approaches

  • same as IntelliJ - have CompletionItemProvider receive 'Completion list so far' and allow it to be inspected/manipulated right there
  • have a dedicated CompletionInterceptor that gets the list before it is rendered, so transformation is possible before rendering
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