Skip to content

Commit 037dbaf

Browse files
committed
update Language Server flags
1 parent 77c0ab8 commit 037dbaf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,14 +392,10 @@ export class ArduinoFrontendContribution
392392
);
393393
}
394394
}
395-
const { clangdUri, cliUri, lsUri } = await this.executableService.list();
396-
const [clangdPath, cliPath, lsPath, cliConfigPath] = await Promise.all([
395+
const { clangdUri, lsUri } = await this.executableService.list();
396+
const [clangdPath, lsPath] = await Promise.all([
397397
this.fileService.fsPath(new URI(clangdUri)),
398-
this.fileService.fsPath(new URI(cliUri)),
399398
this.fileService.fsPath(new URI(lsUri)),
400-
this.fileService.fsPath(
401-
new URI(await this.configService.getCliConfigFileUri())
402-
),
403399
]);
404400
this.languageServerFqbn = await Promise.race([
405401
new Promise<undefined>((_, reject) =>
@@ -412,10 +408,10 @@ export class ArduinoFrontendContribution
412408
'arduino.languageserver.start',
413409
{
414410
lsPath,
415-
cliPath,
411+
cliDaemonAddr: 'localhost:50051',
416412
clangdPath,
417413
log: currentSketchPath ? currentSketchPath : log,
418-
cliConfigPath,
414+
cliDaemonInstance: '1',
419415
board: {
420416
fqbn,
421417
name: name ? `"${name}"` : undefined,

0 commit comments

Comments
 (0)