Many HSL Plugins deal with text-alternation. One ('stylish-Haskell'), that does formatting on a file level, removes the last line of the file. The fix is to guard the formatting against different types of file-endings.
[
{
"endline": 239,
"file": "hls-plugin-api/src/Ide/PluginUtils.hs",
"function": "extractTextInRange",
"module": "Ide.PluginUtils",
"startline": 239
}
][
{
"endline": 252,
"file": "hls-plugin-api/src/Ide/PluginUtils.hs",
"function": "extractTextInRange",
"module": "Ide.PluginUtils",
"startline": 239
}
]