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

Validate arguments when editing filename template #300

Merged
merged 2 commits into from
Apr 18, 2023
Merged

Conversation

chenxiaolong
Copy link
Owner

Instead of performing a test evaluation, which can miss fallback choices, we instead query the entire template AST for all variable ref nodes. For each of the nodes, we check that both the name and argument are valid.

(The error messages have syntax highlighting too!)

Instead of performing a test evaluation, which can miss fallback
choices, we instead query the entire template AST for all variable ref
nodes. For each of the nodes, we check that both the name and argument
are valid.

(The error messages have syntax highlighting too!)

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong self-assigned this Apr 18, 2023
@chenxiaolong
Copy link
Owner Author

dark mode screenshot of editing filename template with an error with syntax highlighting

@chenxiaolong chenxiaolong merged commit 9ac7477 into master Apr 18, 2023
@chenxiaolong chenxiaolong deleted the validation branch April 18, 2023 05:15
chenxiaolong added a commit that referenced this pull request Apr 18, 2023
Signed-off-by: Andrew Gunnerson <[email protected]>
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.

1 participant