Commit 1db046b1 authored by ioedeveloper's avatar ioedeveloper

Render editor component after activation

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