File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,12 @@ export class ConnectInNewWindowCommand implements Command {
107107 // Start workspace automatically
108108 await this . sessionService . getAPI ( ) . startWorkspace ( wsData ! . id ) ;
109109
110+ vscode . commands . executeCommand ( 'gitpod.workspaces.refresh' ) ;
111+
110112 if ( cancelToken . isCancellationRequested ) {
111113 return ;
112114 }
113115
114- vscode . commands . executeCommand ( 'gitpod.workspaces.refresh' ) ;
115-
116116 await raceCancellationError ( eventToPromise ( wsState . onWorkspaceRunning ) , cancelToken ) ;
117117 }
118118
@@ -199,12 +199,12 @@ export class ConnectInCurrentWindowCommand implements Command {
199199 // Start workspace automatically
200200 await this . sessionService . getAPI ( ) . startWorkspace ( wsData ! . id ) ;
201201
202+ vscode . commands . executeCommand ( 'gitpod.workspaces.refresh' ) ;
203+
202204 if ( cancelToken . isCancellationRequested ) {
203205 return ;
204206 }
205207
206- vscode . commands . executeCommand ( 'gitpod.workspaces.refresh' ) ;
207-
208208 await raceCancellationError ( eventToPromise ( wsState . onWorkspaceRunning ) , cancelToken ) ;
209209 }
210210
You can’t perform that action at this time.
0 commit comments