diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-14 03:24:46 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-14 03:24:46 -0700 |
commit | 39cd2ef27d6ed439b00a9edec4a487343ff1c2c9 (patch) | |
tree | 24d3c24a9b1243955e878c55a74533255bb78ca9 /extension/react-app/src/components/ComboBox.tsx | |
parent | 5c6d2f1be8474d26124506e0c2a640fa68efe52d (diff) | |
download | sncontinue-39cd2ef27d6ed439b00a9edec4a487343ff1c2c9.tar.gz sncontinue-39cd2ef27d6ed439b00a9edec4a487343ff1c2c9.tar.bz2 sncontinue-39cd2ef27d6ed439b00a9edec4a487343ff1c2c9.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.tsx | 5 |
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} |