pull/1860/head
bunsenstraat 3 years ago committed by yann300
parent 211287de2f
commit eb6ace7344
  1. 2
      apps/remix-ide/src/app/editor/contextView.js
  2. 2
      apps/remix-ide/src/app/panels/terminal.js
  3. 4
      apps/remix-ide/src/lib/cmdInterpreterAPI.js

@ -15,7 +15,7 @@ const css = require('./styles/contextView-styles')
class ContextView { class ContextView {
constructor (opts, localRegistry) { constructor (opts, localRegistry) {
this._components = {} this._components = {}
this._components.registry = localRegistry || Registry.getInstance() this._components.registry = Registry.getInstance()
this.contextualListener = opts.contextualListener this.contextualListener = opts.contextualListener
this.editor = opts.editor this.editor = opts.editor
this._deps = { this._deps = {

@ -68,7 +68,7 @@ class Terminal extends Plugin {
} }
this._view = { el: null, bar: null, input: null, term: null, journal: null, cli: null } this._view = { el: null, bar: null, input: null, term: null, journal: null, cli: null }
this._components = {} this._components = {}
this._components.cmdInterpreter = new CommandInterpreterAPI(this, null, this.blockchain) this._components.cmdInterpreter = new CommandInterpreterAPI(this, this.blockchain)
this._components.autoCompletePopup = new AutoCompletePopup(this._opts) this._components.autoCompletePopup = new AutoCompletePopup(this._opts)
this._commands = {} this._commands = {}
this.commands = {} this.commands = {}

@ -9,12 +9,12 @@ var toolTip = require('../app/ui/tooltip')
var GistHandler = require('./gist-handler') var GistHandler = require('./gist-handler')
class CmdInterpreterAPI { class CmdInterpreterAPI {
constructor (terminal, localRegistry, blockchain) { constructor (terminal, blockchain) {
const self = this const self = this
self.event = new EventManager() self.event = new EventManager()
self.blockchain = blockchain self.blockchain = blockchain
self._components = {} self._components = {}
self._components.registry = localRegistry || Registry.getInstance() self._components.registry = Registry.getInstance()
self._components.terminal = terminal self._components.terminal = terminal
self._components.fileImport = new CompilerImports() self._components.fileImport = new CompilerImports()
self._components.gistHandler = new GistHandler() self._components.gistHandler = new GistHandler()

Loading…
Cancel
Save