Skip to content

Commit f69939a

Browse files
committed
💄
1 parent 486bd20 commit f69939a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/commands/workspaces.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)