pub fn platform_named(name: Option<&str>) -> PlatformExpand description
The platform an editor entry point analyses for, from the optional name the JS
side passes (#2102). None keeps the playground’s browser (its programs run
in the page). The VS Code web extension passes "cloudflare", the platform
bynk-lsp analyses a project for (Platform::default()), so a unit that
consumes bynk.cloudflare doesn’t draw bynk.target.vendor_required in
vscode.dev when it checks clean on the desktop. An unrecognised name falls
back to browser, the same as None.