haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 210 forks source link

Hover result should wrap signatures #625

Open alanz opened 6 years ago

alanz commented 6 years ago

The hover result message does not perform line wrapping for signatures, and some clients (such as emacs-lsp) do not do wrapping themselves.

So for

2018-06-09 14:24:48.615856571 [ThreadId 5] - <--2--{"result":{"range":{"start":{"line":25,"character":8},"end":{"line":25,"character":19}},"contents":
[{"value":"sendRequest :: Proxy (RequestMessage ClientMethod DocumentSymbolParams (List SymbolInformation)) -> ClientMethod -> DocumentSymbolParams -> Session LspId"
 ,"language":"haskell"
 }
,"`sendRequest`\n\nhaskell-lsp-test Language.Haskell.LSP.Test"]},"jsonrpc":"2.0","id":209}

only the first part of the sendRequest signature is shown.

alanz commented 6 years ago

And it may well be an issue in the emacs client.