update ls to 0.6.0and clangd to 13.0.0 (#738)

This commit is contained in:
Alberto Iannaccone
2022-01-24 17:21:19 +01:00
committed by GitHub
parent a71ac4c44d
commit 1d88263c85
5 changed files with 148 additions and 106 deletions

View File

@@ -17,7 +17,7 @@ export class ExecutableServiceImpl implements ExecutableService {
}> {
const [ls, clangd, cli, fwuploader] = await Promise.all([
getExecPath('arduino-language-server', this.onError.bind(this)),
getExecPath('clangd', this.onError.bind(this), undefined, true),
getExecPath('clangd', this.onError.bind(this), undefined),
getExecPath('arduino-cli', this.onError.bind(this)),
getExecPath('arduino-fwuploader', this.onError.bind(this)),
]);

View File

@@ -22,7 +22,7 @@ describe('getExecPath', () => {
});
it('should resolve clangd', async () => {
const actual = await getExecPath('clangd', onError, '--version', true);
const actual = await getExecPath('clangd', onError, '--version');
const expected = os.platform() === 'win32' ? '\\clangd.exe' : '/clangd';
expect(actual).to.endsWith(expected);
});