You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation intended to allow a one week grace period after gopls with telemetry capability is installed.
The intention was to have some time to collect sample telemetry data on disk, so users can inspect the data when they are eventually prompted.
The implementation used VS Code's Memento API to record the Date when the gopls v0.14+ was first installed.
). This was also observed during #3256 (the reported issue itself doesn't seem related this a.getTime is not a function error message from Extension Host).
Looks like the encoding is currently working as the API stated (Date.toJSON)
but decoding doesn't seem to be working. Roll our own encoding (Date.toJSON) and decoding, to protect us in the future.
We will be able to salvage the value currently stored in the memento since the current value is Date.toJSON.
Gopls v0.14 was released a while ago, and most users already have some data to inspect already.
Let's remove this check for simplicity.
cc @golang/tools-team
The text was updated successfully, but these errors were encountered:
hyangah
changed the title
goTelemetry: remove 1 week grace period check before prompting
goTelemetry: make start time recording robust against unexpected vscode memento API behavior
Apr 4, 2024
The current implementation intended to allow a one week grace period after gopls with telemetry capability is installed.
The intention was to have some time to collect sample telemetry data on disk, so users can inspect the data when they are eventually prompted.
The implementation used VS Code's Memento API to record the Date when the gopls v0.14+ was first installed.
vscode-go/extension/src/goTelemetry.ts
Line 176 in 19afd64
Recently, however, we noticed the API changed the behavior (microsoft/vscode#209479),
and that causes
promptForTelemetry
abort (vscode-go/extension/src/goTelemetry.ts
Line 177 in 19afd64
a.getTime is not a function
error message from Extension Host).Looks like the encoding is currently working as the API stated (Date.toJSON)
but decoding doesn't seem to be working. Roll our own encoding (Date.toJSON) and decoding, to protect us in the future.
We will be able to salvage the value currently stored in the memento since the current value is Date.toJSON.
Gopls v0.14 was released a while ago, and most users already have some data to inspect already.Let's remove this check for simplicity.
cc @golang/tools-team
The text was updated successfully, but these errors were encountered: