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

Don't run autocompletion on model comments in declarations #280

Open
magoorden opened this issue Jun 21, 2024 · 0 comments
Open

Don't run autocompletion on model comments in declarations #280

magoorden opened this issue Jun 21, 2024 · 0 comments
Labels
feature New feature or request

Comments

@magoorden
Copy link

Is your feature request related to a problem? Please describe.
The autocompletion is a very useful feature when you are extending your model, but when you include comments in the model, these comments are mostly supposed to be plain text. Now the autocompletion language server is continuously trying to match your typing with language keywords or variable names regardless whether the text is part of the model or a comment.

Two things annoys me about autocomplete when typing comments:

  • Autocompletes creates a drop down menu that might obscure part of the model one is documenting.
  • When pressing enter for a new line in the comment causes the selection of the autocomplete, which is most likely not the word one tries to type.

Describe the solution you'd like
Autocompletion is diabled when typing comments. This should be doable, as the part that is responsible for color coding the model is able to identify that you are typing a comment (for example because the line contains //).
Possibly one could enable autocomplete in comments if one types @param, like JavaDoc comments.

Describe alternatives you've considered
Stubbornly ignoring all the drop down pop-ups when typing comments and continuing if they were not there.

@magoorden magoorden added the feature New feature or request label Jun 21, 2024
@magoorden magoorden changed the title Don't run autocompletion on model comments in declerations Don't run autocompletion on model comments in declarations Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant