rescript-vscode icon indicating copy to clipboard operation
rescript-vscode copied to clipboard

Add navigate to symbols

Open edelvalle opened this issue 4 years ago • 4 comments

This plugin does not provide a way to find or navigate to symbols if you know their name.

When I use the go to any bar with # or @ to find a symbol in the whole project or in the current file, there are no symbols provided.

If you point me to the documentation of th VSCode API and the place to do it in this plugin maybe I can implement it myself, but I need some guidance here.

edelvalle avatar Aug 02 '21 13:08 edelvalle

Can you give an example of the feature you are looking for in other extensions? I think you're looking for workspace symbols and/or document symbols

amiralies avatar Aug 02 '21 20:08 amiralies

I think you're looking for workspace symbols and/or document symbols

Yes, that's what I'm looking for. Something like this:

image

edelvalle avatar Aug 03 '21 11:08 edelvalle

Bumping this. It could be really cool to be able to navigate to our variables or functions declarations.

darenju avatar Dec 22 '21 21:12 darenju

@ seems to mostly work for me in terms of finding variable/function names when I'm editing a file. Doesn't seem to catch variables that were destructured though, like it won't pick up foo or setFoo in:

let (foo, setFoo) = React.useState(() => false)

nireno avatar Feb 09 '24 19:02 nireno