summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-10-04 16:20:16 -0700
committerNate Sesti <sestinj@gmail.com>2023-10-04 16:20:16 -0700
commit257cef697c93d2f2f59936587834908bd69ae842 (patch)
treec3a5e64a7986d9f1b995a09b5c2394a22410e30b /extension
parente1f82d34fa615b8a5ccbdd0d0548ec1cd4b709f0 (diff)
downloadsncontinue-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.tsx8
-rw-r--r--extension/src/continueIdeClient.ts7
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),