-
Notifications
You must be signed in to change notification settings - Fork 756
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extension/src/goTelemetry: do our JSON enc/dec for telemetry start time
We noticed the vscode Memento API doesn't behave as we expected. That made our recent attempt to increase the telemetry prompt rate stopped by this bug. Instead of relying on the Memento API's JSON stringify for Date object encoding, do the enc/dec work on ourside and let Memento work with string types. The existing changes cover the json encoding, decoding cases. Now goMain.ts activate() returns ExtensionTestAPI in testing mode. In telemetry testing, we want to check if the value recorded with vscode's real Memento API can be still usable. The real implementation is accessible only by capturing the ExtensionContext passed to the activate() invocation. Allow our test to access the extension's globalState using the new ExtensionTestAPI. Fixes #3312 Change-Id: I4540f83201f315624b077d113d6bfe2b3d608719 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/576775 Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
- Loading branch information
Showing
4 changed files
with
70 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters