Commit a76b089
committed
feat: automatically switch to imported mode after successful import
- Add importedModes field to ImportResult interface to track imported mode slugs
- Modify importModeWithRules method to collect and return imported mode slugs
- Update webview message handler to automatically switch to first imported mode
- Update ModesView.tsx to handle successful import with mode switching
Fixes #64911 parent 74672fa commit a76b089
File tree
3 files changed
+21
-3
lines changed- src/core
- config
- webview
- webview-ui/src/components/modes
3 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
789 | | - | |
| 790 | + | |
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| |||
949 | 950 | | |
950 | 951 | | |
951 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
952 | 956 | | |
953 | 957 | | |
954 | 958 | | |
| |||
980 | 984 | | |
981 | 985 | | |
982 | 986 | | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
983 | 990 | | |
984 | 991 | | |
985 | 992 | | |
986 | 993 | | |
987 | 994 | | |
988 | | - | |
| 995 | + | |
989 | 996 | | |
990 | 997 | | |
991 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1876 | 1876 | | |
1877 | 1877 | | |
1878 | 1878 | | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
1879 | 1887 | | |
1880 | 1888 | | |
1881 | 1889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
464 | 467 | | |
465 | 468 | | |
466 | 469 | | |
| |||
0 commit comments