Repository navigation
Commit 735dc22
committed
unit 3a: answer the CodeRabbit rows on comments, dispose behaviour, and delivery tests
ClineProvider.ts 174: the two dangling JSDoc blocks now sit on the declarations they describe. The buffer and durable note sits above type PersistedViewState. The narrow-generic note sits above savePersistedViewState, where the sentence named saveViewState, a name no declaration in this file carries, and now names the queued write that path takes.
ClineProvider.ts 283: the orphan note about the fields a view owns describes type ViewLocalStateField, and no declaration in this tree carries that name. git blame attributes the note to 76ab52f, so it is PR-carried, and it is deleted here as dead text to return with the unit that carries the declaration.
ClineProvider.ts 516: dispose now bumps viewStateGeneration at its start and detaches this provider's entries from the shared write queue through the splice path the queue helper already provides, clearing entry.provider so a disposed view stops being retained behind another view's write. The comment at 503 and the block at 506 claimed both, and the code did neither. Two tests added, one that fails without the bump and one that fails without the detach.
ClineProvider.ts 1045: three tests added for the survivors this chain owes itself, the shared view id counter, the per-field write version record, and the boolean delivery result reporting an undelivered message after dispose.
webviewMessageHandler.spec.ts 2853: the ordering assertion is now causal. The row establishes isViewLaunched false, captures it inside the flush spy, and asserts the transition, because clearAllMocks resets call records and not properties. The rejected flush row the reviewer said was untested is added beside it, asserting the launch still completes.
ProviderSettingsManager.ts 521 is not touched here. The guard is main content that predates this chain, and the file reaches this PR only through unit 2.1 parent 76ab52f commit 735dc22
3 files changed
Lines changed: 97 additions & 12 deletions
File tree
- src/core/webview
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | 163 | | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
169 | 167 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 168 | + | |
175 | 169 | | |
176 | 170 | | |
177 | 171 | | |
| |||
280 | 274 | | |
281 | 275 | | |
282 | 276 | | |
283 | | - | |
284 | | - | |
285 | 277 | | |
286 | 278 | | |
287 | 279 | | |
| |||
1489 | 1481 | | |
1490 | 1482 | | |
1491 | 1483 | | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1492 | 1500 | | |
1493 | 1501 | | |
1494 | 1502 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2799 | 2799 | | |
2800 | 2800 | | |
2801 | 2801 | | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
2802 | 2860 | | |
2803 | 2861 | | |
2804 | 2862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2841 | 2841 | | |
2842 | 2842 | | |
2843 | 2843 | | |
2844 | | - | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
2845 | 2849 | | |
2846 | | - | |
| 2850 | + | |
2847 | 2851 | | |
2848 | 2852 | | |
2849 | 2853 | | |
2850 | 2854 | | |
2851 | 2855 | | |
2852 | | - | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
| 2871 | + | |
2853 | 2872 | | |
2854 | 2873 | | |
2855 | 2874 | | |
| |||
0 commit comments