hls-5

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.

ghc-version: 9.6.3

hasbugs-version:

license: Apache-2.0

build-framework: stack

Repository
GitHub Artifacts :

Faults @548ca17c

[
  {
    "endline": 239,
    "file": "hls-plugin-api/src/Ide/PluginUtils.hs",
    "function": "extractTextInRange",
    "module": "Ide.PluginUtils",
    "startline": 239
  }
]

Fixes @afac9b18

[
  {
    "endline": 252,
    "file": "hls-plugin-api/src/Ide/PluginUtils.hs",
    "function": "extractTextInRange",
    "module": "Ide.PluginUtils",
    "startline": 239
  }
]