Removed activating dgit on initialization

pull/2879/head
David Disu 2 years ago
parent 3554cad19b
commit 976cf090df
  1. 14
      libs/remix-ui/workspace/src/lib/actions/index.ts

@ -38,11 +38,6 @@ const basicWorkspaceInit = async (workspaces: { name: string; isGitRepo: boolean
workspaceProvider.setWorkspace(workspaceName)
plugin.setWorkspace({ name: workspaceName, isLocalhost: false })
if (workspace.isGitRepo) {
const isActive = await plugin.call('manager', 'isActive', 'dgit')
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit')
}
dispatch(setCurrentWorkspace(workspace))
}
}
@ -128,14 +123,7 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React.
const name = localStorage.getItem("currentWorkspace")
workspaceProvider.setWorkspace(name)
plugin.setWorkspace({ name: name, isLocalhost: false })
const isGitRepo = await plugin.fileManager.isGitRepo()
if (isGitRepo) {
const isActive = await plugin.call('manager', 'isActive', 'dgit')
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit')
}
dispatch(setCurrentWorkspace({ name: name, isGitRepo }))
dispatch(setCurrentWorkspace({ name: name, isGitRepo: false }))
}
} else {
await basicWorkspaceInit(workspaces, workspaceProvider)

Loading…
Cancel
Save