(message: any)
| 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; |
no test coverage detected