aboutsummaryrefslogtreecommitdiff
path: root/src/console/reducers
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-03-26 22:17:00 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-03-26 22:17:00 +0900
commitb2a37b8fc3e273dd71e1e3558c58be8002aa3789 (patch)
tree9e6f0d354beca92e975dc97462b3860833112f81 /src/console/reducers
parent6829e24c62c0291336502b3390905b57b81abd21 (diff)
Query completions on open command by a completion source
Diffstat (limited to 'src/console/reducers')
-rw-r--r--src/console/reducers/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/console/reducers/index.ts b/src/console/reducers/index.ts
index 677a982..f1508bb 100644
--- a/src/console/reducers/index.ts
+++ b/src/console/reducers/index.ts
@@ -1,10 +1,12 @@
import * as actions from '../actions';
import Completions from "../Completions";
+import CompletionType from "../../shared/CompletionType";
export interface State {
mode: string;
messageText: string;
consoleText: string;
+ completionTypes: CompletionType[];
completionSource: string;
completions: Completions;
select: number;
@@ -15,6 +17,7 @@ const defaultState = {
mode: '',
messageText: '',
consoleText: '',
+ completionTypes: [],
completionSource: '',
completions: [],
select: -1,
@@ -69,6 +72,7 @@ export default function reducer(
return { ...state,
mode: 'command',
consoleText: action.text,
+ completionTypes: action.completionTypes,
completions: []};
case actions.CONSOLE_SHOW_FIND:
return { ...state,