Commit 1db046b1 authored by ioedeveloper's avatar ioedeveloper

Render editor component after activation

parent b5e81fcb
......@@ -75,8 +75,6 @@ class Editor extends Plugin {
}
}
this.el.gotoLine = (line) => this.gotoLine(line, 0)
this.renderComponent()
return this.el
}
......@@ -118,6 +116,7 @@ class Editor extends Plugin {
this.currentTheme = translateTheme(theme)
this.renderComponent()
})
this.renderComponent()
}
onDeactivation () {
......
......@@ -30,7 +30,7 @@ const profile = {
name: 'filePanel',
displayName: 'File explorers',
methods: ['createNewFile', 'uploadFile', 'getCurrentWorkspace', 'getWorkspaces', 'createWorkspace', 'setWorkspace', 'registerContextMenuItem', 'renameWorkspace'],
events: ['setWorkspace', 'renameWorkspace', 'deleteWorkspace', 'createWorkspace'],
events: ['setWorkspace', 'workspaceRenamed', 'deleteWorkspace', 'createWorkspace'],
icon: 'assets/img/fileManager.webp',
description: ' - ',
kind: 'fileexplorer',
......@@ -58,7 +58,7 @@ module.exports = class Filepanel extends ViewPlugin {
}
onActivation () {
this.on('editor', 'editorMounted', () => this.renderComponent())
this.renderComponent()
}
render () {
......
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