purescript-language-server icon indicating copy to clipboard operation
purescript-language-server copied to clipboard

No info on hover for non-toplevel symbols

Open triallax opened this issue 5 years ago • 5 comments

I'm not sure if this should be here or on the compiler repo.

triallax avatar Nov 10 '20 15:11 triallax

I think this is tracked by https://github.com/purescript/purescript/issues/3670 - it is and has always been a limitation of psc-ide/purs ide.

nwolverson avatar Nov 10 '20 16:11 nwolverson

Should I close this issue then?

triallax avatar Nov 10 '20 16:11 triallax

I'd be more than happy to make it clear in the readme for this LS what "should work" though. Obviously we'd all love for full support for types for all identifiers etc, complications that spring to mind being

  1. Performance
  2. Reliability
  3. Partial programs

nwolverson avatar Nov 10 '20 16:11 nwolverson

@mhmdanas happy to leave this open for anybody else looking to find.

nwolverson avatar Nov 10 '20 16:11 nwolverson

There's an extension for VS Code (my crutch, to be more precise) that makes something like what's suggested by @srghma in https://github.com/purescript/purescript/issues/3670. It requires selecting and pressing a combination of keys. This way, one may see the type of the selected text. The problem is that the extension relies on a couple of other extensions. Perhaps this crutch may be included into purescript-language-server natively until there's a better solution. @nwolverson, what do you think?

deemp avatar Jan 17 '23 20:01 deemp