Repository navigation
Commit 41bd742
committed
fix(webview): restore both source definitions of a custom mode on rollback
The batch rollback snapshotted getCustomModes(), which hides a global definition behind the project mode
of the same slug. A batch that overwrote the global copy through that slug then restored only the project
copy, leaving the global definition permanently replaced. The snapshot now reads both source files
(getCustomModeDefinitions) and restores each entry to its own file.
New test: a slug that exists as a project and a global mode must come back as both, and the merged read
must not be enough to satisfy it. ClineProvider.spec 383 + CustomModesManager.spec 50 passed, tsc and
eslint clean.1 parent 610b6de commit 41bd742
3 files changed
Lines changed: 81 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
356 | 378 | | |
357 | 379 | | |
358 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5002 | 5002 | | |
5003 | 5003 | | |
5004 | 5004 | | |
| 5005 | + | |
| 5006 | + | |
| 5007 | + | |
5005 | 5008 | | |
5006 | | - | |
5007 | | - | |
| 5009 | + | |
| 5010 | + | |
5008 | 5011 | | |
5009 | 5012 | | |
5010 | 5013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6936 | 6936 | | |
6937 | 6937 | | |
6938 | 6938 | | |
| 6939 | + | |
| 6940 | + | |
| 6941 | + | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
| 6947 | + | |
| 6948 | + | |
| 6949 | + | |
| 6950 | + | |
| 6951 | + | |
| 6952 | + | |
| 6953 | + | |
| 6954 | + | |
| 6955 | + | |
| 6956 | + | |
| 6957 | + | |
| 6958 | + | |
| 6959 | + | |
| 6960 | + | |
| 6961 | + | |
| 6962 | + | |
| 6963 | + | |
| 6964 | + | |
| 6965 | + | |
| 6966 | + | |
| 6967 | + | |
| 6968 | + | |
| 6969 | + | |
| 6970 | + | |
| 6971 | + | |
| 6972 | + | |
| 6973 | + | |
| 6974 | + | |
| 6975 | + | |
| 6976 | + | |
| 6977 | + | |
| 6978 | + | |
| 6979 | + | |
| 6980 | + | |
| 6981 | + | |
| 6982 | + | |
| 6983 | + | |
| 6984 | + | |
| 6985 | + | |
| 6986 | + | |
| 6987 | + | |
| 6988 | + | |
6939 | 6989 | | |
6940 | 6990 | | |
6941 | 6991 | | |
| |||
6952 | 7002 | | |
6953 | 7003 | | |
6954 | 7004 | | |
| 7005 | + | |
| 7006 | + | |
6955 | 7007 | | |
6956 | 7008 | | |
6957 | 7009 | | |
| |||
6986 | 7038 | | |
6987 | 7039 | | |
6988 | 7040 | | |
| 7041 | + | |
| 7042 | + | |
6989 | 7043 | | |
6990 | 7044 | | |
6991 | 7045 | | |
| |||
0 commit comments