still create workspace

pull/1021/head
yann300 4 years ago
parent 4e242bc614
commit f79262848d
  1. 4
      apps/remix-ide/src/migrateFileSystem.js

@ -27,10 +27,10 @@ export async function migrateToWorkspace (fileManager, filePanel) {
const files = await browserProvider.copyFolderToJson('/') const files = await browserProvider.copyFolderToJson('/')
console.log(files) console.log(files)
const workspaceName = 'workspace_migrated_' + Date.now() const workspaceName = 'workspace_migrated_' + Date.now()
await filePanel.processCreateWorkspace(workspaceName)
filePanel.getWorkspaces() // refresh list
if (Object.keys(files).length > 0) { if (Object.keys(files).length > 0) {
const workspacePath = joinPath('browser', workspaceProvider.workspacesPath, workspaceName) const workspacePath = joinPath('browser', workspaceProvider.workspacesPath, workspaceName)
await filePanel.processCreateWorkspace(workspaceName)
filePanel.getWorkspaces() // refresh list
await populateWorkspace(workspacePath, files, browserProvider) await populateWorkspace(workspacePath, files, browserProvider)
} }
return workspaceName return workspaceName

Loading…
Cancel
Save