Behaviour SwRS-MDOKFSTUDIO-FMSCHEMA-027
Schema edits are picked up on the next analysis
When a schema file or a file it refers to changes content, the extension SHALL use the new content at the next analysis, comparing content rather than modification time, without refreshing an open preview by itself.
Step 3 of path 1 in StRS-MDOKFSTUDIO-FMSCHEMA-006: from “The schema is loaded” to “The next analysis uses the new content of the schema”.
Scenarios 4
The situations the tests check; open one to read it.
nominalEdited schema
Givena document analysed once against a schema, then the schema file edited
Whenthe document is analysed again
Thenthe new schema content is applied and the old compiled validator is released
boundaryReverted and deleted
| Input | Outcome |
|---|---|
| a schema edited and then restored to its previous text | the restored text is reused without error |
| a schema deleted | the no-schema info row is shown |
refusalNo refresh by itself
Givena preview open on a typed document and its schema edited and saved
Whennothing else happens
Thenthe table still shows the previous validation result
nominalDocument edited afterwards
Giventhe same preview after any edit of the document
Whenthe frontmatter is re-analysed
Thenthe table reflects the edited schema
Implemented in 1
Tested by 2
Known limits (1)
- a schema author must touch the document or refresh the preview to see the effect of a schema edit.
Replaces
SwRS-MDOKFSTUDIO-FMSCHEMA-028Editing a schema does not refresh open previews by itself superseded superseded by SwRS-MDOKFSTUDIO-FMSCHEMA-027 Markdown file