mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
Updated to Theia 1.4.0-next.a62011a5.
- Aligned the daemon test to latest `js-yaml`. - Aligned the TS version with Theia. - Resolved a dependency-cycle with `next` Theia. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -36,7 +36,7 @@ class SilentArduinoDaemonImpl extends ArduinoDaemonImpl {
|
||||
const destDir = track.mkdirSync();
|
||||
await spawnCommand(`"${cliPath}"`, ['config', 'init', '--dest-dir', destDir]);
|
||||
const content = fs.readFileSync(path.join(destDir, CLI_CONFIG), { encoding: 'utf8' });
|
||||
const cliConfig = safeLoad(content);
|
||||
const cliConfig = safeLoad(content) as any;
|
||||
cliConfig.daemon.port = String(this.port);
|
||||
const modifiedContent = safeDump(cliConfig);
|
||||
fs.writeFileSync(path.join(destDir, CLI_CONFIG), modifiedContent, { encoding: 'utf8' });
|
||||
|
||||
Reference in New Issue
Block a user