fix renaming workspace

pull/5370/head
yann300 4 years ago
parent 8524458ab7
commit 3019642930
  1. 6
      apps/remix-ide/src/app/panels/file-panel.js

@ -218,10 +218,8 @@ module.exports = class Filepanel extends ViewPlugin {
renameWorkspace () {
modalDialog.prompt('Rename Workspace', 'Please choose a name for the workspace', this.currentWorkspace, async (value) => {
const workspacesPath = this._deps.fileProviders.workspace.workspacesPath
await this._deps.fileManager.rename('browser/' + workspacesPath + '/' + this.currentWorkspace, 'browser/workspaces/' + value)
setTimeout(async () => {
this.setWorkspace(value)
}, 2000)
await this._deps.fileManager.rename('browser/' + workspacesPath + '/' + this.currentWorkspace, 'browser/' + workspacesPath + '/' + value)
this.setWorkspace(value)
})
}

Loading…
Cancel
Save