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

Function renderUpdateButton

contextKeyExpr/src/index.ts:55–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function renderUpdateButton() {
56 const button = document.createElement('button');
57 button.innerHTML = "更改局部作用域,重新配置 toolbar";
58 button.onclick = () => {
59 let lis = document.querySelectorAll('#toolbars li');
60 for (let i = 0; i < lis.length; i++) {
61 lis[i].remove();
62 }
63 Contributes.updateContribute({
64 name: 'toolbar',
65 contextOptions: {
66 'isMore': false,
67 'window.innerWidth': window.innerWidth,
68 }
69 })
70 renderToolbar();
71 };
72 document.body.appendChild(button);
73}
74
75renderToolbar();
76renderSheetbar();

Callers 1

index.tsFile · 0.85

Calls 2

renderToolbarFunction · 0.85
updateContributeMethod · 0.80

Tested by

no test coverage detected