Skip to content

Commit 9ee582b

Browse files
authored
Support windsurf setups for coder extension (#441)
1 parent ada4ab1 commit 9ee582b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
"categories": [
2525
"Other"
2626
],
27+
"extensionPack": [
28+
"ms-vscode-remote.remote-ssh"
29+
],
2730
"activationEvents": [
2831
"onResolveRemoteAuthority:ssh-remote",
2932
"onCommand:coder.connect",
3033
"onUri"
3134
],
32-
"extensionDependencies": [
33-
"ms-vscode-remote.remote-ssh"
34-
],
3535
"main": "./dist/extension.js",
3636
"contributes": {
3737
"configuration": {

src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
1919
// This is janky, but that's alright since it provides such minimal
2020
// functionality to the extension.
2121
//
22-
// Prefer the anysphere.open-remote-ssh extension if it exists. This makes
23-
// our extension compatible with Cursor. Otherwise fall back to the official
24-
// SSH extension.
22+
// Cursor and VSCode are covered by ms remote, and the only other is windsurf for now
23+
// Means that vscodium is not supported by this for now
2524
const remoteSSHExtension =
26-
vscode.extensions.getExtension("anysphere.open-remote-ssh") ||
25+
vscode.extensions.getExtension("codeium.windsurf-remote-openssh") ||
2726
vscode.extensions.getExtension("ms-vscode-remote.remote-ssh")
2827
if (!remoteSSHExtension) {
28+
vscode.window.showErrorMessage("Remote SSH extension not found, cannot activate Coder extension")
2929
throw new Error("Remote SSH extension not found")
3030
}
3131
// eslint-disable-next-line @typescript-eslint/no-explicit-any

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy