Repository navigation
[3.0] Block the SSH tunnel when extensions.allowed forbids Remote - SSH - #2299
Merged
Merged
Conversation
Port of #2290 to 3.x. Starting a tunnel needs the editor's Remote - SSH extension (ms-vscode-remote.remote-ssh, or anysphere.remote-ssh in Cursor). When the extensions.allowed policy blocks it, installing it fails and the tunnel can't open its window. Check the setting before installing Remote - SSH, signing in or picking compute, and fail with a UserFacingError whose "Open setting" action opens extensions.allowed. The check follows VS Code's precedence: an extension ID rule beats a publisher rule (including the "microsoft" special case in VS Code), which beats the "*" wildcard. Co-authored-by: Isaac <no-reply@databricks.com>
The tunnel now reads extensions.allowed through kernel.settings, which the test's hand-built kernel didn't have. Co-authored-by: Isaac <no-reply@databricks.com>
louis-johnston-db
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Port of #2290 to the 3.0 release branch
Starting a tunnel needs the host's Remote - SSH extension (ms-vscode-remote.remote-ssh, or anysphere.remote-ssh in Cursor). When the extensions.allowed policy blocks it, the connect fails late and confusingly. Check the setting up front and show a modal error with a shortcut to the setting instead.
The check follows VS Code's precedence: an extension ID rule beats a publisher rule (including the microsoft special case), which beats the * wildcard.
Tests
unit tests added