Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-LIFE-001

The extension activates only on its own entry points

When VS Code loads the extension manifest, the extension SHALL declare VS Code 1.95 as its lowest supported version and as its only activation events the two Studio commands, the Studio Open With editor, the Studio preview panel serializer and the Markdown language, and start only its registrations and the restore of the editor association at activation, leaving the preview engine, the watchers and the diagnostics to the first Studio preview, and contribute no command whose identifier starts with markdown. and no language and no grammar, so that the built-in Markdown support is neither activated nor replaced, and declare that it supports the VS Code Agents window, so that VS Code enables it there without a user setting.

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

Scenarios 5

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

nominalA Studio command runs
GivenVS Code started and no Studio entry point used yet
Whenthe reader runs Open Preview to Side from the Command Palette
Thenthe extension activates and the command runs
boundaryA Markdown file alone
GivenVS Code started with a Markdown file open in a text editor and no Studio entry point used
Whenthe reader only reads and edits the file
Thenthe extension activates through onLanguage:markdown but starts no service: no engine warm-up, no stem-root or conf.py watcher and no diagnostics until the first Studio preview (host test "an activation with no preview starts no service, the first preview starts them once, a second one does not again"); package.json lists the five activation events, onLanguage:markdown is the only language event and there is no workspaceContains event
boundaryManifest contract
InputOutcome
engines field of the manifestengines.vscode is ^1.95.0
a VS Code older than 1.95, a reader tries to install the extensionVS Code refuses the install because the engine range is not met (deduced from VS Code behaviour, not run)
contributes section serializedno markdown. identifier among the contributed commands (unit test "contributes only opt-in Markdown OKF-Schema Studio commands")
built-in Markdown extension, its commands readthe Studio command id is not among them (integration test test/integration/stockCoexistence.test.ts)
contributes section readno languages key and no grammars key (unit test "contributes only opt-in Markdown OKF-Schema Studio commands")
the Studio installed beside the built-in Markdown extensionthe built-in Markdown language and grammar are untouched, because the Studio contributes none
nominalStudio in the Agents window
Giventhe packaged extension installed in VS Code, and no user setting about the Agents window
Whenthe reader opens the Agents window (the companion window for agent sessions)
ThenVS Code enables the extension there, because `capabilities.agentsWindow.supported` in package.json is true, and Open With offers Markdown OKF-Schema Studio for a Markdown file
boundaryWhat VS Code reads
InputOutcome
capabilities.agentsWindow.supported in package.jsontrue
A manifest without the declaration, or with another valueThe check fails (VS Code then disables the installed extension in the Agents window unless the user lists it in the extensions.supportAgentsWindow setting)
The extension loaded from a development pathNot a test of the declaration: VS Code enables a development extension in the Agents window either way

Implemented in 2

Tested by 5

Replaces

SwRS-MDOKFSTUDIO-LIFE-171The manifest declares Agents window support superseded superseded by SwRS-MDOKFSTUDIO-LIFE-001 Markdown file