Commit 1814cc8
authored
fix(telemetry): session_end not caching events (#5817)
## Problem
When the user shutdown their extension gracefully our mechanism that
would cache any pending metrics for the next startup would not save to
disk.
This was due to the VS Code FS implementation being used, but it will
not work since the function it is called in is called by `deactivate()`
which does not have access to vscode apis on shutdown.
## Solution
Solution is to swap it with the node fs implementation
---
<!--- REMINDER: Ensure that your PR meets the guidelines in
CONTRIBUTING.md -->
License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
Signed-off-by: nkomonen-amazon <[email protected]>1 parent f9e4124 commit 1814cc8
File tree
1 file changed
+5
-1
lines changed1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments