Open Hieuzest opened 7 months ago
(以下均为config插件的显示问题,cordis行为没有问题,在开发环境下测试。)
假设A插件依赖B插件导出的服务,那么在插件配置中停用B插件,A插件右侧仍然显示绿灯,查看packages[name].runtime.id仍然有值。(即便事实上已经正确dispose)
注意到 https://github.com/koishijs/webui/blob/7ae9ac859bbc763c043944324cb0181dbc90cb63/plugins/config/client/components/utils.ts#L46-L56 此处排除了插件peerDep的插件所导出的服务。这是出于什么理由?依赖的插件不一定出于启用状态。 假设我有服务插件@foo/core和插件@foo/local,后者peerDep前者且inject前者,那么在后者的配置页面将不会显示服务依赖信息。此时如果服务处于停用状态,从后者的配置页会很难判断原因。
(以下均为config插件的显示问题,cordis行为没有问题,在开发环境下测试。)
假设A插件依赖B插件导出的服务,那么在插件配置中停用B插件,A插件右侧仍然显示绿灯,查看packages[name].runtime.id仍然有值。(即便事实上已经正确dispose)
注意到 https://github.com/koishijs/webui/blob/7ae9ac859bbc763c043944324cb0181dbc90cb63/plugins/config/client/components/utils.ts#L46-L56 此处排除了插件peerDep的插件所导出的服务。这是出于什么理由?依赖的插件不一定出于启用状态。 假设我有服务插件@foo/core和插件@foo/local,后者peerDep前者且inject前者,那么在后者的配置页面将不会显示服务依赖信息。此时如果服务处于停用状态,从后者的配置页会很难判断原因。