Merge pull request #6516 from uinstinct/autocomplete-timestamp

fix: autocomplete dev data timestamp as iso string
This commit is contained in:
Dallin Romney 2025-07-09 11:26:03 -07:00 • committed by GitHub
commit 683c01568f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -254,7 +254,7 @@ export class CompletionProvider {
completionId: helper.input.completionId,
gitRepo: await this.ide.getRepoName(helper.filepath),
uniqueId: await this.ide.getUniqueId(),
timestamp: Date.now(),
timestamp: new Date().toISOString(),
...helper.options,
};

View file

@ -41,5 +41,5 @@ export interface AutocompleteOutcome extends TabAutocompleteOptions {
gitRepo?: string;
completionId: string;
uniqueId: string;
timestamp: number;
timestamp: string;
}

View file

@ -34,7 +34,7 @@ export const autocompleteEventAllSchema = baseDevDataAllSchema.extend({
gitRepo: z.string().optional(),
completionId: z.string(),
uniqueId: z.string(),
timestamp: z.number(),
timestamp: z.string(),
// DEPRECATED - no more nested objects after v0.1.0, all flat values
completionOptions: completionOptionsSchema.optional(),