From 45b0afbff9d7ed716dde001773d06cf14c49fac0 Mon Sep 17 00:00:00 2001 From: andreamah Date: Wed, 28 Aug 2024 14:30:53 -0700 Subject: [PATCH] Exclude not applied Fixes #226714 --- src/vs/workbench/api/common/extHostWorkspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostWorkspace.ts b/src/vs/workbench/api/common/extHostWorkspace.ts index 33e3bafe5e7..de86d1e7eea 100644 --- a/src/vs/workbench/api/common/extHostWorkspace.ts +++ b/src/vs/workbench/api/common/extHostWorkspace.ts @@ -584,7 +584,7 @@ export class ExtHostWorkspace implements ExtHostWorkspaceShape, IExtHostWorkspac } const parsedInclude = include ? parseSearchExcludeInclude(GlobPattern.from(include)) : undefined; - const excludePatterns = include ? globsToISearchPatternBuilder(options.exclude) : undefined; + const excludePatterns = globsToISearchPatternBuilder(options.exclude); return { options: {