remove setTimeout

pull/866/head
yann300 4 years ago
parent a3b490b0ca
commit d34a59436e
  1. 2
      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 const workspacesPath = this._deps.fileProviders.workspace.workspacesPath
this._deps.fileProviders.browser.createDir(workspacesPath + '/' + value, async () => { this._deps.fileProviders.browser.createDir(workspacesPath + '/' + value, async () => {
this.setWorkspace(value) this.setWorkspace(value)
setTimeout(async () => {
for (const file in examples) { for (const file in examples) {
await this._deps.fileManager.writeFile(`${examples[file].name}`, examples[file].content) await this._deps.fileManager.writeFile(`${examples[file].name}`, examples[file].content)
} }
}, 2000)
}) })
}) })
} }

Loading…
Cancel
Save