emacs-lsp / lsp-haskell

lsp-mode :heart: haskell
https://emacs-lsp.github.io/lsp-haskell
GNU General Public License v3.0
227 stars 56 forks source link

preview of changes for "apply hint(s)"? #116

Closed jwaldmann closed 3 years ago

jwaldmann commented 3 years ago

How can I pre-view the changes that "apply hint" would bring? Without actually changing the buffer/file, I mean.

If that's not possible - is there an easy and failsafe way to revert them? (C-X U?)

yyoncho commented 3 years ago

there is this: https://github.com/emacs-lsp/lsp-mode/issues/316

jwaldmann commented 3 years ago

OK so you mean it's already on the wishllist, and this repo (lsp-haskell) is the wrong place to ask (since it's not Haskell-specific)? Feel free to close if that's the case. And, thank you for the quick response.

yyoncho commented 3 years ago

Not that is wrong, but better to be handled in lsp-mode core.

michaelpj commented 3 years ago

Yes, this is about the generic Emacs LSP support, so it's a lsp-mode concern.

I believe there may also be a haskell-language-server issue to use the changeAnnotations support which I think enables this.