diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-09 14:12:36 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-09 14:12:36 -0700 |
commit | afe3016ec3c143787e95a8b7e7a31f8177f63957 (patch) | |
tree | ae197b61eb280ba00cdda21bec831ef36b9dce9c /extension/react-app/src/components/ComboBox.tsx | |
parent | 8b5af6bbc6bd1cbe743ebc09f0ebf10a2072e6ff (diff) | |
download | sncontinue-afe3016ec3c143787e95a8b7e7a31f8177f63957.tar.gz sncontinue-afe3016ec3c143787e95a8b7e7a31f8177f63957.tar.bz2 sncontinue-afe3016ec3c143787e95a8b7e7a31f8177f63957.zip |
sdk.get_code_context
Diffstat (limited to 'extension/react-app/src/components/ComboBox.tsx')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index e6632360..801c3a03 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -224,8 +224,8 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { editing={section.editing} pinned={section.pinned} index={idx} - key={`${section.filepath}${idx}`} - title={`${section.range.filepath} (${ + key={`${section.display_name}${idx}`} + title={`${section.display_name} (${ section.range.range.start.line + 1 }-${section.range.range.end.line + 1})`} onDelete={() => { @@ -372,7 +372,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { > {highlightedCodeSections.map((section, idx) => ( <> - <p>{section.range.filepath}</p> + <p>{section.display_name}</p> <CodeBlock showCopy={false} key={idx}> {section.range.contents} </CodeBlock> |