Skip to content

Commit a275b6e

Browse files
authored
revert path quoting (#831) (#832)
* revert path quoting (#831) * bump version to 2025.14.1
1 parent 4e30462 commit a275b6e

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "debugpy",
33
"displayName": "Python Debugger",
44
"description": "Python Debugger extension using debugpy.",
5-
"version": "2025.14.0",
5+
"version": "2025.14.1",
66
"publisher": "ms-python",
77
"enabledApiProposals": [
88
"portsAttributes",

src/extension/common/python.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,8 @@ export async function getActiveEnvironmentPath(resource?: Resource) {
115115
export async function getInterpreterDetails(resource?: Uri): Promise<IInterpreterDetails> {
116116
const api = await getPythonExtensionEnviromentAPI();
117117
const environment = await api.environments.resolveEnvironment(api.environments.getActiveEnvironmentPath(resource));
118-
const rawExecPath = environment?.executable.uri?.fsPath;
119-
if (rawExecPath) {
120-
let execPath = rawExecPath;
121-
if (rawExecPath.includes(' ') && !(rawExecPath.startsWith('"') && rawExecPath.endsWith('"'))) {
122-
execPath = `"${rawExecPath}"`;
123-
}
124-
return { path: [execPath], resource };
118+
if (environment?.executable.uri) {
119+
return { path: [environment?.executable.uri.fsPath], resource };
125120
}
126121
return { path: undefined, resource };
127122
}

0 commit comments

Comments
 (0)