-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat: add basic comment context formatting #2697
Conversation
Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on tracking this down 👍 I think these patches are definitely starting to get a little hacky, but we can do some cleanup in formatter once we've at least got all tests passing and have landed #2669.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…formatting fixes (#2698) * refactor: forc-deploy requires wallet address and accepts signature (#2629) * Add the `CopyTypes` trait to `DeclarationId` (#2682) Co-authored-by: Toby Hutton <toby@grusly.com> * fix: Unformatted comment spans add extra newline (#2692) * newline handler checks for existing newlines before inserting new ones * stability test added * newline-comment handler interaction test added * review suggestion * feat: add basic comment context formatting (#2697) * feat: add comment context formatting * test: enhance newline-comment handler interaction test * Apply suggestions from code review Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh> Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh> * Update `examples/` for recent swayfmt-v2 patches Co-authored-by: Kaya Gökalp <kayagokalp@sabanciuniv.edu> Co-authored-by: Emily Herbert <17410721+emilyaherbert@users.noreply.github.com> Co-authored-by: Toby Hutton <toby@grusly.com>
* update plugin and swayfmt toml, remove old formatter * update config to formatter for consistency * wip fix lsp formatting * more merge conflicts * update dependencies to 22.1 * remove files that made it back in from merge * comment out function in LSP that uses formatter * format examples and remove debug printlns * Merge #2669 (swayfmt replacement PR) with `master` including newline formatting fixes (#2698) * refactor: forc-deploy requires wallet address and accepts signature (#2629) * Add the `CopyTypes` trait to `DeclarationId` (#2682) Co-authored-by: Toby Hutton <toby@grusly.com> * fix: Unformatted comment spans add extra newline (#2692) * newline handler checks for existing newlines before inserting new ones * stability test added * newline-comment handler interaction test added * review suggestion * feat: add basic comment context formatting (#2697) * feat: add comment context formatting * test: enhance newline-comment handler interaction test * Apply suggestions from code review Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh> Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh> * Update `examples/` for recent swayfmt-v2 patches Co-authored-by: Kaya Gökalp <kayagokalp@sabanciuniv.edu> Co-authored-by: Emily Herbert <17410721+emilyaherbert@users.noreply.github.com> Co-authored-by: Toby Hutton <toby@grusly.com> * change name to swayfmt, kashira * add swayfmt file * sort toml dependencies * fix excess newlines in format_context * test on examples Co-authored-by: mitchmindtree <mitchell.nordine@fuel.sh> Co-authored-by: Kaya Gökalp <kayagokalp@sabanciuniv.edu> Co-authored-by: Emily Herbert <17410721+emilyaherbert@users.noreply.github.com> Co-authored-by: Toby Hutton <toby@grusly.com> Co-authored-by: Mohammad Fawaz <mohammadfawaz89@gmail.com>
closes #2696.
closes #2691.