Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-LIFE-038

Each preview has its own state and only the newest follows

When several previews are open, the extension SHALL give each its own session with its own document, render queue, file watchers and reading state, and, when VS Code restores several panels, let only the newest follow the active editor, the older ones becoming fixed previews titled with the bare file name.

Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-LIFE-001, in the state “A side preview is open beside the editor”.

Part of StRS-MDOKFSTUDIO-LIFE-014, outside the paths drawn on its map.

Scenarios 4

The situations the tests check; open one to read it.

nominalTwo previews
Givena side preview of a.md and an Open With tab of b.md
Whena.md changes
Thenonly the side preview renders again and only its queue shows a state
nominalSame document twice
Giventhe side preview and an Open With tab both show a.md
Whena.md changes
Thenboth render the new text, each on its own schedule
nominalTwo restored panels
Giventwo saved panels of the same file
WhenVS Code restores both
Thentwo sessions are live, the roles are [fixed, following], and the older title does not start with Studio
boundaryOne restored panel
Givena single restored panel
WhenVS Code restores it
Thenit follows the active editor

Implemented in 2

Tested by 2