We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6bafef commit a5efbabCopy full SHA for a5efbab
src/remote.ts
@@ -43,10 +43,10 @@ export class Remote {
43
const sshAuthority = authorityParts[1].substring(Remote.Prefix.length)
44
45
// Authorities are in the format:
46
- // coder-vscode--<username>--<workspace>--<agent> Agent can be omitted then
47
- // will be prompted for instead.
+ // coder-vscode--<username>--<workspace>--<agent>
+ // The agent can be omitted; the user will be prompted for it instead.
48
const parts = sshAuthority.split("--")
49
- if (parts.length < 2 || parts.length > 3) {
+ if (parts.length !== 2 && parts.length !== 3) {
50
throw new Error(`Invalid Coder SSH authority. Must be: <username>--<workspace>--<agent?>`)
51
}
52
const workspaceName = `${parts[0]}/${parts[1]}`
0 commit comments