File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
components/ide/code/codehelper Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
16
16
"regexp"
17
17
"strings"
18
18
"sync"
19
+ "syscall"
19
20
"time"
20
21
21
22
"google.golang.org/grpc"
@@ -103,13 +104,11 @@ func main() {
103
104
log .WithField ("cost" , time .Now ().Local ().Sub (startTime ).Milliseconds ()).Info ("extensions with path installed" )
104
105
}
105
106
107
+ // install extensions and run code server with exec
106
108
args = append (args , os .Args [1 :]... )
107
109
args = append (args , "--do-not-sync" )
108
110
log .WithField ("cost" , time .Now ().Local ().Sub (startTime ).Milliseconds ()).Info ("starting server" )
109
- cmd := exec .Command (Code , args ... )
110
- cmd .Stderr = os .Stderr
111
- cmd .Stdout = os .Stdout
112
- if err := cmd .Run (); err != nil {
111
+ if err := syscall .Exec (Code , append ([]string {"gitpod-code" }, args ... ), os .Environ ()); err != nil {
113
112
log .WithError (err ).Error ("install ext and start code server failed" )
114
113
}
115
114
}
You can’t perform that action at this time.
0 commit comments