Skip to content

Commit 2371e97

Browse files
committed
Update search path for older toolchains
1 parent 5b4aa09 commit 2371e97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ui/ProjectPanelProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class TargetNode {
369369
if (version.isGreaterThanOrEqual(this.newPluginLayoutVersion)) {
370370
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/*/**`;
371371
} else {
372-
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/{*,*/*}`;
372+
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/**`;
373373
}
374374
}
375375

@@ -379,8 +379,8 @@ class TargetNode {
379379
// This glob will capture all the files in the outputs directory for this target.
380380
const pattern = this.buildToolGlobPattern(version);
381381
const base = this.folder.folder.fsPath.replace(/\\/g, "/");
382-
const matches = glob.sync(pattern, { onlyFiles: false, cwd: base, deep: 4 });
383-
382+
const depth = version.isGreaterThanOrEqual(this.newPluginLayoutVersion) ? 4 : 3;
383+
const matches = glob.sync(pattern, { onlyFiles: false, cwd: base, deep: depth });
384384
return matches.map(filePath => {
385385
const pluginName = path.basename(filePath);
386386
return new HeaderNode(

0 commit comments

Comments
 (0)