Add shell integration warning; reuse terminals when possible

This commit is contained in:
Saoud Rizwan
2024-09-09 07:40:03 -04:00
parent 30dad0b0bc
commit 4edffb0d6d
7 changed files with 266 additions and 171 deletions

View File

@@ -1,5 +1,17 @@
import * as vscode from "vscode"
/*
Used to get user's current python environment (unnecessary now that we use the IDE's terminal)
${await (async () => {
try {
const pythonEnvPath = await getPythonEnvPath()
if (pythonEnvPath) {
return `\nPython Environment: ${pythonEnvPath}`
}
} catch {}
return ""
})()}
*/
export async function getPythonEnvPath(): Promise<string | undefined> {
const pythonExtension = vscode.extensions.getExtension("ms-python.python")