-
Notifications
You must be signed in to change notification settings - Fork 15
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
Don't show undefined variable errors depending on context #548
Comments
To check if an object part is optional you can use ObjectPart#isOptional(); It's the first step to remove the error from For the second error, {name}, the main idea is to store in a list all optional part in quarkus-ls/qute.ls/com.redhat.qute.ls/src/main/java/com/redhat/qute/services/QuteDiagnostics.java Line 87 in b3d1031
You will need to ad SectionKinf.IF in quarkus-ls/qute.ls/com.redhat.qute.ls/src/main/java/com/redhat/qute/services/QuteDiagnostics.java Line 347 in b3d1031
|
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes redhat-developer#548 Signed-off-by: azerr <azerr@redhat.com>
Fixes #548 Signed-off-by: azerr <azerr@redhat.com>
If a template checks a variable exists in a given context, eg. an if or for block, validation should know the variable exists and therefore should not complain about undefined variables.eg.
The text was updated successfully, but these errors were encountered: