Skip to content

Commit 4704cd1

Browse files
committed
Only offer the forward port action for SSH remote sessions in the run browser warning
- 'forward port' button should not be shown in wsl, only remote-ssh
1 parent fd3d33d commit 4704cd1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/editor/src/views/prompt/backend/message-handlers/handle-run-browser.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ const launch_browser = (params: {
3939
export const handle_run_browser = async () => {
4040
if (vscode.env.remoteName) {
4141
const action = t('views.prompt.handlers.handle-run-browser.forward-port')
42+
const actions = vscode.env.remoteName === 'ssh-remote' ? [action] : []
4243
vscode.window
4344
.showWarningMessage(
4445
t('views.prompt.handlers.handle-run-browser.remote-not-supported'),
45-
action
46+
...actions
4647
)
4748
.then((selection) => {
4849
if (selection === action) {

0 commit comments

Comments
 (0)