Haskell-language-server: Plugin infrastructure for performing WorkspaceApplyEdit with correct indentation

Created on 8 Sep 2020  路  2Comments  路  Source: haskell/haskell-language-server

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.

plugins enhancement

Most helpful comment

I tackled this in #391

All 2 comments

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?

I tackled this in #391

Was this page helpful?
0 / 5 - 0 ratings