Closed ladown closed 1 month ago
Can you identify if this is an issue with the plugin, or maybe with the prettier version https://github.com/prettier/prettier/blob/main/CHANGELOG.md#311
I tested this issue with other plugins and figured out, that its connected with the Prettier
Hi,
Same here, I have installed Prettier and the Pug plugin as DevDeps.
"@prettier/plugin-pug": "^3.0.0"
"prettier": "^3.2.5"
When trying to indent, I get same suggestion window from VSCode for Jade :-/
PS:
Hello, @mhabsaoui !
Its a problem with prettier extension as i can see. Here you can learn more - https://github.com/prettier/prettier-vscode/issues/3253
As for me, i found a solution to add path to prettier config in VSCode JSON settings -- "prettier.configPath": "./.prettierrc"
Plugin Version
v3.0.0
Prettier Version
v3.1.1
Which frameworks are affected?
Node Version
v20.10.0
Which operating systems have you used?
Prettier config
Input
Output or Error
Expected Output
Additional Context
Hello!
I faced with the problem, that
prettier@3.1.1
and higher causes the problem, thatVSCode
doesn't formatPug
files withprettier
. If we installprettier3.1.0
and lower it works fine. When we installprettier@3.1.1
and higher, we see next indicator in footer panel ofVSCode
:When we try to format it with command
Format Document
, we will have the following notification:I also tried to set default formatter in
VSCode
settings and it didn't not help me.If we try to format
.pug
files from CLI, it works perfect