summaryrefslogtreecommitdiff
path: root/extension/react-app/src/hooks
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-05 23:20:06 -0700
committerTy Dunn <ty@tydunn.com>2023-07-05 23:20:06 -0700
commit4fd50ba78b0199d3495f1cd7e08f595a751e6fe3 (patch)
treecb74b1ab31218ee1ba523cf924170969f2308bb0 /extension/react-app/src/hooks
parentd5a92ae77ab692c4f7d57e041a2927a41d8133bd (diff)
parentd259979ef89f17957396fc7300e1ecf54214ae84 (diff)
downloadsncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.tar.gz
sncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.tar.bz2
sncontinue-4fd50ba78b0199d3495f1cd7e08f595a751e6fe3.zip
Merge branch 'main' of github.com:continuedev/continue
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 96ea7ab3..f123bb2b 100644
--- a/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
+++ b/extension/react-app/src/hooks/ContinueGUIClientProtocol.ts
@@ -22,6 +22,8 @@ abstract class AbstractContinueGUIClientProtocol {
abstract deleteAtIndex(index: number): void;
abstract deleteContextAtIndices(indices: number[]): void;
+
+ abstract toggleAddingHighlightedCode(): void;
}
export default AbstractContinueGUIClientProtocol;
diff --git a/extension/react-app/src/hooks/useContinueGUIProtocol.ts b/extension/react-app/src/hooks/useContinueGUIProtocol.ts
index e950387c..49f200ae 100644
--- a/extension/react-app/src/hooks/useContinueGUIProtocol.ts
+++ b/extension/react-app/src/hooks/useContinueGUIProtocol.ts
@@ -74,6 +74,10 @@ class ContinueGUIClientProtocol extends AbstractContinueGUIClientProtocol {
deleteContextAtIndices(indices: number[]) {
this.messenger.send("delete_context_at_indices", { indices });
}
+
+ toggleAddingHighlightedCode(): void {
+ this.messenger.send("toggle_adding_highlighted_code", {});
+ }
}
export default ContinueGUIClientProtocol;