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

change error messages for Opacity and Saturation (value should be float) #1746

Conversation

hughlilly
Copy link
Contributor

@hughlilly hughlilly commented Nov 1, 2022

This PR suggests changes to the wording of the error messages when the user attempts to set the values for Opacity or Saturation. The previous wording didn’t make it clear, imo, that the value can be a floating-point number. I went to experiment with these settings and initially thought I could only enter a 1 or a 0 (then wondered why they weren’t Boolean).

@hughlilly hughlilly changed the title Changes error messages for Opacity and Saturation to specify that value should be a floating-point number change error messages for Opacity and Saturation (value should be float) Nov 1, 2022
Copy link
Member

@PKief PKief left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. Could you please format them with Prettier, so that we still have everything in single quotes and proper indentation.

@hughlilly
Copy link
Contributor Author

hughlilly commented Nov 2, 2022

please format with Prettier

Done! I had opened the file by pressing ., which uses GitHub.dev, and that doesn’t have Terminal in it (so I never ran npm install).

Some repos I’ve worked with in the past have a precommit hook set up to autoformat staged files; would that be worth setting up on this repo to avoid this in the future?

@PKief
Copy link
Member

PKief commented Nov 3, 2022

@hughlilly Thanks for the adjustments. To be honest, I'm not a big fan of pre commit hooks. They slow down the Git process and I don't want to have any side effects when I commit something. It was already suggested with this PR https://github.com/PKief/vscode-material-icon-theme/pull/1526/, but as I wrote there, I'm still not very sure about this.

@PKief PKief merged commit 3261afa into material-extensions:main Nov 3, 2022
Anselmoo pushed a commit to Anselmoo/vscode-material-icon-theme that referenced this pull request Nov 5, 2022
…at) (material-extensions#1746)

* changes error messages to specify that value should be floating-point

* format with prettier
@hughlilly hughlilly deleted the saturation-opacity-error-message-rewording branch November 9, 2022 19:05
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.

None yet

2 participants