|
|
@ -254,8 +254,7 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe |
|
|
|
if (!templateList.includes(template)) break |
|
|
|
if (!templateList.includes(template)) break |
|
|
|
_paq.push(['trackEvent', 'workspace', 'template', template]) |
|
|
|
_paq.push(['trackEvent', 'workspace', 'template', template]) |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
const files = await templateWithContent[template](opts) |
|
|
|
const files = await templateWithContent[template](opts)
|
|
|
|
console.log('files for template ', files) |
|
|
|
|
|
|
|
for (const file in files) { |
|
|
|
for (const file in files) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await workspaceProvider.set(file, files[file]) |
|
|
|
await workspaceProvider.set(file, files[file]) |
|
|
@ -608,7 +607,6 @@ export const getGitRepoCurrentBranch = async (workspaceName: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export const showAllBranches = async () => { |
|
|
|
export const showAllBranches = async () => { |
|
|
|
console.log('showAllBranches') |
|
|
|
|
|
|
|
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') |
|
|
|
plugin.call('menuicons', 'select', 'dgit') |
|
|
|
plugin.call('menuicons', 'select', 'dgit') |
|
|
|