Show completions only command

jh-changes
Shin'ya Ueoka 6 years ago
parent 5ecada5b23
commit 7acbdbfef2
  1. 5
      src/console/components/console.js

@ -97,9 +97,12 @@ export default class ConsoleComponent {
}
onInput(e) {
let state = this.store.getState();
let text = e.target.value;
this.store.dispatch(consoleActions.setConsoleText(text));
this.store.dispatch(consoleActions.getCompletions(text));
if (state.mode === 'command') {
this.store.dispatch(consoleActions.getCompletions(text));
}
}
onInputShown(state) {