From 0bd949c012df0081169728c77749a239eef73b62 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 27 Mar 2018 09:04:14 -0700 Subject: [PATCH] Fix #46628 - wrong "no results found" message --- src/vs/workbench/parts/search/browser/searchView.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/parts/search/browser/searchView.ts b/src/vs/workbench/parts/search/browser/searchView.ts index 89e8cef780064..d40610f860111 100644 --- a/src/vs/workbench/parts/search/browser/searchView.ts +++ b/src/vs/workbench/parts/search/browser/searchView.ts @@ -1108,8 +1108,8 @@ export class SearchView extends Viewlet implements IViewlet, IPanel { } if (!hasResults) { - let hasExcludes = !!query.excludePattern; - let hasIncludes = !!query.includePattern; + const hasExcludes = !!excludePatternText; + const hasIncludes = !!includePatternText; let message: string; if (!completed) {