Closed anvish closed 7 years ago
Please, provide your editor settings and steps to reproduce your problem. Will be cool if you provide GIF or video.
This is related to editor.formatOnPaste
option. VS Code try to format code after paste, but since it is invalid code stylefmt
throw error.
Closing as we need more info to investigate this.
What additional info do you need? I'm getting the exact same problem.
"editor.formatOnType": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
Super annoying as I'm constantly writing HTML then copying classes into my stylesheet.
I don't fully understand your problem. You write invalid CSS code and plugin gives you an error. You want option to disable error output?
Well, the code is invalid in the sense that I haven't finished typing yet, yes. But the error highlighter is not the problem (that's working fine). The problem unique to this case is that the output panel pops up and steals focus. That doesn't happen when I'm just writing a class name. It only happens when I paste a class name in.
Very strange, because this plugin attempts to format the code only when the command stylefmt.execute
is executed or you use Format
from editor.
You can provide your settings?
Ahhh, ok I found the culprit. I have the multiple clipboards extension installed. I just set "multiclip.formatAfterPaste": false
and problem solved!
@anvish Is this the same case for you?
@evanwarner no, I don't have this extension, I have "editor.formatOnPaste": true
@mrmlnc Problem with the panel is not solved. I think the issue should be in open state. Were you able to reproduce the issue? These steps reliably reproduce it for me ("editor.formatOnPaste" should be set to true):
Output panel pops up and steals the focus. This should not happen.
I'll add stylefmt.showError
option. By default this option will be enabled.
Will be fixed in 2.3.0. Code in master. Release very soon.
stylefmt.showError
seems not to have any effect :(
When adding a new rule in the middle of scss file, output panel opens and steals focus: