Skip to content

Commit

Permalink
Quick fix circular json error when sanity-check fails
Browse files Browse the repository at this point in the history
Related issue: rust-lang#3280
  • Loading branch information
Veetaha authored and cjhopman committed Apr 10, 2020
1 parent 9f3b81d commit d1a0caa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions editors/code/src/installation/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d1a0caa

Please sign in to comment.