aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-08 18:07:00 +0000
committerVeetaha <[email protected]>2020-02-08 18:07:00 +0000
commitf7ef72db64e75dadf6f7cae9d739a0a6e8d8f4b4 (patch)
treeffd0a2793f798ef7c7bf3f4bae748da97724ab18 /editors/code/src/installation
parent5d88c1db38200896d2e4af7836fec95097adf509 (diff)
vscode: changed chmod value to 755 as per @lnicola
Diffstat (limited to 'editors/code/src/installation')
-rw-r--r--editors/code/src/installation/language_server.ts6
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";
12export async function downloadLatestLanguageServer( 12export 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}
53export async function ensureLanguageServerBinary( 53export async function ensureLanguageServerBinary(
54 langServerSource: null | BinarySource 54 langServerSource: null | BinarySource