diff options
Diffstat (limited to 'editors/code/src/installation/language_server.ts')
-rw-r--r-- | editors/code/src/installation/language_server.ts | 5 |
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 | } |
57 | export async function ensureLanguageServerBinary( | 56 | export async function ensureLanguageServerBinary( |
58 | langServerSource: null | BinarySource | 57 | langServerSource: null | BinarySource |