Prettier-vscode: Disable error messages.

Created on 4 Jun 2018  路  19Comments  路  Source: prettier/prettier-vscode

Is there a way to disable the messages that appear at the bottom-right? I find it extremely distracting, since they appear while I'm still writing the code and don't go away either.

locked

Most helpful comment

There's already plenty of clues about the issue being presented on the editor, to me an extra message is redundant, but again, thats my opinion, other people might prefer to have the extra message.

Thats solvable by adding a setting, this way people can make it work the best for them.

All 19 comments

It appears only when you format something and there is an error. You can press ESC to hide it.

Any way to disable them?

Just to second this: the inline-error on its own is obvious enough for me. Having pop-ups as well gets really annoying.

Using escape works, but it should just have an option to turn it off. . Your only option seems to be to disable:

"[javascript]": {
        "editor.formatOnSave": false
    },

though that obviously means format on save is gone. Is this a new feature as I can't recall having this as a problem before?

Well, thinking about it.
This is really meant to attract user's attention: Something went wrong.
In most cases, these are syntax errors. Seems redundant with a linter. Some users seem happy with it.

In my case, I don't need a notification for a syntax error. But I would need it for any other uncommon error this extension may produce (reading fs mostly). But as I said, those notification seem to please some users.

There's already plenty of clues about the issue being presented on the editor, to me an extra message is redundant, but again, thats my opinion, other people might prefer to have the extra message.

Thats solvable by adding a setting, this way people can make it work the best for them.

Yep @noobiept sums it up. Furthermore, if like me, you use a lot of unit testing. you already get continuous feedback for this sort of thing. I can see its use, but this is just bloat in my setup.

Agree with @noobiept. It distracts from that one time that I do want an error to pop up.

This used to work though... (as in, before the latest updates on VSCode Insiders) there is a status-bar with corresponding icon for a reason.

I resoundingly agree with those who don't want the notifications -- especially since the notifications don't automatically disappear when the syntax errors are corrected -- stale notifications hanging around for old errors are incredibly annoying ...

Maybe it would be viable to show the errors as as notifications if they are always up to date with the last prettier run? (Even if that's possible, I tend to think popups might still be annoying).

Its hard for me to see the current behavior as anything other than a bug ...

Another thing to note is that if you use the vim plugin hitting esc doesn't dismiss the error popup.
So the only way to dismiss it is to use the mouse, which sort of ruins the experience of using vim bindings.

I compulsively press Cmd+S several times per minute while working, even if I'm just jumping around code and there's a syntax error from an incomplete line I was typing. While it's a bit of a pointless habit these days, it's just one I built over many years of computing and I'm not likely to break it anytime soon. I almost treat Cmd+S as a second Format Code hotkey now.

As you'd expect, I've started seeing these popups frequently as a result of this habit, and they're basically never useful. My linter is already telling me about syntax errors inline and in the Problems view, so it's just redundant information from Prettier, made worse by how the notifications persist after fixing whatever error. This means they just sit there ignored for a while until I need to use ESC to dismiss an intellisense popup or something, whereupon they intercept the ESC keypress and irritate me.

I could see how these notifications might be helpful for other workflows, but for the way I work they're just incredibly intrusive and not at all useful, so I'd really appreciate some way to disable them. Alternatively, if they'd just dismiss themselves after a couple seconds (if this is even possible with the VSCode extension API) it'd be a non-issue even without the addition of another preference.

Pleeeeease yes let's disable this!

Another disable vote. I know its hard to make devs happy, but for professionals staring at the same screen for 8+ hours a day, this is a pretty unpleasant distraction.

Please add an option to disable it.

Hot topic!
I really want to avoid options :smile:

We will simply disable it for now. Expect them to come back for different errors. I do not expect prettier to be used as a linter and the output panel should be enough for that if a linter is missing.
Currently, we do a pretty bad job at showing various errors, other than syntax errors.

Idea: If notifications are show, it would be nice if they would hide after a few seconds or clear when prettier returns successfully

@danawoodman that would indeed be lovely, if only vscode allowed that. Maybe in the future 馃檹

Depends on vscode. closing as I'm cleaning out opened issues

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Glinkis picture Glinkis  路  4Comments

screendriver picture screendriver  路  4Comments

PetrykowskiM picture PetrykowskiM  路  3Comments

sebastijandumancic picture sebastijandumancic  路  4Comments

DanielHabenicht picture DanielHabenicht  路  4Comments