summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-02 22:40:54 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-02 22:40:54 -0700
commit0e6a0c94254de045bf3c722089228b0e033f7255 (patch)
tree2cc5d8bcdc33b25ab8b653e242542e5f784dcbb2 /extension/src/activation/environmentSetup.ts
parent2bc5547dc9878991e744f5fb7d3bb5c51e4ab3eb (diff)
downloadsncontinue-0e6a0c94254de045bf3c722089228b0e033f7255.tar.gz
sncontinue-0e6a0c94254de045bf3c722089228b0e033f7255.tar.bz2
sncontinue-0e6a0c94254de045bf3c722089228b0e033f7255.zip
await file download
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 6bfa7d07..a1c4f7ee 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -178,7 +178,7 @@ export async function startContinuePythonServer() {
}
if (shouldDownload) {
- vscode.window.withProgress(
+ await vscode.window.withProgress(
{
location: vscode.ProgressLocation.Notification,
title: "Installing Continue server...",
@@ -194,16 +194,13 @@ export async function startContinuePythonServer() {
// Get name of the corresponding executable for platform
if (os.platform() === "darwin") {
// Add necessary permissions
- const [stdout, stderr] = await runCommand(`chmod +x ${destination}`);
console.log("Setting permissions for Continue server...");
- console.log(stdout);
- console.log(stderr);
+ fs.chmodSync(destination, 0o7_5_5);
const [stdout1, stderr1] = await runCommand(
`xattr -dr com.apple.quarantine ${destination}`
);
- console.log("...");
- console.log(stdout1);
- console.log(stderr1);
+ console.log("stdout: ", stdout1);
+ console.log("stderr: ", stderr1);
}
// Run the executable