summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-01 12:36:57 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-01 12:36:57 -0700
commit36577b8e94809da47a540499132774a0fe2c085d (patch)
treee912172745fedf947b0f393ceaa2d36aaa703626 /extension/react-app/src/hooks
parent95ce61f2655dcbeb4fed019b6a9d8a632bad7adc (diff)
downloadsncontinue-36577b8e94809da47a540499132774a0fe2c085d.tar.gz
sncontinue-36577b8e94809da47a540499132774a0fe2c085d.tar.bz2
sncontinue-36577b8e94809da47a540499132774a0fe2c085d.zip
explicit context pill buttons
Diffstat (limited to 'extension/react-app/src/hooks')
-rw-r--r--extension/react-app/src/hooks/ContinueGUIClientProtocol.ts2
-rw-r--r--extension/react-app/src/hooks/useContinueGUIProtocol.ts4
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;