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
"Format on Save" and "Format Document" are broken with the latest VS Code #964
Comments
can you also post the version of the vsCode Prettier extension you have? |
I'm running this setup: Editor Project and "Format on Save" and "Format Document" work properly. Haven't been able to replicate this. |
macOS
Visual Studi Code
Prettier - Code formatter
Node
prettier
prettier-plugin-solidity
DEBUG
|
Where is your |
Ok, so just for uniformity, I switched to the same
Still having the same issue with VS Code, even after a full OS restart. Could it be that VS Code uses a separate instance of I have not yet tried uninstalling all prettier packages and extensions, restarting, and then reinstalling everything. I can do that, but just holding off in case you wanted debug info from the current state. |
For what it's worth, I have another project with
and even with no globally installed
"Format Document" and "Format on Save" does work, even after a OS restart. |
I have to say I could not reproduce this, I tried many combinations of location of the Is this issue still relevant with the new version of VSCode |
I also encounter this error:
My vscode version:
|
I solved this problem according to:
Add the below line:
into file |
Right after upgrading to VS Code 1.85.1, "Format on Save" and "Format Document" no longer work with a repo that worked perfectly with this plugin before.
Trying to Format Document results in a dialog:
Ttle: Configure Default Formatter
Description: Extension 'Prettier - Code formatter' is configured as formatter but it cannot format 'Solidity'-files
The text was updated successfully, but these errors were encountered: