Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"categories": [
"Other"
],
"extensionPack": [
"ms-vscode-remote.remote-ssh"
],
"activationEvents": [
"onResolveRemoteAuthority:ssh-remote",
"onCommand:coder.connect",
"onUri"
],
"extensionDependencies": [
"ms-vscode-remote.remote-ssh"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
Expand Down
8 changes: 4 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
// This is janky, but that's alright since it provides such minimal
// functionality to the extension.
//
// Prefer the anysphere.open-remote-ssh extension if it exists. This makes
// our extension compatible with Cursor. Otherwise fall back to the official
// SSH extension.
// Cursor and VSCode are covered by ms remote, and the only other is windsurf for now
// Means that vscodium is not supported by this for now
const remoteSSHExtension =
vscode.extensions.getExtension("anysphere.open-remote-ssh") ||
vscode.extensions.getExtension("codeium.windsurf-remote-openssh") ||
vscode.extensions.getExtension("ms-vscode-remote.remote-ssh")
if (!remoteSSHExtension) {
vscode.window.showErrorMessage("Remote SSH extension not found, cannot activate Coder extension")
throw new Error("Remote SSH extension not found")
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down