mirror of
https://github.com/feigeCode/navop.git
synced 2026-11-06 08:07:31 +00:00
宿主已经没有 gpui-shell 那条渲染路径了,再接受这个门只会让扩展以为
自己能跑:清单声明 `engines.gpui_shell` 就能注册成功,打开页面却装载
失败。现在 shellView 只认 `engines.nsh`,缺了就在清单校验阶段报
`/engines/nsh`。
连带删掉 `RegisteredShellViewContribution::required_gpui_shell_version`
与 `GPUI_SHELL_VERSION` 常量;docs 里的 reference 扩展(elasticsearch)
改成声明 `engines.nsh: "0.3.0"`。
另外修 `navop.dev.openView` 的入参优先级:它认扩展 id,其余 dev 操作认
项目根路径,之前一律先读 `root`,页面按 `{extensionId, viewId}` 传会拿到
`view not found: <root>/<viewId>`。
验证:`cargo test -p extension-runtime` 234 passed(唯一失败是既有的
wasm fixture 未构建,基线同样失败);`cargo test -p universal-plugins
--features nsh-host` 39 passed;`cargo check -p navop_app` 通过。