summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks
diff options
context:
space:
mode:
authorNate Sesti <33237525+sestinj@users.noreply.github.com>2023-07-02 20:15:49 -0700
committerGitHub <noreply@github.com>2023-07-02 20:15:49 -0700
commitcf3d08ceaabecd80b20aaac24c5c166cd8e6472f (patch)
tree7559fe0d9500d5156fa99ee5614ac0fe6d4e88f3 /extension/react-app/src/hooks
parent0ffd2648d679916872c681036a68741a83d80c0e (diff)
parent0a812994703791023125177fe4820202374e45b0 (diff)
downloadsncontinue-cf3d08ceaabecd80b20aaac24c5c166cd8e6472f.tar.gz
sncontinue-cf3d08ceaabecd80b20aaac24c5c166cd8e6472f.tar.bz2
sncontinue-cf3d08ceaabecd80b20aaac24c5c166cd8e6472f.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.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;