- Notifications
You must be signed in to change notification settings - Fork16
Commit7bed8d9
committed
Fix coroutines when running from File > Remote Development
For whatever reason, cs.launch does not work and you have to pass themodality state. Without this state, they do not launch until after theremote development window is closed.Using that from a background process fails, however (something aboutonly being able to access from EDT), so instead of starting/stopping thepoll there, I just always keep it running in the background (and it justdoes nothing when there is no client).For the re-invoking of the token window, I removed the launch entirely.Could probably use invokeLater() or something but this seems fine?1 parent3eadac2 commit7bed8d9
File tree
4 files changed
+58
-33
lines changed- src/main/kotlin/com/coder/gateway/views
- steps
4 files changed
+58
-33
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 |
| |
8 | 13 |
| |
9 | 14 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 34 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| |||
57 | 59 |
| |
58 | 60 |
| |
59 | 61 |
| |
| 62 | + | |
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
| |||
77 | 80 |
| |
78 | 81 |
| |
79 | 82 |
| |
| 83 | + | |
80 | 84 |
| |
81 | 85 |
| |
82 | 86 |
| |
| |||
209 | 213 |
| |
210 | 214 |
| |
211 | 215 |
| |
212 |
| - | |
213 |
| - | |
214 |
| - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
215 | 229 |
| |
216 | 230 |
| |
217 | 231 |
| |
| |||
230 | 244 |
| |
231 | 245 |
| |
232 | 246 |
| |
233 |
| - | |
234 |
| - | |
235 |
| - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
236 | 260 |
| |
237 | 261 |
| |
238 | 262 |
| |
| |||
348 | 372 |
| |
349 | 373 |
| |
350 | 374 |
| |
351 |
| - | |
| 375 | + | |
352 | 376 |
| |
353 | 377 |
| |
| 378 | + | |
354 | 379 |
| |
355 | 380 |
| |
356 | 381 |
| |
| |||
413 | 438 |
| |
414 | 439 |
| |
415 | 440 |
| |
416 |
| - | |
417 | 441 |
| |
418 | 442 |
| |
| 443 | + | |
| 444 | + | |
419 | 445 |
| |
420 | 446 |
| |
421 | 447 |
| |
|
Lines changed: 18 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
| 33 | + | |
32 | 34 |
| |
33 | 35 |
| |
34 | 36 |
| |
| |||
302 | 304 |
| |
303 | 305 |
| |
304 | 306 |
| |
305 |
| - | |
| 307 | + | |
306 | 308 |
| |
307 | 309 |
| |
308 | 310 |
| |
309 | 311 |
| |
310 | 312 |
| |
311 |
| - | |
| 313 | + | |
312 | 314 |
| |
313 | 315 |
| |
314 | 316 |
| |
| |||
326 | 328 |
| |
327 | 329 |
| |
328 | 330 |
| |
329 |
| - | |
| 331 | + | |
330 | 332 |
| |
331 | 333 |
| |
332 | 334 |
| |
| |||
374 | 376 |
| |
375 | 377 |
| |
376 | 378 |
| |
377 |
| - | |
| 379 | + | |
378 | 380 |
| |
379 | 381 |
| |
380 | 382 |
| |
| |||
392 | 394 |
| |
393 | 395 |
| |
394 | 396 |
| |
395 |
| - | |
| 397 | + | |
396 | 398 |
| |
397 | 399 |
| |
398 | 400 |
| |
399 | 401 |
| |
400 | 402 |
| |
401 |
| - | |
| 403 | + | |
402 | 404 |
| |
403 | 405 |
| |
404 | 406 |
| |
| |||
426 | 428 |
| |
427 | 429 |
| |
428 | 430 |
| |
429 |
| - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
430 | 434 |
| |
431 | 435 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
| 436 | + | |
436 | 437 |
| |
437 | 438 |
| |
438 | 439 |
| |
| |||
565 | 566 |
| |
566 | 567 |
| |
567 | 568 |
| |
568 |
| - | |
569 |
| - | |
570 | 569 |
| |
571 | 570 |
| |
572 | 571 |
| |
| |||
609 | 608 |
| |
610 | 609 |
| |
611 | 610 |
| |
612 |
| - | |
613 | 611 |
| |
614 | 612 |
| |
615 | 613 |
| |
| |||
640 | 638 |
| |
641 | 639 |
| |
642 | 640 |
| |
643 |
| - | |
| 641 | + | |
644 | 642 |
| |
645 | 643 |
| |
646 | 644 |
| |
647 | 645 |
| |
648 | 646 |
| |
649 | 647 |
| |
650 | 648 |
| |
651 |
| - | |
652 |
| - | |
| 649 | + | |
653 | 650 |
| |
654 |
| - | |
| 651 | + | |
655 | 652 |
| |
656 | 653 |
| |
657 | 654 |
| |
658 | 655 |
| |
659 | 656 |
| |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
| 657 | + | |
664 | 658 |
| |
665 |
| - | |
666 | 659 |
| |
| 660 | + | |
667 | 661 |
| |
668 | 662 |
| |
669 | 663 |
| |
| |||
738 | 732 |
| |
739 | 733 |
| |
740 | 734 |
| |
741 |
| - | |
| 735 | + | |
742 | 736 |
| |
743 | 737 |
| |
744 | 738 |
| |
|
0 commit comments
Comments
(0)