Skip to content
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

Merge #2669 (swayfmt replacement PR) with master including newline formatting fixes #2698

Conversation

mitchmindtree
Copy link
Contributor

This is a second attempt at #2695 now that #2697 has landed.

kayagokalp and others added 5 commits September 2, 2022 07:57
Co-authored-by: Toby Hutton <toby@grusly.com>
* newline handler checks for existing newlines before inserting new ones

* stability test added

* newline-comment handler interaction test added

* review suggestion
* 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>
@mitchmindtree mitchmindtree changed the title Merge #1516 (swayfmt replacement PR) with master including newline formatting fixes Merge #2669 (swayfmt replacement PR) with master including newline formatting fixes Sep 2, 2022
@mitchmindtree mitchmindtree self-assigned this Sep 2, 2022
@mitchmindtree mitchmindtree requested review from kayagokalp, eureka-cpu and a team and removed request for kayagokalp September 2, 2022 07:38
@mitchmindtree
Copy link
Contributor Author

OK! cc @eureka-cpu @kayagokalp I think this should be ready to merge into #2669 and should resolve those conflicts.

@mitchmindtree mitchmindtree marked this pull request as ready for review September 2, 2022 07:39
Copy link
Member

@kayagokalp kayagokalp left a comment

Choose a reason for hiding this comment

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

🚀 🚀

@kayagokalp kayagokalp requested a review from a team September 2, 2022 07:40
@mitchmindtree mitchmindtree merged commit 6cfa826 into eureka-cpu/1516 Sep 2, 2022
@mitchmindtree mitchmindtree deleted the mitchmindtree/merge-replace-swayfmt-pr-with-master branch September 2, 2022 08:02
eureka-cpu added a commit that referenced this pull request Sep 2, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants