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

Use purty as formatter #203

Open
timjs opened this issue Aug 15, 2019 · 4 comments
Open

Use purty as formatter #203

timjs opened this issue Aug 15, 2019 · 4 comments

Comments

@timjs
Copy link

timjs commented Aug 15, 2019

I'd love to have purty format when I save a PureScript file!

However, is ide-purescript the right package to implement this? Or should it be added to beautify for example?

@nwolverson
Copy link
Owner

Looking at beautify, looks like it might be appropriate, no sense in reinventing the wheel here?

Don't think we get any leverage having it here, it doesn't integrate with LSP/compiler tooling. Only concern may be not sure where beautify hooks into for triggering on save, if the file is reformatted before saving things will be great, if it effectively gets saved twice (like a disk file watcher would) it could be less great for LSP integration (rebuilding twice for example).

@nwolverson
Copy link
Owner

Though looks like they're doing a 'stop and rewrite the world' for the last couple of years so might not be a quick contribution

@nwolverson
Copy link
Owner

This is now in the LSP, should look at integrating

@FbN
Copy link

FbN commented Mar 18, 2021

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

No branches or pull requests

3 participants