@ -79,6 +79,11 @@ class FileManager {
return null
}
currentFile () {
var self = this
return self._deps.config.get('currentFile')
currentPath () {
var currentFile = self._deps.config.get('currentFile')
@ -67,7 +67,7 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
},
editor: {
getCurrentFile: (mod, cb) => {
var path = fileManager.currentPath()
var path = fileManager.currentFile()
if (!path) {
cb('no file selected')
} else {