diff --git a/src/ui/cacheView.ts b/src/ui/cacheView.ts index 92567f65d..f977bdb39 100644 --- a/src/ui/cacheView.ts +++ b/src/ui/cacheView.ts @@ -466,6 +466,9 @@ export class ConfigurationWebview { updateCheckboxState(checkbox); checkbox.onclick = () => toggleKey(checkbox); }); + document.querySelectorAll('.cmake-input-select').forEach(sel => { + sel.oninput = () => edit(sel); + }); document.querySelectorAll('.cmake-input-text').forEach(editbox => { validateInput(editbox) editbox.oninput = () => edit(editbox); @@ -513,12 +516,14 @@ export class ConfigurationWebview { } else { const hasChoices = option.choices.length > 0; if (hasChoices) { - editControls = ` - ${option.choices.map(ch => ``; + editControls = ``; + } else { + editControls = ``; } - editControls += ``; } return `