File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments