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:
+2
-5
@@ -142,17 +142,14 @@ The same ID, enable, update, and removal rules apply to local and remote package
|
||||
| `src/lib/plugins/backgrounds.ts` | Background frames |
|
||||
| `src/lib/completion/` | The [completion API](completion.md) |
|
||||
| `scripts/packagePlugin.mjs` | The packager for plugin authors |
|
||||
| `scripts/buildPlugins.mjs` | The [Table Formulas build](plugin-development.md#example-table-formulas) |
|
||||
|
||||
### Run the plugin checks
|
||||
|
||||
Run these commands from the RuneStone repository root.
|
||||
For the general checks, see [Checks](development.md#checks). For the browser setup, see [Browser smoke tests](development.md#browser-smoke-tests).
|
||||
|
||||
Some tests load the compiled feature plugins:
|
||||
|
||||
- `pnpm build:plugins` makes `plugin-packages/table-formulas/`. `tests/unit/plugins/plugins.spec.ts` and the feature smoke tests need it.
|
||||
- The smoke tests read Terminal from `../RuneStone_Terminal/dist/`. To make it without a release ZIP, run `node scripts/build.mjs --no-package` in the Terminal folder. Set `RUNESTONE_TERMINAL_DIST` to use another folder.
|
||||
The feature smoke tests read the compiled Terminal plugin from `../RuneStone_Terminal/dist/`.
|
||||
To make it without a release ZIP, run `node scripts/build.mjs --no-package` in the Terminal folder. Set `RUNESTONE_TERMINAL_DIST` to use another folder.
|
||||
|
||||
Unit tests:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user