-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 how we offer to install/disable linters #973
Conversation
Codecov Report
@@ Coverage Diff @@
## master #973 +/- ##
==========================================
+ Coverage 64.01% 64.27% +0.25%
==========================================
Files 260 260
Lines 12027 12022 -5
Branches 2130 2129 -1
==========================================
+ Hits 7699 7727 +28
+ Misses 4319 4286 -33
Partials 9 9
Continue to review full report at Codecov.
|
if (response === install) { | ||
return this.install(product, resource); | ||
} | ||
const lm = this.serviceContainer.get<ILinterManager>(ILinterManager); | ||
if (response === disable) { | ||
if (response === disableAllLinting) { | ||
await lm.enableLintingAsync(false); |
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.
Shouldn't the return value from here be InstallerResponse.Disabled
?
} else { | ||
lm.disableSessionLinting(); | ||
} else if (response === disableThisLinter) { | ||
await lm.getLinterInfo(product).enableAsync(false); |
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.
Shouldn't the return value from here be InstallerResponse.Disabled
?
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.
Good idea. Will do.
Fixes #971
a. Install linter
b. Disable this linter
c. Disable all linters
Close button does nothing