(name: string)
| 25 | } |
| 26 | |
| 27 | public getContribute(name: string) { |
| 28 | // 获取缓存的配置并进行深拷贝 |
| 29 | const contributes = this._cloneContribute(this._config.getValue(name)); |
| 30 | // 遍历并解析整个 JSON 中的所有 when 属性 |
| 31 | this._iterateContribute(contributes, this._contexts.getValue(name)); |
| 32 | return contributes; |
| 33 | } |
| 34 | |
| 35 | // 根据最新局部作用域,更新配置项 |
| 36 | public updateContribute({ name, contextOptions }: { name: string, contextOptions: IContextOptions }) { |
no test coverage detected