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

Find in Files results semi-broken after canceling search bar #6966

Closed
peterflynn opened this issue Feb 22, 2014 · 7 comments
Closed

Find in Files results semi-broken after canceling search bar #6966

peterflynn opened this issue Feb 22, 2014 · 7 comments

Comments

@peterflynn
Copy link
Member

  1. Run a Find in Files search that turns up some results
  2. Open the Find in Files bar again, but press Esc or click out to close it before running a search
  3. Make an edit that would add or remove a search result
  4. In the search results panel at bottom, click one of the file headings to toggle it

Result:
3 - results don't update
4- exception thrown

This is because _doFindInFiles() resets the search state immediately, instead of waiting until the search is begun. We should either move that code later, or close the results panel as soon as the Find in Files bar is reopened.

@ingorichter ingorichter self-assigned this Feb 24, 2014
@peterflynn peterflynn added this to the Brackets 1.0 milestone Mar 21, 2014
@pthiess
Copy link
Contributor

pthiess commented Apr 23, 2014

Last reviewed for 1.0 milestone added.

@njx
Copy link
Contributor

njx commented Apr 23, 2014

Reviewed. Leaving in for 1.0. However, if we need to do some refactoring around this, we should consider how it affects other issues like #6617 (which is hard to fix for Find in Files right now because of the separation between module-global and dialog instance state) and the discussion in #7445.

@njx
Copy link
Contributor

njx commented May 14, 2014

Reassigning to me. This isn't fixed yet in my branch, but should be easy to fix.

njx added a commit that referenced this issue Jun 19, 2014
@njx
Copy link
Contributor

njx commented Jun 19, 2014

Fix is in #8171

@njx
Copy link
Contributor

njx commented Jun 19, 2014

Actually, will try to do a different fix where I instantiate a new clean SearchModel instead of clearing the old one.

njx added a commit that referenced this issue Jun 19, 2014
…FilesUI doesn't need to touch the model before the search starts (for #6966)
@njx
Copy link
Contributor

njx commented Jun 19, 2014

Better fix in #8174.

@redmunds
Copy link
Contributor

redmunds commented Oct 2, 2014

Confirmed. Closing.

@redmunds redmunds closed this as completed Oct 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants