|
|
@ -203,7 +203,7 @@ export const createWorkspace = async ( |
|
|
|
}, 5000) |
|
|
|
}, 5000) |
|
|
|
} else if (!isEmpty && !(isGitRepo && createCommit)) await loadWorkspacePreset(workspaceTemplateName, opts) |
|
|
|
} else if (!isEmpty && !(isGitRepo && createCommit)) await loadWorkspacePreset(workspaceTemplateName, opts) |
|
|
|
cb && cb(null, workspaceName) |
|
|
|
cb && cb(null, workspaceName) |
|
|
|
if (isGitRepo) { |
|
|
|
if (isGitRepo && false) { |
|
|
|
await checkGit() |
|
|
|
await checkGit() |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
@ -512,7 +512,7 @@ export const switchToWorkspace = async (name: string) => { |
|
|
|
await plugin.fileProviders.workspace.setWorkspace(name) |
|
|
|
await plugin.fileProviders.workspace.setWorkspace(name) |
|
|
|
await plugin.setWorkspace({ name, isLocalhost: false }) |
|
|
|
await plugin.setWorkspace({ name, isLocalhost: false }) |
|
|
|
const isGitRepo = await plugin.fileManager.isGitRepo() |
|
|
|
const isGitRepo = await plugin.fileManager.isGitRepo() |
|
|
|
if (isGitRepo) { |
|
|
|
if (isGitRepo && false) { |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
const isActive = await plugin.call('manager', 'isActive', 'dgit') |
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
|
if (!isActive) await plugin.call('manager', 'activatePlugin', 'dgit') |
|
|
|
} |
|
|
|
} |
|
|
|