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:
Knotty Wyvern
2026-10-29 15:51:21 -07:00
parent 58f77b2e9f
commit d3218b2501
68 changed files with 2068 additions and 324 deletions
+17 -1
View File
@@ -14,7 +14,9 @@ This guide explains how to work with files, documents, tabs, settings, and the b
| Arrange tabs and windows | [Manage tabs](#manage-tabs) |
| Save, or recover from a changed file | [Save your work](#save-your-work) and [Resolve file conflicts](#resolve-file-conflicts) |
| Change the language or colors | [Change settings](#change-settings) and [Appearance](guides/themes.md) |
| Add Terminal, Git, or other features | [Install and manage plugins](plugins.md) |
| Review changes and commit with Git | [Git guide](guides/git.md) |
| Turn a built-in feature on or off | [Turn features on or off](#turn-features-on-or-off) |
| Add Terminal or other plugins | [Install and manage plugins](plugins.md) |
| Browse websites | [Use the built-in browser](#use-the-built-in-browser) |
| Run commands or scripts | [Terminal guide](guides/terminal.md) |
@@ -198,9 +200,23 @@ Settings apply at once to all workspaces on this computer and update all open wi
| --- | --- |
| General | Display language, **File name title**, **Keep line breaks**, **Table formulas**, **Show .runestone folder**, and auto-save |
| Appearance | Color theme, transparency, background image, and custom themes. See [Appearance and custom themes](guides/themes.md). |
| Features | Turn Git on or off. See [Turn features on or off](#turn-features-on-or-off). |
| Plug-ins | Install, enable, update, and remove plugins. See [Install and manage plugins](plugins.md). |
| Browser | Homepage, search engine, profiles, ad blocking, and web data |
### Turn features on or off
Git is a built-in feature with an off switch. Open **Settings → Features** and use the switch beside the feature.
- A feature that is on uses no extra memory until you first use it, for example when you open Source control.
- A feature that is off does not load. Its buttons, commands, and tabs do not show.
- A change applies at once in all windows. The code that a window loaded stays in memory until you restart RuneStone.
After an update, each new built-in feature takes the state of its old plugin package: on when the package was enabled, off when it was disabled.
Without an old package, the feature starts on. Settings → Plug-ins shows an old package as **Included with RuneStone**. You can uninstall it.
### Display language
**Display language** sets the RuneStone controls to English, Français, 日本語, or 简体中文.
It does not translate documents, plugin content, or operating system messages. Some error messages stay in English.
Reopen a document to update its editor tooltips after a language change.