Skip to content

Commit 02f9a56

Browse files
committed
Fix: update tree on target change
1 parent 3a85524 commit 02f9a56

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/solutions/files/cbuild-idx-file.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ class CbuildIdxFileImpl extends CTreeItemYamlFile implements CbuildIdxFile {
117117
const cbuildFileName = cbuild.getValueAsString('cbuild');
118118
const context = contextDescriptorFromString(getFileNameNoExt(cbuildFileName));
119119

120+
const resolvedPath = this.resolvePath(cbuildFileName);
120121
// Reuse existing CbuildFile if available, otherwise create new
121122
let cbuildFile = this._cbuildFiles.get(context.projectName);
122123
if (!cbuildFile) {
123-
cbuildFile = new CbuildFile(this.resolvePath(cbuildFileName));
124+
cbuildFile = new CbuildFile(resolvedPath);
124125
this._cbuildFiles.set(context.projectName, cbuildFile);
125126
}
126127

127-
const result = await cbuildFile.load();
128+
const result = await cbuildFile.load(resolvedPath);
128129
if (result <= ETextFileResult.Success) {
129130
context.projectPath = cbuildFile.projectPath;
130131
context.layers = this.collectLayers(cbuild);

0 commit comments

Comments
 (0)