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 re-indexing of files to clear stale search results #60760

Closed
costincaraivan opened this issue Oct 12, 2018 · 5 comments
Closed

Allow re-indexing of files to clear stale search results #60760

costincaraivan opened this issue Oct 12, 2018 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster search Search widget and operation issues

Comments

@costincaraivan
Copy link
Contributor

I've renamed a top-level folder (don't remember if I did it within VS Code or outside of it, I'm not sure it matters much).

Unfortunately now when I search for files, I get both the results in the old folder (which fail to open, obviously, and they're removed from the search results, afterwards, through the popup) and the ones in the new folder.

Is there some way to manually trigger re-indexing of files so that the search results are up-to-date? It's kind of annoying when you have tens or hundreds of files moved around.

@vscodebot vscodebot bot added the search Search widget and operation issues label Oct 12, 2018
@roblourens
Copy link
Member

Could those renamed files still be open in an editor tab in the background?

@roblourens roblourens added the info-needed Issue requires more information from poster label Oct 12, 2018
@costincaraivan
Copy link
Contributor Author

costincaraivan commented Oct 12, 2018

Nope, they aren't. This happens even after restarting VS Code, I don't know if it makes any difference.

scripts

Example, right now: that scripts_bim folder is long gone.

@roblourens
Copy link
Member

roblourens commented Oct 12, 2018

Are those in the "recently opened" section? In the light gray text on the right side

@costincaraivan
Copy link
Contributor Author

costincaraivan commented Oct 12, 2018

I'm not sure. If I search for "yml" with Ctrl-P, I get many results and the first line does say "recently opened" on the right side, next to that split window icon. Does this mean that everything present there has been recently opened? If so, I guess they were all "recently opened".

@roblourens
Copy link
Member

Yeah once a file is opened, it's unfortunately not removed from that list when deleted. You can clear the whole recently opened list by running "Clear Editor History".

I think #27317 covers this

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster search Search widget and operation issues
Projects
None yet
Development

No branches or pull requests

2 participants