diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-07-02 20:15:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 20:15:49 -0700 |
commit | 9831ac76fbced2f18ec15642eb31d3854af56e67 (patch) | |
tree | c2682170eb8f8a81fd494fce7bb8a435dcfa9829 /extension/react-app/src/hooks | |
parent | c41314b095648e6b3bcecc84a20354574db8379d (diff) | |
parent | 38d0c1ad7955b43c1765ac8faea723028a90201e (diff) | |
download | sncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.tar.gz sncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.tar.bz2 sncontinue-9831ac76fbced2f18ec15642eb31d3854af56e67.zip |
Merge pull request #170 from continuedev/explicit-context
Explicit context
Diffstat (limited to 'extension/react-app/src/hooks')
-rw-r--r-- | extension/react-app/src/hooks/ContinueGUIClientProtocol.ts | 2 | ||||
-rw-r--r-- | extension/react-app/src/hooks/useContinueGUIProtocol.ts | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts index 3d8e0a38..228e9a53 100644 --- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts +++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts @@ -20,6 +20,8 @@ abstract class AbstractContinueGUIClientProtocol { abstract retryAtIndex(index: number): void; abstract deleteAtIndex(index: number): void; + + abstract deleteContextItemAtIndex(index: number): void; } export default AbstractContinueGUIClientProtocol; diff --git a/extension/react-app/src/hooks/useContinueGUIProtocol.ts b/extension/react-app/src/hooks/useContinueGUIProtocol.ts index f43a66ff..a0c38c0f 100644 --- a/extension/react-app/src/hooks/useContinueGUIProtocol.ts +++ b/extension/react-app/src/hooks/useContinueGUIProtocol.ts @@ -70,6 +70,10 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol { deleteAtIndex(index: number) { this.messenger.send("delete_at_index", { index }); } + + deleteContextItemAtIndex(index: number) { + this.messenger.send("delete_context_item_at_index", { index }); + } } export default ContinueGUIClientProtocol; |