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) {