diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-04-11 18:00:51 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2021-04-11 22:34:14 +0900 |
commit | 618fb497c443662531eb3befe7696a04efe9651d (patch) | |
tree | 530af78bf75f03e7ffd71e4ca5ad1cf864584be0 /src/console/actions/console.ts | |
parent | 21f863d76fbb5ed752ad529f8fbe33e75460027e (diff) |
Replace completion state with Custom Hooks
Diffstat (limited to 'src/console/actions/console.ts')
-rw-r--r-- | src/console/actions/console.ts | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/console/actions/console.ts b/src/console/actions/console.ts index bce2c67..2338067 100644 --- a/src/console/actions/console.ts +++ b/src/console/actions/console.ts @@ -4,7 +4,6 @@ export const CONSOLE_SHOW_COMMAND = "console.show.command"; export const CONSOLE_SHOW_ERROR = "console.show.error"; export const CONSOLE_SHOW_INFO = "console.show.info"; export const CONSOLE_HIDE_COMMAND = "console.hide.command"; -export const CONSOLE_SET_CONSOLE_TEXT = "console.set.command"; export const CONSOLE_SHOW_FIND = "console.show.find"; export const CONSOLE_HIDE = "console.hide"; @@ -35,19 +34,13 @@ export interface HideCommandAction { type: typeof CONSOLE_HIDE_COMMAND; } -export interface SetConsoleTextAction { - type: typeof CONSOLE_SET_CONSOLE_TEXT; - consoleText: string; -} - export type ConsoleAction = | HideAction | ShowCommand | ShowFindAction | ShowErrorAction | ShowInfoAction - | HideCommandAction - | SetConsoleTextAction; + | HideCommandAction; const hide = (): ConsoleAction => { return { @@ -113,13 +106,6 @@ const enterFind = (text?: string): HideCommandAction => { return hideCommand(); }; -const setConsoleText = (consoleText: string): SetConsoleTextAction => { - return { - type: CONSOLE_SET_CONSOLE_TEXT, - consoleText, - }; -}; - export { hide, showCommand, @@ -127,7 +113,6 @@ export { showError, showInfo, hideCommand, - setConsoleText, enterCommand, enterFind, }; |