inject dependency for filePanel

pull/4930/head
Joseph Izang 5 months ago committed by Aniket
parent 80f0c9d40c
commit 1a18fe08b2
  1. 2
      apps/remix-ide/src/app.js
  2. 3
      apps/remix-ide/src/app/panels/file-panel.js

@ -386,7 +386,7 @@ class AppComponent {
this.pinnedPanel = new PinnedPanel()
const pluginManagerComponent = new PluginManagerComponent(appManager, this.engine)
const filePanel = new FilePanel(appManager)
const filePanel = new FilePanel(appManager, contentImport)
this.statusBar = new StatusBar(filePanel, this.menuicons)
const landingPage = new LandingPage(appManager, this.menuicons, fileManager, filePanel, contentImport)
this.settings = new SettingsTab(Registry.getInstance().get('config').api, editor, appManager)

@ -59,7 +59,7 @@ const profile = {
maintainedBy: 'Remix'
}
module.exports = class Filepanel extends ViewPlugin {
constructor(appManager) {
constructor(appManager, contentImport) {
super(profile)
this.registry = Registry.getInstance()
this.fileProviders = this.registry.get('fileproviders').api
@ -73,6 +73,7 @@ module.exports = class Filepanel extends ViewPlugin {
this.foundryHandle = new FoundryHandle()
this.truffleHandle = new TruffleHandle()
this.slitherHandle = new SlitherHandle()
this.contentImport = contentImport
this.workspaces = []
this.appManager = appManager
this.currentWorkspaceMetadata = null

Loading…
Cancel
Save