Commit 168d8b6
feat(ui): make SQL toggle retroactive for entire session
The SQL toggle (`ctrl+s`) now shows/hides SQL for all queries in the
current session, not just future queries.
Changes:
- Always store SQL in message history (regardless of ShowSQL state)
- Filter SQL messages during rendering based on current ShowSQL value
- Refresh viewport immediately when toggling so change is visible
Now when you toggle SQL on, all previously executed queries in the
session will show their SQL. Toggle it off and they all hide again.
Closes #163
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent d4ddd57 commit 168d8b6
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
719 | 718 | | |
720 | 719 | | |
721 | 720 | | |
| |||
824 | 823 | | |
825 | 824 | | |
826 | 825 | | |
| 826 | + | |
| 827 | + | |
827 | 828 | | |
828 | 829 | | |
829 | 830 | | |
| |||
993 | 994 | | |
994 | 995 | | |
995 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
996 | 1001 | | |
997 | 1002 | | |
998 | 1003 | | |
| |||
0 commit comments