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

Commit be1f56d

Browse files
committed
Merge pull request #9940 from MarcelGerber/fif-results-disappear
Fix #9904: disappearing Find In Files results.
2 parents 7bbfd6f + ec047fc commit be1f56d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/search/FindInFiles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,8 @@ define(function (require, exports, module) {
523523
*/
524524
function _removeSearchResultsForEntry(entry) {
525525
Object.keys(searchModel.results).forEach(function (fullPath) {
526-
if (fullPath.indexOf(entry.fullPath) === 0) {
526+
if (fullPath === entry.fullPath ||
527+
(entry.isDirectory && fullPath.indexOf(entry.fullPath) === 0)) {
527528
searchModel.removeResults(fullPath);
528529
resultsChanged = true;
529530
}

0 commit comments

Comments
 (0)