diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index 1c4a3e61bf..a3828d68b3 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -470,7 +470,7 @@ class FileManager extends Plugin { } currentFile () { - return this._deps.config.get('currentFile') + return this.editor.current() } async closeAllFiles () {