eclipse-langium/langium

Content Assist and no context node for cross references in empty document

Opened this issue · 0 comments

given the grammar

entry Model:
    ref=Ref
;

// in our zoo these will be provided by another grammar
interface Definition {
    name: string
}

Ref: define=[Definition:ID];

when doing autocompletion for the Ref nothing will happen in an empty document as context.node is undefined.

this is cause here:

without a node scoing wont be called.

i wonder why not simply use document.parseResult.value