Skip to content

[SSH] Support IDE path override for SSH - #7322

Merged
rclarey merged 2 commits into
mainfrom
ssh-ide-command-env
Nov 4, 2026
Merged

rclarey merged 2 commits into
mainfrom
ssh-ide-command-env

Conversation

@rclarey

@rclarey rclarey commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Support DATABRICKS_SSH_IDE_COMMAND for overriding the IDE executable used for databricks ssh connect --ide X

Why

Sometimes VSCode / Cursor are installed without putting their respective executables on PATH which causes an error when trying to open an SSH connection. Since the VSCode extension can read the installation directory we can instead derive the executable path and pass it to the CLI to prevent the PATH lookup and resolve the previous errors

Tests

  • added unit tests
  • manually verified locally

@rclarey rclarey changed the title [SS] Support IDE path override for SSH [SSH] Support IDE path override for SSH Nov 3, 2026
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: a286464

Run: 41662913917

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 271 15 8:41
✅​ aws-windows-latest-4core-16gb 273 13 5:36
✅​ azure linux-2core-8gb 270 15 9:22
✅​ azure-windows-latest-4core-16gb 272 13 6:29
✅​ gcp linux-2core-8gb 271 15 9:03
✅​ gcp-windows-latest-4core-16gb 273 13 6:12
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:25 gcp linux-2core-8gb TestAccept
4:18 azure linux-2core-8gb TestAccept
4:09 aws linux-2core-8gb TestAccept
3:01 azure-windows-latest-4core-16gb TestAccept
2:56 aws-windows-latest-4core-16gb TestAccept
2:56 gcp-windows-latest-4core-16gb TestAccept

@rclarey
rclarey marked this pull request as ready for review November 4, 2026 08:14
@rclarey
rclarey requested review from a team as code owners November 4, 2026 08:14

@louis-johnston-db louis-johnston-db left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, with just a reminder to add "IDE_COMMAND_OVERRIDE_INVALID" to SshTunnelErrorCategory.Type in the databricks_cli proto.

@rclarey

rclarey commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Already done 👍

@rclarey
rclarey enabled auto-merge November 4, 2026 08:46
return consentErrorf(ErrSSHExtensionInstallUnavailable,
"%s Install it with: %s --install-extension %s, or pass --auto-approve",
msg, ide.Command, ide.SSHExtensionID)
msg, command, ide.SSHExtensionID)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command may contain spaces now, should we quote it?
e.g. /Applications/Visual Studio Code.app/...

@rclarey
rclarey added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 8feaaa9 Nov 4, 2026
29 checks passed
@rclarey
rclarey deleted the ssh-ide-command-env branch November 4, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants