From f7ef72db64e75dadf6f7cae9d739a0a6e8d8f4b4 Mon Sep 17 00:00:00 2001
From: Veetaha <gerzoh1@gmail.com>
Date: Sat, 8 Feb 2020 20:07:00 +0200
Subject: vscode: changed chmod value to 755 as per @lnicola

---
 editors/code/src/installation/language_server.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'editors')

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";
 export async function downloadLatestLanguageServer(
     {file: artifactFileName, dir: installationDir, repo}: GithubBinarySource
 ) {
-    const binaryMetadata = await fetchLatestArtifactMetadata({ artifactFileName, repo });
+    const binaryMetadata = await fetchLatestArtifactMetadata(repo, artifactFileName);
 
     const {
         releaseName,
@@ -20,7 +20,7 @@ export async function downloadLatestLanguageServer(
     } = unwrapNotNil(binaryMetadata, `Latest GitHub release lacks "${artifactFileName}" file`);
 
     await fs.mkdir(installationDir).catch(err => assert.strictEqual(
-        err && err.code,
+        err?.code,
         "EEXIST",
         `Couldn't create directory "${installationDir}" to download `+
         `language server binary: ${err.message}`
@@ -48,7 +48,7 @@ export async function downloadLatestLanguageServer(
         }
     );
 
-    await fs.chmod(installationPath, 111); // Set xxx permissions
+    await fs.chmod(installationPath, 755); // Set (rwx, r_x, r_x) permissions
 }
 export async function ensureLanguageServerBinary(
     langServerSource: null | BinarySource
-- 
cgit v1.2.3