Skip to content

Pass a selection range in CompletionParams for a completion request #859

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

Open
metalogical opened this issue Nov 12, 2019 · 0 comments
Open
Labels
completion feature-request Request for new features or functionality
Milestone

Comments

@metalogical
Copy link

related to #377

It would be very useful for the completion request interface to support sending selection ranges instead of being limited to a cursor position.

Examples of scenarios where this would be useful:

  • the user selects an expression and wants to replace it
  • the user inserts a snippet (perhaps from a previous completion), and wants completions for a selected placeholder

This is a serious deficiency, because there is no way for the server to infer the intent of the user to replace the selection with a completion. That intent must inform the returned completions set.

A possible further extension of this is to support multi-cursor and multi-selection completions.

@dbaeumer dbaeumer added feature-request Request for new features or functionality completion labels Nov 11, 2020
@dbaeumer dbaeumer added this to the Backlog milestone Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completion feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants