diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-10-04 16:20:16 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-10-04 16:20:16 -0700 |
commit | 257cef697c93d2f2f59936587834908bd69ae842 (patch) | |
tree | c3a5e64a7986d9f1b995a09b5c2394a22410e30b /extension | |
parent | e1f82d34fa615b8a5ccbdd0d0548ec1cd4b709f0 (diff) | |
download | sncontinue-257cef697c93d2f2f59936587834908bd69ae842.tar.gz sncontinue-257cef697c93d2f2f59936587834908bd69ae842.tar.bz2 sncontinue-257cef697c93d2f2f59936587834908bd69ae842.zip |
feat: :loud_sound: telemetry for vscode vs. jetbrains
Diffstat (limited to 'extension')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 8 | ||||
-rw-r--r-- | extension/src/continueIdeClient.ts | 7 |
2 files changed, 12 insertions, 3 deletions
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; + }) || [] ); }, [ diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts index f49f0936..c25dff50 100644 --- a/extension/src/continueIdeClient.ts +++ b/extension/src/continueIdeClient.ts @@ -268,6 +268,13 @@ class IdeProtocolClient { uniqueId: this.getUniqueId(), }); break; + case "ide": + messenger.send("ide", { + name: "vscode", + version: vscode.version, + remoteName: vscode.env.remoteName, + }); + break; case "fileExists": messenger.send("fileExists", { exists: await this.fileExists(data.filepath), |