aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/installation/server.ts')
-rw-r--r--editors/code/src/installation/server.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/code/src/installation/server.ts b/editors/code/src/installation/server.ts
index 685abfdc6..cb5e56844 100644
--- a/editors/code/src/installation/server.ts
+++ b/editors/code/src/installation/server.ts
@@ -63,7 +63,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n
63 63
64async function downloadServer(source: BinarySource.GithubRelease): Promise<boolean> { 64async function downloadServer(source: BinarySource.GithubRelease): Promise<boolean> {
65 try { 65 try {
66 const releaseInfo = (await fetchArtifactReleaseInfo(source.repo, source.file, source.version))!; 66 const releaseInfo = await fetchArtifactReleaseInfo(source.repo, source.file, source.version);
67 67
68 await downloadArtifact(releaseInfo, source.file, source.dir, "language server"); 68 await downloadArtifact(releaseInfo, source.file, source.dir, "language server");
69 await setServerVersion(source.storage, releaseInfo.releaseName); 69 await setServerVersion(source.storage, releaseInfo.releaseName);
@@ -88,9 +88,12 @@ async function downloadServer(source: BinarySource.GithubRelease): Promise<boole
88 return false; 88 return false;
89 } 89 }
90 90
91 if (!isBinaryAvailable(path.join(source.dir, source.file))) assert(false, 91 const binaryPath = path.join(source.dir, source.file);
92
93 assert(isBinaryAvailable(binaryPath),
92 `Downloaded language server binary is not functional.` + 94 `Downloaded language server binary is not functional.` +
93 `Downloaded from: ${JSON.stringify(source, null, 4)}` 95 `Downloaded from GitHub repo ${source.repo.owner}/${source.repo.name} ` +
96 `to ${binaryPath}`
94 ); 97 );
95 98
96 vscode.window.showInformationMessage( 99 vscode.window.showInformationMessage(