Commit d5549f4
committed
Add a timeout to waiting for the user to click on telemetry dialog
If user clicks the 'x', then the dialog goes away without its promise
ever being resolved. This will prevent the extension from being started.
This commit uses `Promise.race` to set a 10s timeout for the dialog to
disappear and the extension to start anyway. If this happens, the
dialog will appear on next startup and will continue to appear until
the user actively clicks 'Yes' or 'No.1 parent 308b33f commit d5549f4
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
134 | 139 | | |
135 | 140 | | |
136 | 141 | | |
| |||
0 commit comments