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

TS: Option to not show imports in references search #38893

Open
JacksonKearl opened this issue May 15, 2020 · 2 comments
Open

TS: Option to not show imports in references search #38893

JacksonKearl opened this issue May 15, 2020 · 2 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@JacksonKearl
Copy link

JacksonKearl commented May 15, 2020

TS Template added by @mjbvz

TypeScript Version: 3.9.4

Search Terms

  • references
  • imports
  • f12

Often I do a find references search and if the item is only used in one place, cmd+click on it will take me straight to it. However if the item is imported and used, I need to navigate the peek widget, expand the tree entry, then click on it. It would be nice if I can just skip over that if the only other reference is the import.

@JacksonKearl JacksonKearl reopened this May 15, 2020
@mjbvz mjbvz transferred this issue from microsoft/vscode Jun 2, 2020
@mjbvz mjbvz removed their assignment Jun 2, 2020
@mjbvz
Copy link
Contributor

mjbvz commented Jun 2, 2020

Simple example project:

foo.ts

export const foo = 1

index.ts

import { foo } from "./x";

foo

Find all references on foo returns 3 references, including one for the import

@IllusionMH
Copy link
Contributor

Related request microsoft/vscode#64528

I think that having not only locations info but if it's at least import, export flags or even more flags later ('read' or 'write' access, 'call' for functions (to differentiate from passing function as argument etc.)) would allow advanced filtering on editors side and scenario in this issue.

@RyanCavanaugh RyanCavanaugh added Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript labels Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

4 participants