Skip to content

Commit a3367ae

Browse files
committed
add some system vars
1 parent 1ba6b48 commit a3367ae

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/EIDEProject.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,14 @@ export abstract class AbstractProject implements CustomConfigurationProvider, Pr
22592259
this.registerBuiltinVar('ConfigName', () => this.GetConfiguration().config.mode);
22602260
this.registerBuiltinVar('ProjectRoot', () => this.getRootDir().path);
22612261
this.registerBuiltinVar('ExecutableName', () => this.getExecutablePathWithoutSuffix());
2262+
2263+
// system vars
2264+
this.registerBuiltinVar('SYS_Platform', () => platform.osType());
2265+
this.registerBuiltinVar('SYS_DirSep', () => File.sep);
2266+
this.registerBuiltinVar('SYS_DirSeparator', () => File.sep);
2267+
this.registerBuiltinVar('SYS_PathSep', () => platform.osType() != 'win32' ? ':' : ';');
2268+
this.registerBuiltinVar('SYS_PathSeparator', () => platform.osType() != 'win32' ? ':' : ';');
2269+
this.registerBuiltinVar('SYS_EOL', () => os.EOL);
22622270
}
22632271

22642272
private RegisterEvent(): void {

0 commit comments

Comments
 (0)