Speed up IDE startup time.

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
Akos Kitta
2022-05-20 12:11:23 +02:00
committed by Akos Kitta
parent cb50d3a70d
commit 4c55807392
179 changed files with 2692 additions and 2022 deletions

View File

@@ -16,15 +16,15 @@ class SilentArduinoDaemonImpl extends ArduinoDaemonImpl {
super();
}
onData(data: string): void {
override onData(data: string): void {
// NOOP
}
async spawnDaemonProcess(): Promise<{ daemon: ChildProcess; port: string }> {
override async spawnDaemonProcess(): Promise<{ daemon: ChildProcess; port: string }> {
return super.spawnDaemonProcess();
}
protected async getSpawnArgs(): Promise<string[]> {
protected override async getSpawnArgs(): Promise<string[]> {
const cliConfigPath = await this.initCliConfig();
return [
'daemon',

View File

@@ -19,7 +19,6 @@ describe('cli-config', () => {
[
() => {
const conf = defaultConfig();
(conf.daemon as any).port = String(conf.daemon.port);
return conf;
},
defaultConfig,
@@ -41,12 +40,8 @@ describe('cli-config', () => {
board_manager: {
additional_urls: [],
},
daemon: {
port: 5000,
},
directories: {
data: 'data',
downloads: 'downloads',
user: 'user',
},
};