From e67e5548399b5ba31cd69b5bcfbd75f1dc49aa64 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 6 Jun 2024 13:44:59 +0500 Subject: [PATCH] Fix concurrency workspace creation (#5742) Signed-off-by: Denis Bykhov --- plugins/workbench-resources/src/connect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/workbench-resources/src/connect.ts b/plugins/workbench-resources/src/connect.ts index 09ac8d0336..192de11431 100644 --- a/plugins/workbench-resources/src/connect.ts +++ b/plugins/workbench-resources/src/connect.ts @@ -93,6 +93,7 @@ export async function connect (title: string): Promise { let loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1]) if (loginInfo?.creating === true) { while (true) { + if (ws !== getCurrentLocation().path[1]) return workspaceCreating.set(loginInfo?.createProgress ?? 0) loginInfo = await ctx.with('select-workspace', {}, async () => (await fetchWorkspace(ws))[1]) workspaceCreating.set(loginInfo?.createProgress)