vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Go to References should be Go To Usages

Open dailytabs opened this issue 1 year ago • 3 comments

When I use "Go to References", I would like to ignore definitions.

Currently, if a method is used only once, when using Go To References, a menu pops up showing the definition and the single usage.

I do not consider a definition to be a reference and do not feel like this menu should come up. Instead, I would much prefer if the single usage was directly opened.

Even if there are multiple usages, I do not want to see the definition listed as a reference - that's what Go To Definition is for.

Please convert Go to References to (or add) Go To Usages, which is 10x more helpful and better language.

P.S. When I use Go To Definition, while cursor is on the definition, I get the identical results as Go To References. This is idiotic. It should NEVER show a usage when using Go to Definition. This whole system is absurd!

dailytabs avatar Oct 19 '24 00:10 dailytabs

Which language?

gjsjohnmurray avatar Oct 19 '24 01:10 gjsjohnmurray

Javascript does Image

function definition() {
	return;
}

definition();
definition();

RedCMD avatar Oct 19 '24 07:10 RedCMD

Previously 114673 but this is now closed and locked.

Pinging @mjbvz

gjsjohnmurray avatar Oct 19 '24 20:10 gjsjohnmurray

https://github.com/microsoft/vscode/issues/114673

jrieken avatar Dec 09 '24 10:12 jrieken

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!