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

Allow finding in files selected in SCM #227363

Closed
alexdima opened this issue Sep 2, 2024 · 2 comments
Closed

Allow finding in files selected in SCM #227363

alexdima opened this issue Sep 2, 2024 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@alexdima
Copy link
Member

alexdima commented Sep 2, 2024

  • Have a symbol, say a which is used in 200 files
  • Have a symbol, say b which is used in a subset of those 200 files, like in 50 files
  • Suppose all usages of a where b is used need to be migrated: a -> a2 and b -> b2
  • Do a replace in files to replace b with b2
  • At this time, the SCM viewlet contains exactly the 50 files where a needs to be migrated to a2
  • It is not possible to operate on those 50 files because all instances of a will be found (200 files)
  • It would be nice if I could right click on the changed files in the SCM viewlet and use that to define the search context.
@andreamah
Copy link
Contributor

I've been tracking ideas for "search in specific files/ranges` in this issue #20530. Please leave a comment there for this. Once we have better infrastructure for this type of search, I can start implementing these types of ideas (potentially as part of an API).

/duplicate #20530

@vs-code-engineering vs-code-engineering bot added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 3, 2024
Copy link

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!

@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants