lsp-ui icon indicating copy to clipboard operation
lsp-ui copied to clipboard

Long lines in `lsp-ui-doc`

Open luckysori opened this issue 4 years ago • 2 comments

As you probably already know, emacs is notoriously bad at rendering long lines. I haven't found a general solution to this problem other than activating so-long mode ad hoc.

When lsp-ui-doc attempts to render documentation with a very long line in it, emacs freezes for a very long time. Is there any way to deal with this problem other than disabling lsp-ui-doc temporarily?

luckysori avatar Aug 09 '21 06:08 luckysori

Sorry for the late reply.

What language server are you using? How does a language server want to render a large file in a document window? 😕

jcs090218 avatar Aug 31 '21 06:08 jcs090218

What language server are you using?

This happened to me using the rust-analyzer backend.

How does a language server want to render a large file in a document window?

In this case there was just a very long line in some multi-line documentation string. lsp-ui-doc just tried to render that docstring as usual but it froze as my emacs normally does when it encounters long lines.

luckysori avatar Sep 01 '21 03:09 luckysori