You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When completion is invoked, the relevant completionFor function is not always being called. Something appears to be wrong with the next features computation or the CompletionParser. It is also possible that I have a misunderstanding of how completions are supposed to work. See some screenshots below, relating to the reproduction steps:
Looks like something is going wrong in the token interpreter that we use to identify the current position. See here. I'll take a look at this soon. Thank you for the reproducible report :)
When completion is invoked, the relevant
completionFor
function is not always being called. Something appears to be wrong with the next features computation or the CompletionParser. It is also possible that I have a misunderstanding of how completions are supposed to work. See some screenshots below, relating to the reproduction steps:Completions working
Completions not working
Langium version:
main
Package name:
langium
Steps To Reproduce
completion-issue-repro
from my fork of Langium - https://github.com/nametable/langium/tree/completion-issue-reproblog.dmodel
[Attribute2("")]
with Ctrl+SpaceAttribute2
but not the bottomAttribute2
.Link to code example:
https://github.com/nametable/langium/tree/completion-issue-repro
The current behavior
The completion provider is not invoked for the lower
Attribute2
annotation, while it is for the upper.The expected behavior
Both
Attribute2
string literals should have working completion.The text was updated successfully, but these errors were encountered: