File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
components/supervisor/pkg/supervisor Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,13 @@ func Run(options ...RunOption) {
190
190
}
191
191
192
192
ctx , cancel := context .WithCancel (context .Background ())
193
+
194
+ internalPorts := []uint32 {uint32 (cfg .IDEPort ), uint32 (cfg .APIEndpointPort ), uint32 (cfg .SSHPort )}
195
+ desktopIDEPort := uint32 (24000 )
196
+ if cfg .DesktopIDE != nil {
197
+ internalPorts = append (internalPorts , desktopIDEPort )
198
+ }
199
+
193
200
var (
194
201
shutdown = make (chan ShutdownReason , 1 )
195
202
ideReady = & ideReadyState {cond : sync .NewCond (& sync.Mutex {})}
@@ -205,9 +212,7 @@ func Run(options ...RunOption) {
205
212
ports .NewConfigService (cfg .WorkspaceID , gitpodConfigService , gitpodService ),
206
213
tunneledPortsService ,
207
214
slirp ,
208
- uint32 (cfg .IDEPort ),
209
- uint32 (cfg .APIEndpointPort ),
210
- uint32 (cfg .SSHPort ),
215
+ internalPorts ... ,
211
216
)
212
217
termMux = terminal .NewMux ()
213
218
termMuxSrv = terminal .NewMuxTerminalService (termMux )
You can’t perform that action at this time.
0 commit comments