Commit 8b445237 authored by ioedeveloper's avatar ioedeveloper

Rename function from getCurrentWorkspace to currentWorkspace in fileManager

parent a9bc4c1f
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment