Replies: 1 comment
-
Hey @brsanthu,
I assume you're talking about methods like Aside from them, the type definitions and the names of the arguments should be most of what you need. What info are you missing?
That's what the
No idea, it could be any reason (literally - the completion engine is fairly complicated). Have you taken a look at our SQL implementation in Langium? Completion support works fairly well there, except for one caveat (see #1076). |
Beta Was this translation helpful? Give feedback.
-
We are implementing custom auto-complete implementation for our DSL.
When it asks to provide completions, it passes
context
,next
andacceptor
parameters. Do we have some docs what those params means and how we could infer the context?Additional details. We are implementing SQL like language. When user types
select id from <cursor>
, we want to return list of objects. How can we know user is at context where we expect list of objects to show?Update1:
We just logged 3 params and observed as below. When our dsl is implementing like this stmt
select id from account
, thenext.property
is returned asobject
but when we expand to support statement like belowthe
next.property
is blank. Both instances were observed when we place the cursor atselect id from <cursor>
. Any idea whynext.property
is blank when we add support forchain
statement as shown above?Beta Was this translation helpful? Give feedback.
All reactions