diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/installation/language_server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/installation/language_server.ts b/editors/code/src/installation/language_server.ts index 2b3ce6621..8d8c62952 100644 --- a/editors/code/src/installation/language_server.ts +++ b/editors/code/src/installation/language_server.ts | |||
@@ -12,7 +12,7 @@ import { downloadFile } from "./download_file"; | |||
12 | export async function downloadLatestLanguageServer( | 12 | export async function downloadLatestLanguageServer( |
13 | {file: artifactFileName, dir: installationDir, repo}: GithubBinarySource | 13 | {file: artifactFileName, dir: installationDir, repo}: GithubBinarySource |
14 | ) { | 14 | ) { |
15 | const binaryMetadata = await fetchLatestArtifactMetadata({ artifactFileName, repo }); | 15 | const binaryMetadata = await fetchLatestArtifactMetadata(repo, artifactFileName); |
16 | 16 | ||
17 | const { | 17 | const { |
18 | releaseName, | 18 | releaseName, |
@@ -20,7 +20,7 @@ export async function downloadLatestLanguageServer( | |||
20 | } = unwrapNotNil(binaryMetadata, `Latest GitHub release lacks "${artifactFileName}" file`); | 20 | } = unwrapNotNil(binaryMetadata, `Latest GitHub release lacks "${artifactFileName}" file`); |
21 | 21 | ||
22 | await fs.mkdir(installationDir).catch(err => assert.strictEqual( | 22 | await fs.mkdir(installationDir).catch(err => assert.strictEqual( |
23 | err && err.code, | 23 | err?.code, |
24 | "EEXIST", | 24 | "EEXIST", |
25 | `Couldn't create directory "${installationDir}" to download `+ | 25 | `Couldn't create directory "${installationDir}" to download `+ |
26 | `language server binary: ${err.message}` | 26 | `language server binary: ${err.message}` |
@@ -48,7 +48,7 @@ export async function downloadLatestLanguageServer( | |||
48 | } | 48 | } |
49 | ); | 49 | ); |
50 | 50 | ||
51 | await fs.chmod(installationPath, 111); // Set xxx permissions | 51 | await fs.chmod(installationPath, 755); // Set (rwx, r_x, r_x) permissions |
52 | } | 52 | } |
53 | export async function ensureLanguageServerBinary( | 53 | export async function ensureLanguageServerBinary( |
54 | langServerSource: null | BinarySource | 54 | langServerSource: null | BinarySource |