Skip to content

Plugin infrastructure for performing WorkspaceApplyEdit with correct indentation #385

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

Closed
isovector opened this issue Sep 8, 2020 · 2 comments
Labels

Comments

@isovector
Copy link
Collaborator

Subject of the issue

I'm working on a plugin to fill typed holes. Unfortunately, when I fill it with a case expression, the indentation gets thrown off. This is too tricky of an issue for individual plugin authors to implement on their own, and is an excellent candidate for infrastructure in HLS proper.

@jneira
Copy link
Member

jneira commented Sep 10, 2020

To make it explicit, do not the edit utilities in https://github.com/haskell/haskell-language-server/blob/master/hls-plugin-api/src/Ide/PluginUtils.hs fit in your use case or you tried them and they drop the identantion?

@isovector
Copy link
Collaborator Author

I tackled this in #391

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants