Skip to content

Commit 4233965

Browse files
committed
Update search path for older toolchains
1 parent 4aaa6f3 commit 4233965

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
@@ -355,7 +355,7 @@ class TargetNode {
355355
if (version.isGreaterThanOrEqual(this.newPluginLayoutVersion)) {
356356
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/*/**`;
357357
} else {
358-
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/{*,*/*}`;
358+
return `${base}/.build/plugins/outputs/*/${this.target.name}/*/**`;
359359
}
360360
}
361361

@@ -365,8 +365,8 @@ class TargetNode {
365365
// This glob will capture all the files in the outputs directory for this target.
366366
const pattern = this.buildToolGlobPattern(version);
367367
const base = this.folder.folder.fsPath.replace(/\\/g, "/");
368-
const matches = glob.sync(pattern, { onlyFiles: false, cwd: base, deep: 4 });
369-
368+
const depth = version.isGreaterThanOrEqual(this.newPluginLayoutVersion) ? 4 : 3;
369+
const matches = glob.sync(pattern, { onlyFiles: false, cwd: base, deep: depth });
370370
return matches.map(filePath => {
371371
const pluginName = path.basename(filePath);
372372
return new HeaderNode(

0 commit comments

Comments
 (0)