Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Find in Files results header messed up after file rename #2503

Closed
peterflynn opened this issue Jan 10, 2013 · 4 comments
Closed

Find in Files results header messed up after file rename #2503

peterflynn opened this issue Jan 10, 2013 · 4 comments
Assignees
Milestone

Comments

@peterflynn
Copy link
Member

  1. Right-click a folder > Find In...
  2. Run any search query
  3. Leave the results pane open, and rename any file

Result:
Results pane header changes to say "undefined" as the search query and the part of the label indicating the subfolder ("in ...") disappears.

Expected:
Results pane header doesn't change at all.

@peterflynn
Copy link
Member Author

This happens because _fileNameChangeHandler() calls _showSearchResults() with 1 argument when it now expects 3.

I noticed two other bugs in FindInFiles.js, one related and one unrelated, that we should fix at the same time:

@ghost ghost assigned gruehle and redmunds Jan 14, 2013
@pthiess
Copy link
Contributor

pthiess commented Jan 14, 2013

@redmunds - Hi Randy, usually I would have opened this to Glenn, but he seems bussy with the Native Menu story. @gruehle and @peterflynn know the code and can help you if needed.

@redmunds
Copy link
Contributor

@peterflynn The _fileNameChangeHandler() receives the entire file path of the file name change. This will only be a problem if the new file name matches an old folder path, which doesn't seem possible. I also opened #2551 about a folder renaming problem that goes beyond the scope of the Find in Files panel.

@redmunds
Copy link
Contributor

Closed (again).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants