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

feat: show type check result while typing arguments #8

Merged
merged 7 commits into from
Feb 4, 2024

Conversation

paradoxuum
Copy link
Owner

This change implements type checking while typing an argument. This is done by running the transform function each time the text changes. If an error occurs, the message will be displayed in the argument suggestion.

Since running transformation functions is potentially expensive, there is now an expensive flag for types, which can be set using the last parameter of the TypeBuilder.transform method. By default, this flag is set to false.

Closes #2

This means that the transformation function for the current argument
will be executed on the current text for the argument. If an error
occurs during transformation, it will be displayed in the argument
suggestion.

There is also now an `expensive` flag for types, indicating if this
functionality should be disabled for the type.
@paradoxuum paradoxuum changed the title feat: check transformation result when typing feat: show type check result while typing arguments Jan 11, 2024
@paradoxuum paradoxuum marked this pull request as ready for review February 4, 2024 16:34
@paradoxuum paradoxuum merged commit 77ba8ff into main Feb 4, 2024
2 checks passed
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.

Show type check result when typing arguments
1 participant