GH-393: Do not use clangd from the $PATH.

Closes: arduino/arduino-pro-ide#393

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-12-15 11:02:31 +01:00
committed by Akos Kitta
parent 00a3ee34c8
commit 258b1e903e
3 changed files with 7 additions and 20 deletions

View File

@@ -14,7 +14,7 @@ export class ExecutableServiceImpl implements ExecutableService {
async list(): Promise<{ clangdUri: string, cliUri: string, lsUri: string }> {
const [ls, clangd, cli] = await Promise.all([
getExecPath('arduino-language-server', this.onError.bind(this)),
getExecPath('clangd', this.onError.bind(this), '--version', os.platform() !== 'win32'),
getExecPath('clangd', this.onError.bind(this), undefined, os.platform() !== 'win32'),
getExecPath('arduino-cli', this.onError.bind(this))
]);
return {