File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1783,6 +1783,21 @@ export class ModelicaEntity extends ModelicaClassInstance {
17831783 }
17841784 continue ;
17851785 }
1786+ // Check for SSP archives
1787+ if ( ext === ".ssp" ) {
1788+ const sspPath = context . fs . join ( this . path , dirent . name ) ;
1789+ try {
1790+ // Lazy import to avoid circular dependency
1791+ // eslint-disable-next-line @typescript-eslint/no-require-imports
1792+ const { ModelicaSspEntity } = require ( "./ssp-archive.js" ) as typeof import ( "./ssp-archive.js" ) ;
1793+ const sspEntity = new ModelicaSspEntity ( this , sspPath ) ;
1794+ sspEntity . name = dirent . name . replace ( / \. s s p $ / , "" ) ;
1795+ this . subEntities . push ( sspEntity as unknown as ModelicaEntity ) ;
1796+ } catch {
1797+ // Skip unreadable SSP files
1798+ }
1799+ continue ;
1800+ }
17861801 if ( ext !== ".mo" ) continue ;
17871802 }
17881803 const subEntity = new ModelicaEntity ( this , context . fs . join ( this . path , dirent . name ) ) ;
You can’t perform that action at this time.
0 commit comments