Logs resolved model for cached autocomplete items by attaching this value to InlineCompletionItemWithAnalytics which is cached, instead of adding it directly to analytics events.
Fixes the issue with logging cached completion suggestion events. Some of them were not logged because we didn't have a CompletionLogger.start() call. This part of the logger is fragile. The type system and existing abstraction don't guard us from making such mistakes. Created a follow-up issue to address that.
InlineCompletionItemWithAnalytics
which is cached, instead of adding it directly to analytics events.CompletionLogger.start()
call. This part of the logger is fragile. The type system and existing abstraction don't guard us from making such mistakes. Created a follow-up issue to address that.Test plan
Updated unit tests and tested locally by accepting cached autocomplete events and observing
resolvedModel
under theprivateMetadata
field.