From 257cef697c93d2f2f59936587834908bd69ae842 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 4 Oct 2023 16:20:16 -0700 Subject: feat: :loud_sound: telemetry for vscode vs. jetbrains --- extension/react-app/src/components/ComboBox.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'extension/react-app/src/components') diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index 12cd91a2..c08c05de 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -439,9 +439,11 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { // Handle slash commands dispatch(setTakenActionTrue(null)); setItems( - availableSlashCommands?.filter((slashCommand) => - slashCommand.name.toLowerCase().startsWith(inputValue.toLowerCase()) - ) || [] + availableSlashCommands?.filter((slashCommand) => { + const sc = slashCommand.name.toLowerCase(); + const iv = inputValue.toLowerCase(); + return sc.startsWith(iv) && sc !== iv; + }) || [] ); }, [ -- cgit v1.2.3-70-g09d2