Commit 336cccc
committed
feat: implement incremental message updates for improved UI performance
- Modified Task.ts to send only new messages instead of entire state
- Added messageCreated and messageUpdated event types to ExtensionMessage
- Updated webview handler to process incremental message updates
- Enhanced postStateToWebview to handle existing tasks with incremental loading
- Improved performance by reducing data transfer and UI re-renders
This change significantly improves UI responsiveness, especially for tasks with many messages.1 parent 5041880 commit 336cccc
File tree
4 files changed
+51
-4
lines changed- src
- core
- task
- webview
- webview-ui/src/context
4 files changed
+51
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
| 548 | + | |
548 | 549 | | |
549 | 550 | | |
550 | 551 | | |
| |||
1006 | 1007 | | |
1007 | 1008 | | |
1008 | 1009 | | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1009 | 1013 | | |
1010 | 1014 | | |
1011 | 1015 | | |
| |||
1443 | 1447 | | |
1444 | 1448 | | |
1445 | 1449 | | |
1446 | | - | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1447 | 1457 | | |
1448 | 1458 | | |
1449 | 1459 | | |
| |||
1642 | 1652 | | |
1643 | 1653 | | |
1644 | 1654 | | |
| 1655 | + | |
1645 | 1656 | | |
1646 | 1657 | | |
1647 | 1658 | | |
| |||
1652 | 1663 | | |
1653 | 1664 | | |
1654 | 1665 | | |
| 1666 | + | |
| 1667 | + | |
1655 | 1668 | | |
1656 | 1669 | | |
1657 | 1670 | | |
| |||
1701 | 1714 | | |
1702 | 1715 | | |
1703 | 1716 | | |
1704 | | - | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
1705 | 1724 | | |
1706 | 1725 | | |
1707 | 1726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
1335 | | - | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1336 | 1355 | | |
1337 | 1356 | | |
1338 | 1357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
333 | 341 | | |
334 | 342 | | |
335 | 343 | | |
| |||
0 commit comments