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

Use copy of AST for completion #645

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

evidolob
Copy link
Collaborator

What does this PR do?

It uses copy of AST for completion, as during completion we modify AST and that modification can trigger validation errors.

What issues does this PR fix or reference?

Fix: redhat-developer/vscode-yaml#671

Is it tested? How?

with test

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@coveralls
Copy link

coveralls commented Jan 20, 2022

Coverage Status

Coverage increased (+0.2%) to 79.979% when pulling 2b6f5c3 on evidolob:fix-validator-flakiness into 72d417c on redhat-developer:main.

@gorkem
Copy link
Collaborator

gorkem commented Jan 20, 2022

What are the reasons that we modify the AST during completion? Is it only to fix incomplete parts?

@evidolob
Copy link
Collaborator Author

Not only, we also modify AST to get proper sub JSON Schema match during code completion

@evidolob evidolob merged commit 613d7df into redhat-developer:main Jan 28, 2022
@evidolob evidolob deleted the fix-validator-flakiness branch January 28, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flakiness in validator: Incorrect type. Expected "string"
3 participants