MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / getContribute

Method getContribute

contextKeyExpr/src/contributes.ts:27–33  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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 }) {

Callers 3

updateContributeMethod · 0.95
renderToolbarFunction · 0.80
renderSheetbarFunction · 0.80

Calls 3

_cloneContributeMethod · 0.95
_iterateContributeMethod · 0.95
getValueMethod · 0.65

Tested by

no test coverage detected