MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / fixKnownCompilerSelection

Method fixKnownCompilerSelection

Extension/ui/settings.ts:221–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 // To enable custom entries, the compiler path control is a text box on top of a select control.
220 // This function ensures that the select control is updated when the text box is changed.
221 private fixKnownCompilerSelection(): void {
222 const compilerPath = (<HTMLInputElement>document.getElementById(elementId.compilerPath)).value.toLowerCase();
223 const knownCompilers = <HTMLSelectElement>document.getElementById(elementId.knownCompilers);
224 for (let n = 0; n < knownCompilers.options.length; n++) {
225 if (compilerPath === knownCompilers.options[n].value.toLowerCase()) {
226 knownCompilers.value = knownCompilers.options[n].value;
227 return;
228 }
229 }
230 knownCompilers.value = '';
231 }
232
233 private onChangedCheckbox(id: string): void {
234 if (this.updating) {

Callers 2

onChangedMethod · 0.95
updateConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected