The upgrade to Databricks VS Code extension v2.4.0 changed the sync destination system from the previous workspace directory setup, removing the "Configure Sync Destination" button and setting the default to a more rigid remote folder structure (commonly with a /files subdirectory). This change impacts workflows that depend on the older directory path.โโ
Restoring the Original Sync Destination
-
The extension now expects sync destinations to follow the new model, and reverting directly to the old "path" format is not natively supported in v2.4.0.โ
-
However, you can manually adjust the workspace path in your project's .databricks/project.json file. Set "workspacePath" to your desired directory, such as "/Workspace/path" instead of "/Workspace/path/files". Make sure this matches the target you want to sync to in Databricks.
-
After editing this config, restart VS Code and refresh the Databricks extension. Note that a mismatch between workspace and local names produces warnings, which can usually be ignored unless strict name matching is required for your workflow.โ
Manually Reconfiguring Sync Destination
-
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
-
Type and select โDatabricks: Create New Sync Destinationโ or similar options (label may vary slightly).
-
Choose or create the destination path. To reuse a previous path, select from existing directories shown in the Command Palette.โ
-
If you want to work around the new default, manually edit the .databricks/project.json file as explained above.โ
-
Start synchronization by clicking the sync icon in the configuration pane.
Workarounds and Tips
-
Changes are now one-way: files synced to Databricks do not sync back to your local repo. Only do edits locally and sync them up.โ
-
Custom workspace configuration beyond the UI may require manual JSON edits as described, and persistent issues with path configuration can sometimes be resolved by uninstalling and reinstalling the extension.โ
-
For advanced configuration or troubleshooting, check logs using โDatabricks: Open full logsโ from the Command Palette, and verify all paths in your .databricks/project.json are correct.โ
Summary Table
| Workflow Issue |
Solution |
| "Configure Sync Destination" missing |
Use Command Palette and manually edit .databricks/project.jsonโ |
| New remote folder sync format |
Change "workspacePath" in your config file back to original valueโ |
| Default sync destination subfolder |
Remove or rename /files in path config and re-syncโ |
For workflow stability, always back up your .databricks/project.json before manual changes and monitor for warnings in VS Code after edits.โ