Skip to content

Commit

Permalink
Fix local-ssh not work in vscode insider (#102)
Browse files Browse the repository at this point in the history
* Fix local-ssh not work in vscode insider

* 💄

---------

Co-authored-by: Jean Pierre <[email protected]>
  • Loading branch information
mustard-mh and jeanp413 authored Feb 1, 2024
1 parent 860e1c8 commit 4ee2f66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/local-ssh/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ interface ClientOptions {
}

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

0 comments on commit 4ee2f66

Please sign in to comment.