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

Method updateConfigSelection

Extension/ui/settings.ts:349–369  ·  view source on GitHub ↗
(message: any)

Source from the content-addressed store, hash-verified

347 }
348
349 private updateConfigSelection(message: any): void {
350 this.updating = true;
351 try {
352 const list: HTMLSelectElement = <HTMLSelectElement>document.getElementById(elementId.configSelection);
353
354 // Clear list before updating
355 list.options.length = 0;
356
357 // Update list
358 for (const name of message.selections) {
359 const option: HTMLOptionElement = document.createElement("option");
360 option.text = name;
361 option.value = name;
362 list.append(option);
363 }
364
365 list.selectedIndex = message.selectedIndex;
366 } finally {
367 this.updating = false;
368 }
369 }
370
371 private setKnownCompilers(compilers: string[]): void {
372 this.updating = true;

Callers 1

onMessageReceivedMethod · 0.95

Calls 1

appendMethod · 0.65

Tested by

no test coverage detected