fix autocomplere

pull/1/head
yann300 6 years ago
parent 26b8c2be87
commit 47dc6182b4
  1. 2
      src/app/ui/auto-complete-popup.js

@ -201,11 +201,11 @@ class AutoCompletePopup {
extendAutocompletion () { extendAutocompletion () {
// TODO: this is not using the appManager interface. Terminal should be put as module // TODO: this is not using the appManager interface. Terminal should be put as module
this.opts.appStore.event.on('activate', (id) => { this.opts.appStore.event.on('activate', (id) => {
const keyValue = {}
const profile = this.opts.appStore.getOne(id).profile const profile = this.opts.appStore.getOne(id).profile
if (!profile.methods) return if (!profile.methods) return
profile.methods.forEach((method) => { profile.methods.forEach((method) => {
const key = `remix.call({name: '${id}', key:'${method}', payload: []}).then((result) => { console.log(result) }).catch((error) => { console.log(error) })` const key = `remix.call({name: '${id}', key:'${method}', payload: []}).then((result) => { console.log(result) }).catch((error) => { console.log(error) })`
const keyValue = {}
keyValue[key] = `call ${id} - ${method}` keyValue[key] = `call ${id} - ${method}`
if (this.extraCommands.includes(keyValue)) return if (this.extraCommands.includes(keyValue)) return
this.extraCommands.push(keyValue) this.extraCommands.push(keyValue)

Loading…
Cancel
Save