Commit c3391d7
committed
Fix(config): Automatically add new plugins to user configs
The configuration migration logic has been updated to be more robust.
Previously, the migration only handled renaming specific, hardcoded plugin keys. It did not add entirely new plugins to existing user configuration files, which could cause issues when new features are introduced.
This change modifies the logic to iterate through the default plugin list and add any missing plugins to a user's configuration with their default status. This ensures that all user configs are kept up-to-date and compatible with the latest version.
The project version has been bumped to 1.0.8 to reflect this fix.
```.1 parent 0aa0bd8 commit c3391d7
2 files changed
Lines changed: 4 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 196 | | |
207 | 197 | | |
208 | 198 | | |
| |||
211 | 201 | | |
212 | 202 | | |
213 | 203 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
217 | 207 | | |
218 | 208 | | |
219 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments