Replies: 1 comment 1 reply
-
The issue of the overly long inlay hints in TeXLab due to the caption being included was fixed in latex-lsp/texlab@dd85dce. Personally, for me, an eglot feature to truncate inlay hints are is not necessary anymore. However, I would leave this discussion open whether we would like to have the option of client-side inlay hint truncation anyway in case some other servers show overly long messages. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used Eglot for LaTeX with the TeXLab language server and was at first happy to find out it supports inlay hints, but then saw that they are sometimes overly long, e.g. printing the entire figure caption in the inlay hint to a figure label (hint in grey):
This definetly doesn't enhance readability. I assume this is probably not an Eglot but, but an issue with the language server, which doesn't have customization options for the inlay hints. I opened an TeXLab issue for that.
But what Eglot might do, is to offer a way to truncate inlay hints, e.g. in a similar way to how Eglot truncates messages. Ideally a well-behaved server should provide concise hints where truncation not necessary, but I assume the Eglot implementation how to deal with that should be rather simple, which is why I suggest this feature.
I'm wondering why no other TeXLab user had this issue, maybe they are using LSP clients which either don't support inlay hints or other clients already have a way to truncate or hide long inlay hints. I just created the TeXLab issue and will see what their feedback will be.
Beta Was this translation helpful? Give feedback.
All reactions