mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-11 19:29:28 +00:00
Show the CLI version from the about dialog.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -13,6 +13,10 @@ export class ConfigServiceImpl implements ConfigService {
|
||||
return this.cli.getDefaultConfig();
|
||||
}
|
||||
|
||||
async getVersion(): Promise<string> {
|
||||
return this.cli.getVersion();
|
||||
}
|
||||
|
||||
async isInDataDir(uri: string): Promise<boolean> {
|
||||
return this.getConfiguration().then(({ dataDirUri }) => new URI(dataDirUri).isEqualOrParent(new URI(uri)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user