Skip to content

feat: apply coder config-ssh --ssh-option to VS Code connections#833

Merged
EhabY merged 2 commits intomainfrom
feat/apply-config-ssh-options-to-vscode
Mar 12, 2026
Merged

feat: apply coder config-ssh --ssh-option to VS Code connections#833
EhabY merged 2 commits intomainfrom
feat/apply-config-ssh-options-to-vscode

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 10, 2026

  • SSH options set via coder config-ssh --ssh-option (e.g. ForwardX11=yes) were not applied to VS Code connections because the extension never read the CLI's config block. This parses # :ssh-option= comments from the CLI's START-CODER/END-CODER block and merges them into the SSH config with lowest priority (CLI options < deployment API < user VS Code settings).
  • Adds parseCoderSshOptions() to extract ssh-option values from the Coder CLI block in ~/.ssh/config
  • Renames computeSSHProperties to computeSshProperties for naming consistency
  • Adds managed-section header comments to the generated SSH config block

Fixes #832

@EhabY EhabY self-assigned this Mar 10, 2026
@EhabY EhabY force-pushed the feat/apply-config-ssh-options-to-vscode branch from ea02055 to ce1287e Compare March 10, 2026 15:41
@mtojek mtojek requested a review from mafredri March 11, 2026 10:12
SSH options set via `coder config-ssh --ssh-option` (e.g. ForwardX11=yes)
were not applied to VS Code connections because the extension never read
the CLI's config block. Parse `# :ssh-option=` comments from the CLI's
START-CODER/END-CODER block and merge them into the SSH config with
lowest priority (CLI options < deployment API < user VS Code settings).

Fixes #832
@EhabY EhabY force-pushed the feat/apply-config-ssh-options-to-vscode branch from ce1287e to cd70732 Compare March 11, 2026 12:19
@EhabY EhabY requested a review from mafredri March 11, 2026 12:21
@EhabY EhabY force-pushed the feat/apply-config-ssh-options-to-vscode branch from cd70732 to 3873fd5 Compare March 11, 2026 12:55
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

:shipit:

@EhabY EhabY merged commit 6988336 into main Mar 12, 2026
6 checks passed
@EhabY EhabY deleted the feat/apply-config-ssh-options-to-vscode branch March 12, 2026 13:48
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.

bug: VSCODE take not the ssh-config settings - like X11

3 participants