Replies: 1 comment 1 reply
-
Hey @dalyIsaac, that's a good point. It seems like our completion provider actually only looks at the semantically relevant tokens when determining what to complete, completely ignoring that the user is within a comment/hidden token: We should probably take this into account. Do you mind creating an issue for this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a completion provider, however I'd like to disable it for text in what should be a single-line comment.
For example, in the statemachine example at https://langium.org/showcase/statemachine/, it's possible to trigger suggestions in the single-line comment:
I suspect that if a single-line comment required a newline, this would be achievable. However, completions should be prevented on comments even if there isn't a following newline.
I may be missing something, but to me this seems like something which isn't supported by Langium?
Beta Was this translation helpful? Give feedback.
All reactions