From e230bd95207e5868fd3e22c8c36a528e79b53e9e Mon Sep 17 00:00:00 2001 From: Francesco Stasi Date: Thu, 18 Nov 2021 16:33:44 +0100 Subject: [PATCH] update Language Server flags --- .../src/browser/arduino-frontend-contribution.tsx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx b/arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx index 2054cdcdb..ef1d56659 100644 --- a/arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx +++ b/arduino-ide-extension/src/browser/arduino-frontend-contribution.tsx @@ -392,14 +392,10 @@ export class ArduinoFrontendContribution ); } } - const { clangdUri, cliUri, lsUri } = await this.executableService.list(); - const [clangdPath, cliPath, lsPath, cliConfigPath] = await Promise.all([ + const { clangdUri, lsUri } = await this.executableService.list(); + const [clangdPath, lsPath] = await Promise.all([ this.fileService.fsPath(new URI(clangdUri)), - this.fileService.fsPath(new URI(cliUri)), this.fileService.fsPath(new URI(lsUri)), - this.fileService.fsPath( - new URI(await this.configService.getCliConfigFileUri()) - ), ]); this.languageServerFqbn = await Promise.race([ new Promise((_, reject) => @@ -412,10 +408,10 @@ export class ArduinoFrontendContribution 'arduino.languageserver.start', { lsPath, - cliPath, + cliDaemonAddr: 'localhost:50051', clangdPath, log: currentSketchPath ? currentSketchPath : log, - cliConfigPath, + cliDaemonInstance: '1', board: { fqbn, name: name ? `"${name}"` : undefined,