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

Method updateContribute

contextKeyExpr/src/contributes.ts:36–39  ·  view source on GitHub ↗
({ name, contextOptions }: { name: string, contextOptions: IContextOptions })

Source from the content-addressed store, hash-verified

34
35 // 根据最新局部作用域,更新配置项
36 public updateContribute({ name, contextOptions }: { name: string, contextOptions: IContextOptions }) {
37 this._updateContexts({ name, contextOptions });
38 return this.getContribute(name);
39 }
40
41 // 更新局部作用域
42 private _updateContexts({ name, contextOptions }: { name: string, contextOptions: IContextOptions }) {

Callers 1

renderUpdateButtonFunction · 0.80

Calls 2

_updateContextsMethod · 0.95
getContributeMethod · 0.95

Tested by

no test coverage detected