Skip to content

Commit b9991d6

Browse files
Remove Dependencie & Support anysphere.open-remote-ssh
1 parent 6407437 commit b9991d6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
"onCommand:coder.connect",
3030
"onUri"
3131
],
32-
"extensionDependencies": [
33-
"ms-vscode-remote.remote-ssh"
34-
],
3532
"main": "./dist/extension.js",
3633
"contributes": {
3734
"configuration": {

src/extension.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
2020
// This is janky, but that's alright since it provides such minimal
2121
// functionality to the extension.
2222
const remoteSSHExtension = vscode.extensions.getExtension("ms-vscode-remote.remote-ssh")
23-
if (!remoteSSHExtension) {
23+
const openRemoteSSHExtension = vscode.extensions.getExtension("anysphere.open-remote-ssh")
24+
if (!remoteSSHExtension && !openRemoteSSHExtension) {
2425
throw new Error("Remote SSH extension not found")
2526
}
27+
const usingSSHExtention = remoteSSHExtension ? remoteSSHExtension : openRemoteSSHExtension
2628
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2729
const vscodeProposed: typeof vscode = (module as any)._load(
2830
"vscode",
2931
{
30-
filename: remoteSSHExtension?.extensionPath,
32+
filename: usingSSHExtention?.extensionPath,
3133
},
3234
false,
3335
)

0 commit comments

Comments
 (0)