prettier-vscode
prettier-vscode copied to clipboard
`esbenp.prettier-vscode` isn't consistent with `prettier` in `package.json`
- [x] Write a summary of your issue
- [x] Include a link to a github repo that can be used to reproduce the issue or exact reproduction steps.
- [x] Provide the expected result
- [x] Provide the actual result
- [x] Include extension, os, and vs code information
- [x] Include Prettier extension log
Summary
esbenp.prettier-vscode isn't consistent with prettier in package.json.
esbenp.prettier-vscode doesn't format *.config.ts and test/ui/**.spec.ts files, but the prettier in package.json expects them to be.
esbenp.prettier-vscode should do the exact same formatting as the prettier in package.json.
Github Repository to Reproduce Issue
https://github.com/hamirmahal/prettier-formatting-issues
Steps To Reproduce:
- Try saving
*.config.tsandtest/ui/**.spec.tsfiles. - The Prettier VSCode extension does not format them, and the
prettierformatting check will fail.
Expected result
esbenp.prettier-vscode should format *.config.ts and test/ui/**.spec.ts files exactly as
"format": "prettier --write .",
would.
Actual result
esbenp.prettier-vscode doesn't format *.config.ts and test/ui/**.spec.ts files at all.
Additional information
VS Code Version:
Version: 1.90.1
Commit: 611f9bfce64f25108829dd295f54a6894e87339d
Date: 2024-06-11T21:02:43.666Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Linux x64 6.5.0-41-generic snap
Prettier Extension Version:
v10.4.0
OS and version: Linux x64 6.5.0-41-generic snap
Prettier Log Output
["DEBUG" - 1:20:17 PM] Local prettier module path: /home/hamir/prettier-formatting-issues/node_modules/prettier/index.cjs
["DEBUG" - 1:20:17 PM] Using prettier version 3.3.2
This issue has been labeled as stale due to inactivity. Reply to keep this issue open.
This might be related to #3431.