Commit f4a98c4
Use static "Snapshot" label in DAP stopped event description
Summary:
The dynamic `Snapshot {N}/{M} — {HH:MM:SS.fff} ({ExceptionType})` description that `_snapshot_display_name` builds for the `stopped` event looks correct on the initial launch but stays stale on subsequent `tintypeJumpToSnapshot` requests. VS Code does not consistently re-render the CALL STACK description on every `stopped` event after the first one, so the label drifts out of sync with the actual cursor — and a stale `1/3` label next to snapshot 2 is more misleading than no detail at all. The bootstrap-then-real pair in `handle_launch` is also affected: in practice the bootstrap event's plain `"Snapshot"` is what users see on launch, hiding the dynamic format entirely.
Collapse `_snapshot_display_name` to always return `"Snapshot"`. The snapshot index and timestamp the user actually needs are already visible in the Tintype Snapshots panel — the CALL STACK description doesn't need to duplicate them. The bootstrap-then-real `_send_stopped_event` pair in `handle_launch` is kept intact so any future re-introduction of a dynamic label (e.g. once we have a reliable way to push description updates to VS Code) can use it without code changes.
Drops the now-unused `import datetime`.
Reviewed By: bvu405
Differential Revision: D106092777
fbshipit-source-id: d0e3cb034883423dde01b50a3f1d001f730ea7d91 parent d2838e9 commit f4a98c4
2 files changed
Lines changed: 42 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
1223 | 1222 | | |
1224 | 1223 | | |
1225 | 1224 | | |
1226 | | - | |
| 1225 | + | |
1227 | 1226 | | |
1228 | 1227 | | |
1229 | 1228 | | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1238 | 1240 | | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | | - | |
1246 | | - | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
| 1241 | + | |
1278 | 1242 | | |
1279 | 1243 | | |
1280 | 1244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
184 | 185 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 186 | + | |
192 | 187 | | |
193 | 188 | | |
194 | 189 | | |
| |||
1774 | 1769 | | |
1775 | 1770 | | |
1776 | 1771 | | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1780 | 1779 | | |
1781 | 1780 | | |
1782 | 1781 | | |
| |||
1805 | 1804 | | |
1806 | 1805 | | |
1807 | 1806 | | |
1808 | | - | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
1814 | | - | |
1815 | | - | |
1816 | | - | |
1817 | | - | |
1818 | | - | |
1819 | | - | |
1820 | | - | |
1821 | | - | |
1822 | | - | |
1823 | | - | |
1824 | | - | |
1825 | | - | |
1826 | | - | |
1827 | | - | |
1828 | | - | |
1829 | | - | |
1830 | | - | |
1831 | | - | |
1832 | | - | |
1833 | | - | |
1834 | | - | |
1835 | | - | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
1840 | 1810 | | |
1841 | 1811 | | |
1842 | 1812 | | |
| |||
1853 | 1823 | | |
1854 | 1824 | | |
1855 | 1825 | | |
| 1826 | + | |
1856 | 1827 | | |
1857 | 1828 | | |
1858 | 1829 | | |
1859 | 1830 | | |
1860 | 1831 | | |
1861 | 1832 | | |
1862 | | - | |
| 1833 | + | |
1863 | 1834 | | |
1864 | | - | |
1865 | | - | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
1866 | 1838 | | |
1867 | 1839 | | |
1868 | 1840 | | |
| |||
1878 | 1850 | | |
1879 | 1851 | | |
1880 | 1852 | | |
1881 | | - | |
1882 | | - | |
1883 | | - | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1884 | 1858 | | |
1885 | 1859 | | |
1886 | 1860 | | |
| |||
0 commit comments