diff options
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 19 | ||||
-rw-r--r-- | extension/src/debugPanel.ts | 7 |
2 files changed, 10 insertions, 16 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 10a9f75f..d6fe4261 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -219,23 +219,10 @@ export async function startContinuePythonServer() { // Run the executable console.log("Starting Continue server..."); const child = spawn(destination, { - shell: true, - }); - child.stderr.on("data", (data: any) => { - console.log(data.toString()); - }); - - child.on("error", (error: any) => { - console.log(`error: ${error.message}`); - }); - - child.on("close", (code: any) => { - console.log(`child process exited with code ${code}`); - }); - - child.stdout.on("data", (data: any) => { - console.log(`stdout: ${data.toString()}`); + detached: true, + stdio: "ignore", }); + child.unref(); // Write the current version of vscode extension to a file called server_version.txt fs.writeFileSync(serverVersionPath(), getExtensionVersion()); diff --git a/extension/src/debugPanel.ts b/extension/src/debugPanel.ts index 66d22e24..e7568f0d 100644 --- a/extension/src/debugPanel.ts +++ b/extension/src/debugPanel.ts @@ -244,6 +244,13 @@ export function setupDebugPanel( setFocusedOnContinueInput(false); break; } + case "focusEditor": { + setFocusedOnContinueInput(false); + vscode.commands.executeCommand( + "workbench.action.focusActiveEditorGroup" + ); + break; + } case "withProgress": { // This message allows withProgress to be used in the webview if (data.done) { |