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

search not work for file if file is not opened. #54020

Closed
FFengIll opened this issue Jul 11, 2018 · 6 comments
Closed

search not work for file if file is not opened. #54020

FFengIll opened this issue Jul 11, 2018 · 6 comments
Assignees
Labels
info-needed Issue requires more information from poster search Search widget and operation issues

Comments

@FFengIll
Copy link

FFengIll commented Jul 11, 2018

  • VSCode Version: 1.25
  • OS Version: MacOS

Steps to Reproduce:

  1. search not work for file if file is not opened. (if I open the file, the search is successful, aka pic.3)
  2. see the snapshot.
    ( may ref to Search - path to file in 'include' box should be searched #48958)

file closed:
image

file closed:
image

file opened:
image

Does this issue occur when all extensions are disabled?: Yes

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

Is it open in screenshot 3 and closed in shots 1 and 2?

@roblourens roblourens added the info-needed Issue requires more information from poster label Jul 11, 2018
@FFengIll
Copy link
Author

@roblourens yes, and I fixed the comment.

@roblourens
Copy link
Member

Please see these troubleshooting tips: https://github.com/Microsoft/vscode/wiki/Search-Issues#missing-search-results

And attach the logs (instructions at the bottom of that page) if they don't help.

@FFengIll
Copy link
Author

@roblourens I will follow Please see these troubleshooting tips and attach things later.

Before that, I have done a debug and find that:
search not work for a single file ( I found related things and reasons but no solution now), ref #48958 (as you say)

But why it works for the opened file (screenshot 3)?
I found it may come from the default action -- always search in opened files.
The file just feat the glob, so the results of the opened show in the GUI.

Wish to share these info to help for a solution.

@roblourens
Copy link
Member

Searching in open files does work differently from searching in other files, so that's expected.

@vscodebot vscodebot bot closed this as completed Jul 24, 2018
@vscodebot
Copy link

vscodebot bot commented Jul 24, 2018

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 7, 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