VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

Add option to show more information in hover dialog

Open EIA485 opened this issue 6 months ago • 3 comments

currently EmmyLua truncates information in a hover dialog past a certain point. id like to be able to disable this truncation

Image

here's how lua_ls approaches this problem

Image

EIA485 avatar Aug 08 '25 02:08 EIA485

I was involved in the research when luals wanted to implement this feature. It required using an API designed for TypeScript in VSCode, which does not conform to the LSP specification, and at that time, the API was not public.

CppCXY avatar Aug 08 '25 07:08 CppCXY

id like to be able to disable this truncation

We can handle this on Language Server's side, and support configuring this in extension settings. Would this work for you?

Technically, this will be done via adding hover.verbose with x-vscode-setting annotation to .emmyrc schema.

taminomara avatar Aug 08 '25 17:08 taminomara

Yes that solution would work for me.

EIA485 avatar Aug 09 '25 00:08 EIA485