Merge pull request #1812 from ethereum/fix-editor

Await localhost disconnection before switching to workspace
pull/1797/head^2
David Disu 3 years ago committed by GitHub
commit 9ee99de711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -223,7 +223,7 @@ export const switchToWorkspace = async (name: string) => {
} else {
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)
plugin.setWorkspace({ name, isLocalhost: false })
dispatch(setMode('browser'))

Loading…
Cancel
Save