Skip to content

Conversation

shekhirin
Copy link
Contributor

@shekhirin shekhirin commented Aug 19, 2022

Feel free to test it on your codebase!

  1. Package the extension with npm run package
  2. Import the extension in VS Code with Install from VSIX... from solidity-0.0.138.vsix in the vscode-solidity project root
    image
  3. Choose forge as a formatter in settings
    image

@shekhirin shekhirin changed the title WIP: feat(client, formatter): forge fmt feat(client, formatter): forge fmt Sep 5, 2022
@shekhirin shekhirin marked this pull request as ready for review September 5, 2022 21:03
Copy link

@benharbit benharbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested eed78ac branch and it worked.

@juanfranblanco
Copy link
Owner

Thank you!!

@juanfranblanco juanfranblanco merged commit dda4a1e into juanfranblanco:master Sep 9, 2022
@vseehausen
Copy link

Thank you, this is great.

Small thing: The formatter does not recognize formatting options written in the foundry.toml file.

Is there a way to apply those configurations?

@juanfranblanco
Copy link
Owner

@shekhirin ^^

@shekhirin
Copy link
Contributor Author

yep, it's currently not respected, can confirm! Opened a PR to set current working directory during formatting: #363

@just2102
Copy link

Does not work on Windows.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants