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:
parent
1255b21677
commit
83af37eee2
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue