remove setTimeout

pull/866/head
yann300 4 years ago
parent a3b490b0ca
commit d34a59436e
  1. 8
      apps/remix-ide/src/app/panels/file-panel.js

@ -240,11 +240,9 @@ module.exports = class Filepanel extends ViewPlugin {
const workspacesPath = this._deps.fileProviders.workspace.workspacesPath
this._deps.fileProviders.browser.createDir(workspacesPath + '/' + value, async () => {
this.setWorkspace(value)
setTimeout(async () => {
for (const file in examples) {
await this._deps.fileManager.writeFile(`${examples[file].name}`, examples[file].content)
}
}, 2000)
for (const file in examples) {
await this._deps.fileManager.writeFile(`${examples[file].name}`, examples[file].content)
}
})
})
}

Loading…
Cancel
Save