diff --git a/package.json b/package.json index 8d9ea1e43d..41d7053da9 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,8 @@ "yo-yoify": "^3.7.3" }, "dependencies": { - "remix-plugin": "0.0.2-alpha.6", "http-server": "^0.11.1", + "remix-plugin": "0.0.2-alpha.8", "remixd": "0.1.8-alpha.6" }, "repository": { diff --git a/src/app/files/fileManager.js b/src/app/files/fileManager.js index 19d64c8608..8d725319b4 100644 --- a/src/app/files/fileManager.js +++ b/src/app/files/fileManager.js @@ -22,7 +22,7 @@ const profile = { // File System profile // - events: ['currentFileChanged'] -// - methods: ['getFolder', 'getCurrentFile', 'getFile', 'setFile'] +// - methods: ['getFolder', 'getCurrentFile', 'getFile', 'setFile', 'switchFile'] class FileManager extends FileSystemApi { constructor (localRegistry) { @@ -114,10 +114,7 @@ class FileManager extends FileSystemApi { } async getCurrentFile () { - const path = this.currentFile() - if (!path) throw new Error('no file selected') - console.log('Get current File', path) - return path + return this.currentFile() } getFile (path) {