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:
+1
-5
@@ -6,7 +6,7 @@
|
||||
// After the parallel run, the runner runs each failed test again, one at a time (--retries, default 1).
|
||||
// A test that passes on a retry counts as "flaky". The summary lists it, but the run does not fail.
|
||||
// A test declares what it needs on a line near the top:
|
||||
// // @requires plugin:terminal plugin:table-formulas repo:RuneStone_Git/dist electron
|
||||
// // @requires plugin:terminal repo:RuneStone_Git/dist electron
|
||||
// The runner skips a test, with the reason, when a requirement is missing.
|
||||
// A test that fails because of a known app defect states it near the top:
|
||||
// // @known-issue <the defect>
|
||||
@@ -68,10 +68,6 @@ function missing(requirement) {
|
||||
const dist = env.RUNESTONE_TERMINAL_DIST || path.join(pluginRepos, "RuneStone_Terminal", "dist");
|
||||
return existsSync(path.join(dist, "main.js")) ? null : `the Terminal plugin is not built at ${dist}`;
|
||||
}
|
||||
if (kind === "plugin") {
|
||||
const entry = path.join(root, "plugin-packages", value, "main.js");
|
||||
return existsSync(entry) ? null : `plugin-packages/${value} is missing; run pnpm build:plugins`;
|
||||
}
|
||||
if (kind === "repo") {
|
||||
const target = path.join(pluginRepos, value);
|
||||
return existsSync(target) ? null : `${target} is missing; set RUNESTONE_PLUGIN_REPOS to the folder of the plugin checkouts`;
|
||||
|
||||
Reference in New Issue
Block a user