Commit 2f05fc3
committed
Fix quick-fix lifecycle: session provenance, aria suppression, and dedup simplification
- Add session-provenance stamping to the output cache so outputs produced
this session keep Fix/Explain buttons even after a save-as (file->file
or untitled->file) reloads them from the cache. Previous behavior
unconditionally marked all cache-restored outputs as stale.
- Suppress screen-reader announcements for Fix/Explain button insertions
by adding aria-live='off' to the quick-fix container (buttons mount
asynchronously inside the output's role='log' live region).
- Simplify the duplicate-mount guard from a replace-then-dispose dance
with a separate _quickFixContainersByKey map to a first-wins has() skip
(the extra map is deleted).
- Resolve getCellContext at click time via a reverse view-zone lookup
instead of capturing cellId in a closure that must be manually rebound
at every remap site.
- Re-key the stash on untitled->file save-as so outputs restore from the
stash (preserving live flags) instead of re-reading from the just-
transferred cache.
- Remove the redundant in-memory seeding in _transferCacheFromUntitled
that caused doubled outputs after a stash round trip.1 parent de2b063 commit 2f05fc3
5 files changed
Lines changed: 235 additions & 42 deletions
File tree
- src/vs/workbench/contrib/positronQuarto
- browser
- common
- test/browser
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
117 | 129 | | |
118 | 130 | | |
119 | 131 | | |
| |||
280 | 292 | | |
281 | 293 | | |
282 | 294 | | |
| 295 | + | |
| 296 | + | |
283 | 297 | | |
284 | 298 | | |
285 | 299 | | |
| |||
345 | 359 | | |
346 | 360 | | |
347 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
348 | 366 | | |
349 | 367 | | |
350 | 368 | | |
| |||
674 | 692 | | |
675 | 693 | | |
676 | 694 | | |
| 695 | + | |
| 696 | + | |
677 | 697 | | |
678 | 698 | | |
679 | 699 | | |
| |||
775 | 795 | | |
776 | 796 | | |
777 | 797 | | |
| 798 | + | |
778 | 799 | | |
779 | 800 | | |
780 | 801 | | |
| |||
808 | 829 | | |
809 | 830 | | |
810 | 831 | | |
| 832 | + | |
811 | 833 | | |
812 | 834 | | |
813 | 835 | | |
| |||
841 | 863 | | |
842 | 864 | | |
843 | 865 | | |
| 866 | + | |
844 | 867 | | |
845 | 868 | | |
846 | 869 | | |
| |||
Lines changed: 45 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
299 | 311 | | |
300 | 312 | | |
301 | 313 | | |
| |||
729 | 741 | | |
730 | 742 | | |
731 | 743 | | |
732 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
733 | 749 | | |
734 | 750 | | |
735 | 751 | | |
736 | 752 | | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | 753 | | |
743 | 754 | | |
744 | 755 | | |
| |||
845 | 856 | | |
846 | 857 | | |
847 | 858 | | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
853 | 866 | | |
854 | 867 | | |
855 | 868 | | |
| |||
1047 | 1060 | | |
1048 | 1061 | | |
1049 | 1062 | | |
1050 | | - | |
1051 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
1052 | 1070 | | |
1053 | 1071 | | |
1054 | 1072 | | |
| |||
1093 | 1111 | | |
1094 | 1112 | | |
1095 | 1113 | | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1096 | 1128 | | |
1097 | 1129 | | |
1098 | 1130 | | |
| |||
1653 | 1685 | | |
1654 | 1686 | | |
1655 | 1687 | | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | 1688 | | |
1661 | 1689 | | |
1662 | 1690 | | |
| |||
Lines changed: 22 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 200 | | |
205 | 201 | | |
206 | 202 | | |
| |||
1119 | 1115 | | |
1120 | 1116 | | |
1121 | 1117 | | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | 1118 | | |
1126 | 1119 | | |
1127 | 1120 | | |
| |||
2532 | 2525 | | |
2533 | 2526 | | |
2534 | 2527 | | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
2538 | | - | |
2539 | | - | |
2540 | 2528 | | |
2541 | | - | |
2542 | | - | |
| 2529 | + | |
| 2530 | + | |
2543 | 2531 | | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
2555 | 2552 | | |
2556 | 2553 | | |
2557 | 2554 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
0 commit comments