Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menu 'Find all references' on files from file explorer. #66150

Closed
Dzenly opened this issue Jan 7, 2019 · 2 comments
Closed

Context menu 'Find all references' on files from file explorer. #66150

Dzenly opened this issue Jan 7, 2019 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders javascript JavaScript support issues on-testplan upstream-issue-linked This is an upstream issue that has been reported upstream
Milestone

Comments

@Dzenly
Copy link

Dzenly commented Jan 7, 2019

There was an issue, but its status is unclear.

#6625
I am surprised why there are so little likes %)

Cases:

  • Node.js/JavaScript - all places where the current file is required by require.
    BTW: if I use "Find all references" on `require('./some-file.js') - VS Code does show me them. So the ability itself is already supported but there is no interface in file explorer.

  • Node.js/TypeScript - all places where the current file is imported.

  • C++ - all places where the file is included.

  • Which HTML uses the current JS file.

  • Etc.

For many years I used WebStorm which supports this. But in VS Code I have no idea how to find the place where some file is used but global searching it by some regexp. I was looking for some plugins and workarounds for 2 hours and found nothing %).

I tried to bind shortcut:

  {
    "key": "f12",
    "command": "references-view.find",
    "when": "filesExplorerFocus"
  }

but it runs last references search and not search for current file.

There is a question on SO, but no answer:
https://stackoverflow.com/questions/53267307/how-to-find-all-references-of-a-selected-module-in-vs-code

@vscodebot vscodebot bot assigned mjbvz Jan 7, 2019
@vscodebot vscodebot bot added the javascript JavaScript support issues label Jan 7, 2019
@mjbvz mjbvz added the feature-request Request for new features or functionality label Jan 17, 2019
@alexilyaev
Copy link

@Dzenly Was there any progress on this?

For me, in simple ES6 code with export and import in several files, there's no way to find the references.

If I right click the exported symbol and click Find All References, it will only find references in the open files in the editor, which is not so useful.

@Dzenly
Copy link
Author

Dzenly commented Jun 13, 2019

@alexilyaev I don't know. Mainly I use WebStorm, and from time to time I try VS Code, report another feature request, and continue to use WebStorm.

@mjbvz mjbvz added this to the Backlog milestone Jan 23, 2020
@mjbvz mjbvz added the upstream-issue-linked This is an upstream issue that has been reported upstream label Oct 14, 2020
@mjbvz mjbvz modified the milestones: Backlog, January 2021 Jan 5, 2021
@mjbvz mjbvz closed this as completed in b565c42 Jan 5, 2021
@mjbvz mjbvz added the verification-needed Verification of issue is requested label Jan 25, 2021
@mjbvz mjbvz added on-testplan and removed verification-needed Verification of issue is requested labels Jan 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders javascript JavaScript support issues on-testplan upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

4 participants
@alexilyaev @Dzenly @mjbvz and others