mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 18:38:33 +00:00
Speed up IDE startup time.
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user