kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

fix: throw UfoFallbackException on RequestFailed #159

Closed mrcjkb closed 9 months ago

mrcjkb commented 9 months ago

version 3.17 of the LSP specification has a RequestFailed error code (= -32803).

haskell-language-server throws this if a foldRange request fails, leading to an UnhandledPromiseRejection to be thrown by nvim-ufo.

Fixes #158 and https://github.com/mrcjkb/haskell-tools.nvim/issues/251.

kevinhwang91 commented 9 months ago

Thanks!