We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
vscodessh
1 parent56bf9cf commit693e5d9Copy full SHA for 693e5d9
cli/vscodessh.go
@@ -27,7 +27,7 @@ import (
27
// This command needs to remain stable for compatibility with
28
// various VS Code versions, so it's kept separate from our
29
// standard SSH command.
30
-func (*RootCmd)vscodeSSH()*clibase.Cmd {
+func (r*RootCmd)vscodeSSH()*clibase.Cmd {
31
var (
32
sessionTokenFilestring
33
urlFilestring
@@ -82,6 +82,12 @@ func (*RootCmd) vscodeSSH() *clibase.Cmd {
82
client:=codersdk.New(serverURL)
83
client.SetSessionToken(string(sessionToken))
84
85
+// This adds custom headers to the request!
86
+err=r.setClient(client,serverURL)
87
+iferr!=nil {
88
+returnxerrors.Errorf("set client: %w",err)
89
+}
90
+
91
parts:=strings.Split(inv.Args[0],"--")
92
iflen(parts)<3 {
93
returnxerrors.Errorf("invalid argument format. must be: coder-vscode--<owner>-<name>-<agent?>")