Await localhost disconnection before switching to workspace

pull/1812/head
David Disu 3 years ago
parent 4eaf894c40
commit 837b1e8c2f
  1. 2
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -223,7 +223,7 @@ export const switchToWorkspace = async (name: string) => {
} else { } else {
const isActive = await plugin.call('manager', 'isActive', 'remixd') const isActive = await plugin.call('manager', 'isActive', 'remixd')
if (isActive) plugin.call('manager', 'deactivatePlugin', 'remixd') if (isActive) await plugin.call('manager', 'deactivatePlugin', 'remixd')
await plugin.fileProviders.workspace.setWorkspace(name) await plugin.fileProviders.workspace.setWorkspace(name)
plugin.setWorkspace({ name, isLocalhost: false }) plugin.setWorkspace({ name, isLocalhost: false })
dispatch(setMode('browser')) dispatch(setMode('browser'))

Loading…
Cancel
Save