Get file provider from file

pull/5370/head
ioedeveloper 4 years ago
parent f8ae877d9a
commit 3799157da4
  1. 5
      apps/remix-ide/src/app/files/fileManager.js

@ -612,12 +612,11 @@ class FileManager extends Plugin {
} }
currentWorkspace () { currentWorkspace () {
if (self._deps) { const file = this.currentFile() || ''
const provider = self._deps.filesProviders.workspace const provider = this.fileProviderOf(file)
return provider.workspace return provider.workspace
} }
}
} }
module.exports = FileManager module.exports = FileManager

Loading…
Cancel
Save