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)