-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support the Black formatter #1611
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
Conversation
Co-authored-by: Josh Smeaton <[email protected]>
return InstallerResponse.Installed; | ||
} | ||
return InstallerResponse.Ignore; | ||
const item = await this.appShell.showErrorMessage(`Formatter ${productName} is not installed. Install?`, 'Yes', 'No'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the UX, the user has no way to choose a different formatter here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but you can't install a different linter either when that doesn't exist. I could update it to disable formatting instead of "No" to be more like the linting scenario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but earlier the user was aware of the fact that they had other formatters, with this new UX they won't know. Not until they poke around the docs or settings (majority of the users won't).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Codecov Report
@@ Coverage Diff @@
## master #1611 +/- ##
==========================================
+ Coverage 71.31% 71.44% +0.13%
==========================================
Files 273 274 +1
Lines 12700 12723 +23
Branches 2282 2285 +3
==========================================
+ Hits 9057 9090 +33
+ Misses 3502 3493 -9
+ Partials 141 140 -1
Continue to review full report at Codecov.
|
Fixes #1153
This pull request:
Co-authored-by: Josh Smeaton [email protected]