Closed Superpat closed 4 months ago
FWIW, I'm seeing this in a few situations with gopls
and starpls
as well as the Typescript LS. I'll take a stab at fixing this later tonight. It's mostly a matter of "if no information available, don't crash".
Env
Client version: 9fans.net/acme-lsp@v0.12.0 Typescript LSP version: 4.3.3 Plan9Port version: https://github.com/9fans/plan9port/commit/be7c68f6954f7dcaa53403e0f600716f65a13d32
L hov works fine on variables, functions, complex types and type aliases, but if I try to use it on a literal value or on a primitive type, it fails.
Code example
What happens for each symbol
hov on type
hov on A
hov on string
hov on const
hov on a
hov on "a string"
hov on b
hov while selecting the chars A[]
hov with cursor at begining of [a,a,a]
hov on any a inside the [a,a,a]