Skip to content

Commit 4ee2f66

Browse files
mustard-mhjeanp413
andauthored
Fix local-ssh not work in vscode insider (#102)
* Fix local-ssh not work in vscode insider * 💄 --------- Co-authored-by: Jean Pierre <[email protected]>
1 parent 860e1c8 commit 4ee2f66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/local-ssh/proxy.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ interface ClientOptions {
2020
}
2121

2222
function getClientOptions(): ClientOptions {
23-
const args = process.argv.slice(2);
23+
// Since 1.87.0 new electron version does not use this falga anymore, for now filter it
24+
// we we should delete the logic and update minimun vscode version of extension
25+
const args = process.argv.slice(2).filter(arg => arg !== '--ms-enable-electron-run-as-node');
2426
// %h is in the form of <ws_id>.vss.<gitpod_host>'
2527
// add `https://` prefix since our gitpodHost is actually a url not host
2628
const host = args[0];

0 commit comments

Comments
 (0)