diff options
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r-- | editors/code/src/installation/download_artifact.ts | 4 | ||||
-rw-r--r-- | editors/code/src/installation/fetch_artifact_release_info.ts | 6 | ||||
-rw-r--r-- | editors/code/src/installation/server.ts | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/editors/code/src/installation/download_artifact.ts b/editors/code/src/installation/download_artifact.ts index de655f8f4..9996c556f 100644 --- a/editors/code/src/installation/download_artifact.ts +++ b/editors/code/src/installation/download_artifact.ts | |||
@@ -15,7 +15,7 @@ import { throttle } from "throttle-debounce"; | |||
15 | * of the artifact as `displayName`. | 15 | * of the artifact as `displayName`. |
16 | */ | 16 | */ |
17 | export async function downloadArtifact( | 17 | export async function downloadArtifact( |
18 | {downloadUrl, releaseName}: ArtifactReleaseInfo, | 18 | { downloadUrl, releaseName }: ArtifactReleaseInfo, |
19 | artifactFileName: string, | 19 | artifactFileName: string, |
20 | installationDir: string, | 20 | installationDir: string, |
21 | displayName: string, | 21 | displayName: string, |
@@ -23,7 +23,7 @@ export async function downloadArtifact( | |||
23 | await fs.mkdir(installationDir).catch(err => assert.strictEqual( | 23 | await fs.mkdir(installationDir).catch(err => assert.strictEqual( |
24 | err?.code, | 24 | err?.code, |
25 | "EEXIST", | 25 | "EEXIST", |
26 | `Couldn't create directory "${installationDir}" to download `+ | 26 | `Couldn't create directory "${installationDir}" to download ` + |
27 | `${artifactFileName} artifact: ${err.message}` | 27 | `${artifactFileName} artifact: ${err.message}` |
28 | )); | 28 | )); |
29 | 29 | ||
diff --git a/editors/code/src/installation/fetch_artifact_release_info.ts b/editors/code/src/installation/fetch_artifact_release_info.ts index 7d497057a..71889e82a 100644 --- a/editors/code/src/installation/fetch_artifact_release_info.ts +++ b/editors/code/src/installation/fetch_artifact_release_info.ts | |||
@@ -14,7 +14,7 @@ export async function fetchArtifactReleaseInfo( | |||
14 | ): Promise<null | ArtifactReleaseInfo> { | 14 | ): Promise<null | ArtifactReleaseInfo> { |
15 | 15 | ||
16 | const repoOwner = encodeURIComponent(repo.owner); | 16 | const repoOwner = encodeURIComponent(repo.owner); |
17 | const repoName = encodeURIComponent(repo.name); | 17 | const repoName = encodeURIComponent(repo.name); |
18 | 18 | ||
19 | const apiEndpointPath = releaseTag | 19 | const apiEndpointPath = releaseTag |
20 | ? `/repos/${repoOwner}/${repoName}/releases/tags/${releaseTag}` | 20 | ? `/repos/${repoOwner}/${repoName}/releases/tags/${releaseTag}` |
@@ -28,8 +28,8 @@ export async function fetchArtifactReleaseInfo( | |||
28 | 28 | ||
29 | // FIXME: handle non-ok response | 29 | // FIXME: handle non-ok response |
30 | const response: GithubRelease = await fetch(requestUrl, { | 30 | const response: GithubRelease = await fetch(requestUrl, { |
31 | headers: { Accept: "application/vnd.github.v3+json" } | 31 | headers: { Accept: "application/vnd.github.v3+json" } |
32 | }) | 32 | }) |
33 | .then(res => res.json()); | 33 | .then(res => res.json()); |
34 | 34 | ||
35 | const artifact = response.assets.find(artifact => artifact.name === artifactFileName); | 35 | const artifact = response.assets.find(artifact => artifact.name === artifactFileName); |
diff --git a/editors/code/src/installation/server.ts b/editors/code/src/installation/server.ts index 6f69af698..63ab104a1 100644 --- a/editors/code/src/installation/server.ts +++ b/editors/code/src/installation/server.ts | |||
@@ -29,7 +29,7 @@ export async function ensureServerBinary(source: null | BinarySource): Promise<n | |||
29 | 29 | ||
30 | vscode.window.showErrorMessage( | 30 | vscode.window.showErrorMessage( |
31 | `Unable to run ${source.path} binary. ` + | 31 | `Unable to run ${source.path} binary. ` + |
32 | `To use the pre-built language server, set "rust-analyzer.raLspServerPath" ` + | 32 | `To use the pre-built language server, set "rust-analyzer.serverPath" ` + |
33 | "value to `null` or remove it from the settings to use it by default." | 33 | "value to `null` or remove it from the settings to use it by default." |
34 | ); | 34 | ); |
35 | return null; | 35 | return null; |