summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ComboBox.tsx
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-14 03:24:46 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-14 03:24:46 -0700
commit612c4115a0c74b52b77956867e0f47a84eca98a9 (patch)
treeaf1176510dcc4ce368d1c40760c08ca2a1fc81b9 /extension/react-app/src/components/ComboBox.tsx
parentc22670ba2122412eca3f2de1f270b5f113db7e25 (diff)
downloadsncontinue-612c4115a0c74b52b77956867e0f47a84eca98a9.tar.gz
sncontinue-612c4115a0c74b52b77956867e0f47a84eca98a9.tar.bz2
sncontinue-612c4115a0c74b52b77956867e0f47a84eca98a9.zip
warn of large highlighted ranges, cmd+k->m
Diffstat (limited to 'extension/react-app/src/components/ComboBox.tsx')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 73db33ca..bd0d59b5 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -228,6 +228,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
)} */}
{highlightedCodeSections.map((section, idx) => (
<PillButton
+ warning={
+ section.range.contents.length > 4000 && section.editing
+ ? "Editing such a large range may be slow"
+ : undefined
+ }
editing={section.editing}
pinned={section.pinned}
index={idx}