atom-ide-purescript icon indicating copy to clipboard operation
atom-ide-purescript copied to clipboard

Use `purty` as formatter

Open timjs opened this issue 5 years ago • 4 comments

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?

timjs avatar Aug 15 '19 08:08 timjs

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 avatar Aug 19 '19 15:08 nwolverson

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 avatar Aug 19 '19 15:08 nwolverson

This is now in the LSP, should look at integrating

nwolverson avatar Jan 28 '21 13:01 nwolverson