-
Notifications
You must be signed in to change notification settings - Fork 39
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
Code formatting #61
Comments
I'm as yet unconvinced whether this should be in the language server or something external with editor integration; I guess the fact that there only seems to be 1 option does lean towards simply including it. Welcome opinions |
A few related links that are mostly related to purty with vscode IDE: There's a vscode extension for purty formatting: Discussion on consolidating vscode extensions: purty issue on integration with vscode: Discourse thread on purty integration with IDE: |
In my opinion it would be nice to provide a format handler and delegate the work to |
If we do end up with multiple code formatters that's also not a problem; afaik the language server API is designed to accommodate this. In VSCode, for example, if you have multiple code formatters on your system that can be used for the same language then the editor will ask you to choose which one you want to use (or it can be configured in your settings). |
One could try to detect if |
I've definitely come around to the idea that we should "just do it" (before the PR :) ), can always make the option enabled in config if required. |
haskell-ide-engine proposes to format the code via brittany. It would be possible to do the same for eg. with purty?
The text was updated successfully, but these errors were encountered: