Merge pull request #2959 from ethereum/activate-dgit

Activate dgit after workspace git initialization
pull/5370/head
bunsenstraat 2 years ago committed by GitHub
commit aec2da1d43
  1. 7
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -53,7 +53,12 @@ export const createWorkspace = async (workspaceName: string, workspaceTemplateNa
await plugin.setWorkspaces(await getWorkspaces())
await plugin.workspaceCreated(workspaceName)
if (isGitRepo) await plugin.call('dGitProvider', 'init')
if (isGitRepo) {
await plugin.call('dGitProvider', 'init')
const isActive = await plugin.call('manager', 'isActive', 'dgit')
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit')
}
if (!isEmpty) await loadWorkspacePreset(workspaceTemplateName, opts)
cb && cb(null, workspaceName)

Loading…
Cancel
Save