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

Mouse scrolling stuck with large code lens #137

Closed yaitskov closed 1 year ago

yaitskov commented 2 years ago

Hi,

Import with long list of highlighted names which are actually used in the file prevent mouse scrolling. Looks like additionally generated lines are not counted correctly. Meanwhile keyboard cursor navigation is working.

highlighted-imports

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0)
  lsp-haskell        20210813.1040 dependency            Haskell support for lsp-mode
  lsp-mode           20211103.1331 dependency            LSP mode
  lsp-ui             20211101.131  dependency            UI modules for lsp-mode
yyoncho commented 2 years ago

By "prevent scrolling" you mean that you cannot go down with the mouse?

Looks like additionally generated lines are not counted correctly.

What do you mean?

michaelpj commented 2 years ago

This is an issue with lsp-mode, and the thing you are having trouble with is a code lens.

JonathanReeve commented 2 years ago

I'm having this same issue, and I'd like to add that scrolling is also stuck whenever you wankt to page up or page down through code, using the keyboard (C-f and C-b in Evil, or pgup / pgdown on the keyboard).

michaelpj commented 2 years ago

I suspect the issue here is ultimately with code lenses that span multiple lines?

michaelpj commented 1 year ago

The HLS lenses are now trimmed, so this shouldn't come up any more.