From 83af37eee28c28b8fb3118503e166969455e7474 Mon Sep 17 00:00:00 2001 From: gyeongmin-ju Date: Thu, 13 Mar 2025 16:06:17 +0900 Subject: [PATCH] Fixed an issue where the Log data collection feature in IntelliJ would fail. Signed-off-by: amos42 --- core/autocomplete/CompletionProvider.ts | 2 +- core/data/log.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/autocomplete/CompletionProvider.ts b/core/autocomplete/CompletionProvider.ts index b56d153dc..949f94c3b 100644 --- a/core/autocomplete/CompletionProvider.ts +++ b/core/autocomplete/CompletionProvider.ts @@ -262,7 +262,7 @@ export class CompletionProvider { // When using the JetBrains extension, Mark as displayed const ideType = (await this.ide.getIdeInfo()).ideType; - if (ideType === "jetbrains") { + if (ideType.toLowerCase() === "jetbrains") { this.markDisplayed(input.completionId, outcome); } diff --git a/core/data/log.ts b/core/data/log.ts index 6af4738eb..4470eba72 100644 --- a/core/data/log.ts +++ b/core/data/log.ts @@ -46,8 +46,8 @@ export class DataLogger { if ("eventName" in zodSchema.shape) { newBody.eventName = eventName; } - if ("timestamp" in zodSchema.shape) { - newBody.timestamp = Date.now(); + if (!newBody.timestamp && "timestamp" in zodSchema.shape) { + newBody.timestamp = new Date().toISOString(); } if ("schema" in zodSchema.shape) { newBody.schema = schema;