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

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

Open
cdietrich opened this issue Jul 26, 2024 · 0 comments
Open
Labels
bug Something isn't working completion Completion related issue

Comments

@cdietrich
Copy link
Contributor

cdietrich commented Jul 26, 2024

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

@cdietrich cdietrich added the bug Something isn't working label Jul 26, 2024
@cdietrich cdietrich changed the title Content Assist and Synthic nodes for cross references in empty document Content Assist and no context node for cross references in empty document Jul 26, 2024
@spoenemann spoenemann added the completion Completion related issue label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completion Completion related issue
Projects
None yet
Development

No branches or pull requests

2 participants