diff --git a/package-lock.json b/package-lock.json index 0db2665f..5c1a5598 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "debugpy", - "version": "2025.14.0", + "version": "2025.14.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "debugpy", - "version": "2025.14.0", + "version": "2025.14.1", "license": "MIT", "dependencies": { "@vscode/debugadapter": "^1.65.0", diff --git a/package.json b/package.json index 74d4705a..da6c0d52 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "debugpy", "displayName": "Python Debugger", "description": "Python Debugger extension using debugpy.", - "version": "2025.14.0", + "version": "2025.14.1", "publisher": "ms-python", "enabledApiProposals": [ "portsAttributes", diff --git a/src/extension/common/python.ts b/src/extension/common/python.ts index 18686d1f..68898bfd 100644 --- a/src/extension/common/python.ts +++ b/src/extension/common/python.ts @@ -115,13 +115,8 @@ export async function getActiveEnvironmentPath(resource?: Resource) { export async function getInterpreterDetails(resource?: Uri): Promise { const api = await getPythonExtensionEnviromentAPI(); const environment = await api.environments.resolveEnvironment(api.environments.getActiveEnvironmentPath(resource)); - const rawExecPath = environment?.executable.uri?.fsPath; - if (rawExecPath) { - let execPath = rawExecPath; - if (rawExecPath.includes(' ') && !(rawExecPath.startsWith('"') && rawExecPath.endsWith('"'))) { - execPath = `"${rawExecPath}"`; - } - return { path: [execPath], resource }; + if (environment?.executable.uri) { + return { path: [environment?.executable.uri.fsPath], resource }; } return { path: undefined, resource }; }