Skip to content

Commit 0cb34d7

Browse files
committed
add cwd
1 parent b2eebdd commit 0cb34d7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@
115115
"host": "localhost",
116116
"sourceFolder": "${workspaceFolder}",
117117
"program": "${workspaceFolder}/pocketpy/main.exe",
118-
"args": ["--debug"]
118+
"args": ["--debug"],
119+
"cwd": "${workspaceFolder}"
119120
}
120121
]
121122
}

samples/.vscode/launch.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"host": "localhost",
2121
"sourceFolder": "${workspaceFolder}",
2222
"program": "E:/pocketpy/main.exe",
23-
"args": ["--debug", "test_script2.py"]
23+
"args": ["--debug", "test_script2.py"],
24+
"cwd": "${workspaceFolder}"
2425
}
2526
]
2627
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class PythonDebugAdapterDescriptorFactory implements vscode.DebugAdapterDescript
8585
const args = config.args;
8686
const terminal = vscode.window.createTerminal({
8787
name: 'pocketpy',
88-
cwd: sourceFolder
88+
cwd: config.cwd
8989
});
9090
terminal.sendText(`${program} ${args.join(' ')}`);
9191
terminal.show();

0 commit comments

Comments
 (0)