Commit 866146a
authored
fix: show LocalStack setup on only when setup is required (#58)
We've had a couple of race conditions and missing status check
dependencies. This resulted in LocalStack Setup notification being shown
when the setup is not required - this was happening on the most of VS
Code starts.
This PR fixes it with the following:
- Add explicit status initialization on every status tracker creation.
- Show Setup Wizard pop-up once setup is required. This ensures that
pop-up appears if setup is required at the start. Instead of
synchronizing statuses at the start and ensuring Setup Wizard is only
popping up once, we decided to have pop-up appearing every time the
setup is broken. This shouldn't happen normally, but when it happens
then setup wizard pop-up in addition to painting setup bar red can
actually be helpful.
- License status tracker now watches both license and auth token file
(not very clean solution, in the next iteration we should add behavioral
dependency between license tracker and auth tracker).
- Refresh status bar is now happening after the last setup wizard step.
Before it was in the middle.1 parent 8891ebc commit 866146a
2 files changed
+50
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
326 | 324 | | |
327 | 325 | | |
328 | 326 | | |
| 327 | + | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
383 | 388 | | |
384 | 389 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
50 | 70 | | |
51 | 71 | | |
52 | 72 | | |
53 | | - | |
| 73 | + | |
54 | 74 | | |
55 | 75 | | |
56 | 76 | | |
| |||
60 | 80 | | |
61 | 81 | | |
62 | 82 | | |
63 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
64 | 89 | | |
65 | 90 | | |
66 | 91 | | |
| |||
178 | 203 | | |
179 | 204 | | |
180 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
181 | 209 | | |
182 | 210 | | |
183 | 211 | | |
| |||
247 | 275 | | |
248 | 276 | | |
249 | 277 | | |
250 | | - | |
| 278 | + | |
251 | 279 | | |
252 | 280 | | |
253 | 281 | | |
| |||
0 commit comments