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.
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
Most helpful comment
I tackled this in #391