src/search/FindInFiles.js
function _addListeners() {
        // Avoid adding duplicate listeners - e.g. if a 2nd search is run without closing the old results panel first
        _removeListeners();

        DocumentModule.on("documentChange", _documentChangeHandler);
        FileSystem.on("change", _debouncedFileSystemChangeHandler);
        DocumentManager.on("fileNameChange",  _fileNameChangeHandler);
    }
function _addListeners() {
        // Avoid adding duplicate listeners - e.g. if a 2nd search is run without closing the old results panel first
        _removeListeners();

        DocumentModule.on("documentChange", _documentChangeHandler);
        FileSystem.on("change", _debouncedFileSystemChangeHandler);
        DocumentManager.on("fileNameChange",  _fileNameChangeHandler);
    }
function _addListeners ( ) { // Avoid adding duplicate listeners - e.g. if a 2nd search is run without closing the old results panel first _removeListeners ( ) ; DocumentModule . on ( "documentChange" , _documentChangeHandler ) ; FileSystem . on ( "change" , _debouncedFileSystemChangeHandler ) ; DocumentManager . on ( "fileNameChange" , _fileNameChangeHandler ) ; }
Add listeners to track events that might change the search result set
Add listeners to track events that might change the search result set