-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
Add an option to suppress popping up the output panel for a failed run #247
Conversation
efc9564
to
cbfe19b
Compare
Hey, thanks for your PR. I don't think an option for that is a good move. As I'm working on #243 there are things which will have to change anyway. (Or I'll have to do some dirty checks to keep the same functionalities) |
Hey! Thanks for the PR! I have been annoyed by the popup itself, especially because it doesn't close when the formatting is correct. The changes I have requested should result in remove some code (Yay!) Thanks for the PR! |
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.
What I would do for this PR is the following:
- Do not add an extra option (options are not fun and hard to maintain)
- Always write to the output log (I think this is already the case)
- Do not show the popup on first error
3a5f3af
to
555a78b
Compare
Alright, agreed - this does that 👍 now, much simpler |
Perfect! |
did you mean https://github.com/prettier/prettier-vscode/blob/master/src/PrettierEditProvider.ts#L161 ? Code looks good. |
I was talking about prettier-vscode/src/PrettierEditProvider.ts Line 158 in 844ecd6
I didn't know the warning message was still used? |
Well it seems to be used. And It can be removed I think. |
^ I can't tell if this is you two asking me to amend this PR |
@orta Go ahead 😄 |
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.
I'm fine with that. We can remove last warning in a later PR (I'm actually working on it)
Should be enough to close #168
Allows a user to opt out of the output channel being popped up, TBH it might be worth thinking about making this be the default and allow opting in to showing the output channel on an error. I can't imagine that the errors are inside prettier any more, and I'm willing to bet that VS Code makes it pretty obvious that your source code isn't compiling correctly. Plus you'll see the "prettier x" in the bottom right.