Skip to content

Commit cfde197

Browse files
author
Akos Kitta
committed
Use CLI 0.11.0.
- LS does not work, - Cannot reconnect to the daemon on browser refresh. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 20f44fe commit cfde197

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

arduino-ide-extension/scripts/download-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(() => {
1212

13-
const DEFAULT_VERSION = '0.11.0-rc1-62-g72c9655f'; // require('moment')().format('YYYYMMDD');
13+
const DEFAULT_VERSION = '0.11.0'; // require('moment')().format('YYYYMMDD');
1414

1515
const path = require('path');
1616
const shell = require('shelljs');

arduino-ide-extension/src/node/arduino-daemon-impl.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ export class ArduinoDaemonImpl implements ArduinoDaemon, BackendApplicationContr
166166
if (error) {
167167
ready.reject(error);
168168
}
169-
if (message.includes('Daemon is now listening on 127.0.0.1')) {
170-
grpcServerIsReady = true;
171-
ready.resolve(daemon);
169+
for (const expected of ['Daemon is listening on TCP port', 'Daemon is now listening on 127.0.0.1']) {
170+
if (message.includes(expected)) {
171+
grpcServerIsReady = true;
172+
ready.resolve(daemon);
173+
}
172174
}
173175
}
174176
});

0 commit comments

Comments
 (0)