Quick fix circular json error when sanity-check fails

Related issue: #3280
This commit is contained in:
Veetaha 2020-02-24 11:56:52 +02:00 committed by GitHub
parent 1d1c1b0d85
commit ef4dfab3cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,9 +88,12 @@ async function downloadServer(source: BinarySource.GithubRelease): Promise<boole
return false;
}
if (!isBinaryAvailable(path.join(source.dir, source.file))) assert(false,
const binaryPath = path.join(source.dir, source.file);
if (!isBinaryAvailable(binaryPath)) assert(false,
`Downloaded language server binary is not functional.` +
`Downloaded from: ${JSON.stringify(source, null, 4)}`
`Downloaded from GitHub repo ${source.repo.owner}/${source.repo.name} ` +
`to ${binaryPath}`
);
vscode.window.showInformationMessage(