Skip to content

Conversation

juleswritescode
Copy link
Collaborator

@juleswritescode juleswritescode commented Sep 27, 2025

Before, we would only show type errors if the length of the default-type-value was <= than the length of the param-name it belonged to.

Now we have an API that tracks positions in text replacements even if they grow the original text, so we can show such errors:

Screenshot 2025-09-27 at 14 26 07

Comment on lines -335 to +322
// all values of the enums are longer than `NULL`, so we use `NULL` instead
"select 0 + 0 + 0 + 0 + 0 + NULL "
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if the change from NULL to 'critical' is desired?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, makes sense after your change

Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful!

Comment on lines -335 to +322
// all values of the enums are longer than `NULL`, so we use `NULL` instead
"select 0 + 0 + 0 + 0 + 0 + NULL "
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, makes sense after your change

@juleswritescode juleswritescode enabled auto-merge (squash) October 3, 2025 08:33
@juleswritescode juleswritescode merged commit fcd4720 into main Oct 3, 2025
8 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.

2 participants