File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
// This command needs to remain stable for compatibility with
28
28
// various VS Code versions, so it's kept separate from our
29
29
// standard SSH command.
30
- func (* RootCmd ) vscodeSSH () * clibase.Cmd {
30
+ func (r * RootCmd ) vscodeSSH () * clibase.Cmd {
31
31
var (
32
32
sessionTokenFile string
33
33
urlFile string
@@ -82,6 +82,12 @@ func (*RootCmd) vscodeSSH() *clibase.Cmd {
82
82
client := codersdk .New (serverURL )
83
83
client .SetSessionToken (string (sessionToken ))
84
84
85
+ // This adds custom headers to the request!
86
+ err = r .setClient (client , serverURL )
87
+ if err != nil {
88
+ return xerrors .Errorf ("set client: %w" , err )
89
+ }
90
+
85
91
parts := strings .Split (inv .Args [0 ], "--" )
86
92
if len (parts ) < 3 {
87
93
return xerrors .Errorf ("invalid argument format. must be: coder-vscode--<owner>-<name>-<agent?>" )
You can’t perform that action at this time.
0 commit comments