Rename function from getCurrentWorkspace to currentWorkspace in fileManager

pull/974/head
ioedeveloper 4 years ago
parent a9bc4c1f97
commit 8b4452373f
  1. 2
      apps/remix-ide/src/app/files/fileManager.js
  2. 8
      apps/remix-ide/src/app/panels/tab-proxy.js

@ -611,7 +611,7 @@ class FileManager extends Plugin {
})
}
getCurrentWorkspace () {
currentWorkspace () {
const file = this.currentFile() || ''
const provider = this.fileProviderOf(file)

@ -38,19 +38,19 @@ export class TabProxy extends Plugin {
})
fileManager.events.on('fileRemoved', (name) => {
const workspace = this.fileManager.getCurrentWorkspace()
const workspace = this.fileManager.currentWorkspace()
workspace ? this.removeTab(workspace + '/' + name) : this.removeTab(this.fileManager.mode + '/' + name)
})
fileManager.events.on('fileClosed', (name) => {
const workspace = this.fileManager.getCurrentWorkspace()
const workspace = this.fileManager.currentWorkspace()
workspace ? this.removeTab(workspace + '/' + name) : this.removeTab(this.fileManager.mode + '/' + name)
})
fileManager.events.on('currentFileChanged', (file) => {
const workspace = this.fileManager.getCurrentWorkspace()
const workspace = this.fileManager.currentWorkspace()
if (workspace) {
const workspacePath = workspace + '/' + file
@ -86,7 +86,7 @@ export class TabProxy extends Plugin {
})
fileManager.events.on('fileRenamed', (oldName, newName, isFolder) => {
const workspace = this.fileManager.getCurrentWorkspace()
const workspace = this.fileManager.currentWorkspace()
if (workspace) {
if (isFolder) {

Loading…
Cancel
Save