diff options
Diffstat (limited to 'editors/code/src/installation/language_server.ts')
-rw-r--r-- | editors/code/src/installation/language_server.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/code/src/installation/language_server.ts b/editors/code/src/installation/language_server.ts index b75d3a00a..522d59eb5 100644 --- a/editors/code/src/installation/language_server.ts +++ b/editors/code/src/installation/language_server.ts | |||
@@ -5,12 +5,12 @@ import * as path from "path"; | |||
5 | import { strict as assert } from "assert"; | 5 | import { strict as assert } from "assert"; |
6 | import { promises as fs } from "fs"; | 6 | import { promises as fs } from "fs"; |
7 | 7 | ||
8 | import { BinarySource, BinarySourceType, GithubBinarySource } from "./interfaces"; | 8 | import { BinarySource } from "./interfaces"; |
9 | import { fetchLatestArtifactMetadata } from "./fetch_latest_artifact_metadata"; | 9 | import { fetchLatestArtifactMetadata } from "./fetch_latest_artifact_metadata"; |
10 | import { downloadFile } from "./download_file"; | 10 | import { downloadFile } from "./download_file"; |
11 | 11 | ||
12 | export async function downloadLatestLanguageServer( | 12 | export async function downloadLatestLanguageServer( |
13 | {file: artifactFileName, dir: installationDir, repo}: GithubBinarySource | 13 | {file: artifactFileName, dir: installationDir, repo}: BinarySource.GithubRelease |
14 | ) { | 14 | ) { |
15 | const binaryMetadata = await fetchLatestArtifactMetadata(repo, artifactFileName); | 15 | const binaryMetadata = await fetchLatestArtifactMetadata(repo, artifactFileName); |
16 | 16 | ||
@@ -67,7 +67,7 @@ export async function ensureLanguageServerBinary( | |||
67 | } | 67 | } |
68 | 68 | ||
69 | switch (langServerSource.type) { | 69 | switch (langServerSource.type) { |
70 | case BinarySourceType.ExplicitPath: { | 70 | case BinarySource.Type.ExplicitPath: { |
71 | if (isBinaryAvailable(langServerSource.path)) { | 71 | if (isBinaryAvailable(langServerSource.path)) { |
72 | return langServerSource.path; | 72 | return langServerSource.path; |
73 | } | 73 | } |
@@ -78,7 +78,7 @@ export async function ensureLanguageServerBinary( | |||
78 | ); | 78 | ); |
79 | return null; | 79 | return null; |
80 | } | 80 | } |
81 | case BinarySourceType.GithubBinary: { | 81 | case BinarySource.Type.GithubRelease: { |
82 | const bundledBinaryPath = path.join(langServerSource.dir, langServerSource.file); | 82 | const bundledBinaryPath = path.join(langServerSource.dir, langServerSource.file); |
83 | 83 | ||
84 | if (!isBinaryAvailable(bundledBinaryPath)) { | 84 | if (!isBinaryAvailable(bundledBinaryPath)) { |
@@ -106,7 +106,7 @@ export async function ensureLanguageServerBinary( | |||
106 | ); | 106 | ); |
107 | 107 | ||
108 | vscode.window.showInformationMessage( | 108 | vscode.window.showInformationMessage( |
109 | "Rust analyzer language server was successfully installed" | 109 | "Rust analyzer language server was successfully installed 🦀" |
110 | ); | 110 | ); |
111 | } | 111 | } |
112 | return bundledBinaryPath; | 112 | return bundledBinaryPath; |