vscode-scope-bar icon indicating copy to clipboard operation
vscode-scope-bar copied to clipboard

Show other symbols on same parent

Open amos402 opened this issue 7 years ago • 5 comments

Also need to add a key binding for helping that check other symbols under parent easily.

amos402 avatar Sep 03 '17 08:09 amos402

Same issue, if a symbol is within another symbol, e.g. JavaScript functions that are wrapped within anonymous functions, only the parent anonymous function is detected/shown.

robofearth avatar Oct 11 '18 00:10 robofearth

Perhaps it could have an option to show innermost symbol?

robofearth avatar Oct 11 '18 01:10 robofearth

default You mean like this? But the anonymous function does not have a symbol name in fact, it's hard to navigate to the function.

amos402 avatar Oct 11 '18 02:10 amos402

That's true. I was thinking of a way to distinguish between a global wrapping anonymous function, like so:

screen shot 2018-10-11 at 9 31 08 pm screen shot 2018-10-11 at 9 31 00 pm

robofearth avatar Oct 11 '18 10:10 robofearth

An update on this. I found that VS Code has a similar feature built-in, but disabled by default:

image

When enabled, shows this:

image

Not sure if this works for anyone else, but solves the issue I was having using this extension. This issue can now be closed.

Edit: Typos

robofearth avatar Nov 16 '18 08:11 robofearth