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

Commit ec047fc

Browse files
author
Marcel Gerber
committed
Fix disappearing Find In Files results
1 parent 57dcc1a commit ec047fc

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)