Behaviour SwRS-MDOKFSTUDIO-MYST-078
Extension warnings appear in the Problems view and follow conf.py
When a live preview shows a document with extension warnings in a trusted workspace, the extension SHALL publish them to the Problems view as whole-line warnings from Markdown OKF-Schema Studio with code myst-extension, the line clamped to the document length, replace or remove them when the document re-renders, its preview closes or its document changes, and re-render the open previews a created, edited or deleted conf.py governs.
Step 3 of path 1 in StRS-MDOKFSTUDIO-MYST-007: from “The warnings are listed” to “The warnings are in the Problems view”.
Scenarios 6
The situations the tests check; open one to read it.
nominalA warning becomes a Problems entry
Givena trusted workspace and a warning on line 3
Whenthe preview renders
Thena Problems entry and an underline appear on line 3
boundaryThe line is clamped to the document
Givena warning line beyond the document length
Whenit is published
Thenthe line is clamped
refusalAn untrusted workspace publishes nothing
Givena workspace that is not trusted
Whenthe preview renders a document with extension warnings
Thenno Problems entry is published
nominalEntries are replaced and removed
Givena new render with fewer warnings
Whenit completes
Thenold entries are replaced
| Input | Outcome |
|---|---|
| The preview closes | no entries remain |
| The document changes | its entries are replaced or removed |
nominalA conf.py change updates the previews it governs
Givena conf.py that is created, edited or deleted
Whenthe watcher fires
Thenexactly the open previews it governs re-render without reopening, deferred while a block edit is open, and warnings come or go
refusalA conf.py that governs nothing re-renders nothing
Givena conf.py governing nothing, or an ignored path such as node_modules
Whenthe watcher fires
Thennothing re-renders
Implemented in 2
Tested by 1
- test/integration/mystDiagnostics.test.tsintegration
Replaces
SwRS-MDOKFSTUDIO-MYST-079Problems entries are replaced and removed superseded superseded by SwRS-MDOKFSTUDIO-MYST-078 Markdown file
SwRS-MDOKFSTUDIO-MYST-080conf.py changes update the previews they govern superseded superseded by SwRS-MDOKFSTUDIO-MYST-078 Markdown file