Make Git a native feature with an off switch
- Add the native feature runtime in src/lib/features/: the catalog, the switches, the first-start migration, the loader, and the feature sessions. - Add Settings → Features and the features settings section. - Add features_legacy. It reads the old plugin packages and changes nothing. - Move Git from the plugin into src/lib/features/git/, on host internals. - Remove api.git, the git contribution key, and the SDK Git types. - Add pnpm check:features. It fails when a feature module loads at start. - Update the tests, the menu inventory, the docs, and UI-055.
This commit is contained in:
@@ -20,7 +20,8 @@ use crate::fsutil;
|
||||
pub const FILE_NAME: &str = "settings.json";
|
||||
pub const SCHEMA: u64 = 1;
|
||||
/// The known sections. `customThemesLegacy` keeps the original version 1 themes from before their conversion.
|
||||
pub const SECTIONS: [&str; 5] = ["general", "appearance", "customThemes", "customThemesLegacy", "language"];
|
||||
/// `features` holds the switches of the native features.
|
||||
pub const SECTIONS: [&str; 6] = ["general", "appearance", "customThemes", "customThemesLegacy", "language", "features"];
|
||||
/// The appearance section can hold an image data URL of up to 3,000,000 characters.
|
||||
pub const MAX_FILE_BYTES: usize = 8 * 1024 * 1024;
|
||||
pub const CHANGED_EVENT: &str = "settings-changed";
|
||||
|
||||
Reference in New Issue
Block a user