Skip to content

Default values not applying #1333

Answered by msujew
larsbaunwall asked this question in Q&A
Jan 8, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

@larsbaunwall The change is assigned to milestone v3, which will be released some time later this month. The feature isn't available for general use yet.

I am trying to embed documentation into my grammar that I can use in a hoverProvider to explain terms/syntax.
Maybe that is best kept out of the grammar, or what is your take on that?

Regarding that: I wouldn't recommend using default values for that. Documentation on grammar rules can be extracted from the CommentProvider even when the grammar has been serialized. Just use the normal JSDoc syntax (/** ... */) to write your documentation.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@larsbaunwall
Comment options

@larsbaunwall
Comment options

@msujew
Comment options

Answer selected by larsbaunwall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants