aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/installation/language_server.ts
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-11 21:35:49 +0000
committerGitHub <[email protected]>2020-02-11 21:35:49 +0000
commitaf5042bd61877383398c17d941cf4f93f1c2d6be (patch)
tree7916ac708663d233be235b3f17d134a1f410a1a4 /editors/code/src/installation/language_server.ts
parent6f685df68164aaf261ebd30a7bb8c81be96c8c77 (diff)
parentb834b376826a6ff9a24d88894a91b810460960ec (diff)
Merge #3115
3115: vscode: remove chmod in favour of an option to createWriteStream() r=matklad a=Veetaha Inspired by [cpptools code](https://github.com/microsoft/vscode-cpptools/blob/0d91db0e060b946939ee620130c1dbc0fb1d7c42/Extension/src/packageManager.ts#L385-L386) Co-authored-by: Veetaha <[email protected]>
Diffstat (limited to 'editors/code/src/installation/language_server.ts')
-rw-r--r--editors/code/src/installation/language_server.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/editors/code/src/installation/language_server.ts b/editors/code/src/installation/language_server.ts
index 3510f9178..52c5cbe7d 100644
--- a/editors/code/src/installation/language_server.ts
+++ b/editors/code/src/installation/language_server.ts
@@ -35,7 +35,8 @@ export async function downloadLatestLanguageServer(
35 }, 35 },
36 async (progress, _cancellationToken) => { 36 async (progress, _cancellationToken) => {
37 let lastPrecentage = 0; 37 let lastPrecentage = 0;
38 await downloadFile(downloadUrl, installationPath, throttle( 38 const filePermissions = 0o755; // (rwx, r_x, r_x)
39 await downloadFile(downloadUrl, installationPath, filePermissions, throttle(
39 200, 40 200,
40 /* noTrailing: */ true, 41 /* noTrailing: */ true,
41 (readBytes, totalBytes) => { 42 (readBytes, totalBytes) => {
@@ -51,8 +52,6 @@ export async function downloadLatestLanguageServer(
51 } 52 }
52 ); 53 );
53 console.timeEnd("Downloading ra_lsp_server"); 54 console.timeEnd("Downloading ra_lsp_server");
54
55 await fs.chmod(installationPath, 0o755); // Set (rwx, r_x, r_x) permissions
56} 55}
57export async function ensureLanguageServerBinary( 56export async function ensureLanguageServerBinary(
58 langServerSource: null | BinarySource 57 langServerSource: null | BinarySource