π OpenHands: AI-Driven Development
Fix VSCode workspace dir (#9080)
Tim O'Farrell57fee1734839
diff --git a/openhands/runtime/plugins/vscode/__init__.py b/openhands/runtime/plugins/vscode/__init__.pyindex 6dd80c1629..0a14432aeb 100644--- a/openhands/runtime/plugins/vscode/__init__.py+++ b/openhands/runtime/plugins/vscode/__init__.py@@ -103,7 +103,8 @@ class VSCodePlugin(Plugin):settings_path = current_dir / 'settings.json'# Create the .vscode directory in the workspace if it doesn't exist- vscode_dir = Path('/workspace/.vscode')+ workspace_dir = Path(os.getenv('WORKSPACE_BASE', '/workspace'))+ vscode_dir = workspace_dir / '.vscode'vscode_dir.mkdir(parents=True, exist_ok=True)# Copy the settings.json file to the .vscode directory