Make Table Formulas a built-in feature

The formula engine, the rendered results, and the formula help now
come from src/lib/formulas/. The editor and the renderer call this
module directly. The tableFormulas contribution type is removed.

- Add the tableFormulas general setting (default on) and a switch in
  Settings > General. When it is off, formulas show as source text.
- Do not load an installed runestone.table-formulas package. Settings
  > Plug-ins marks it as included with RuneStone and tells the user
  that it can be removed. The user's files stay in place.
- Translate the formula help and the error descriptions into French,
  Japanese, and Simplified Chinese.
- Port the plugin unit tests. Test the setting and use a test-only
  contribution for the generic plugin lifecycle tests.
- Smoke tests load only Terminal. The formula and lifecycle tests use
  the built-in feature and its setting.
- Remove scripts/buildPlugins.mjs, the build:plugins script, and the
  plugin-packages requirement of the smoke runner.
- Remove RuneStone_Table_Formulas from the menu audit scope. It had no
  menu surfaces.
- Update the README, the user guides, and the developer references.
This commit is contained in:
Knotty Wyvern
2026-10-28 01:05:43 -07:00
parent 72671e5d01
commit 5e1533c371
43 changed files with 580 additions and 198 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
This guide explains how to install, enable, update, and remove optional plugins such as Terminal, Git, and PDF Viewer.
Manage all plugins in **Settings → Plug-ins**. The built-in browser is part of RuneStone and is not a plugin.
Manage all plugins in **Settings → Plug-ins**. The built-in browser and table formulas are part of RuneStone and are not plugins.
Plugins run with the full access of RuneStone, including your files. There is no permission sandbox, and the author field does not prove who published the plugin. Enable only code that you trust.
@@ -50,7 +50,7 @@ If the dialog contains an update, it shows only **Apply packages**. New plugins
4. Choose **Uninstall and delete files**.
RuneStone stops the plugin in every window, then deletes its installed folder.
It keeps your downloaded ZIP, the plugin settings, and your workspace documents. For example, Table Formulas leaves the formula text in your Markdown files.
It keeps your downloaded ZIP, the plugin settings, and your workspace documents.
If you install the plugin again, it can use the kept settings. You choose again whether to enable it.
**Cancel** changes nothing. **Disable instead** stops the plugin and keeps it installed.
@@ -76,7 +76,6 @@ RuneStone uses the token for this request only and does not save it.
| Plugin | Guide |
| --- | --- |
| Terminal | [Terminal guide](guides/terminal.md) |
| Table Formulas | [Calculate with Table Formulas](guides/document-tools.md#calculate-with-table-formulas) |
| Git | [Git usage](https://git.knottywyvern.com/kwyvern/RuneStone_Git/src/branch/main/docs/usage.md) |
| Project Management | [Project Management guide](https://git.knottywyvern.com/kwyvern/RuneStone_PM/src/branch/main/project-management.md) |
| Background Slideshow | [Background Slideshow usage](https://git.knottywyvern.com/kwyvern/RuneStone_BG_Slideshow/src/branch/main/docs/usage.md) |
@@ -96,6 +95,7 @@ RuneStone uses the token for this request only and does not save it.
| The plugin shows **Removal incomplete** | Choose **Retry cleanup** to finish the removal. If the error names changed files, check that path first. |
| A Gitea release has no usable package | Check the release tag. Ask the publisher for a release with one attached plugin ZIP. |
| An old Browser plugin shows in the list | Uninstall it. The built-in browser keeps your profiles and bookmarks. |
| An old Table Formulas plugin shows in the list | Uninstall it. RuneStone does not run it. Your formulas stay in your files. See [Calculate with table formulas](guides/document-tools.md#calculate-with-table-formulas). |
To see the installed files of a plugin, choose **Show files** beside it. **Open plugins folder** opens the folder for all plugins.
When you report a plugin problem, include the plugin name and version, the RuneStone version, and the error text.