Fixed an issue where the Log data collection feature in IntelliJ would fail.

Signed-off-by: amos42 <jcmh74@gmail.com>
This commit is contained in:
gyeongmin-ju 2025-03-13 16:06:17 +09:00
parent 1255b21677
commit 83af37eee2
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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;