MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / onKnownCompilerSelect

Method onKnownCompilerSelect

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

Source from the content-addressed store, hash-verified

203 }
204
205 private onKnownCompilerSelect(): void {
206 if (this.updating) {
207 return;
208 }
209 const el: HTMLSelectElement = <HTMLSelectElement>document.getElementById(elementId.knownCompilers);
210 (<HTMLInputElement>document.getElementById(elementId.compilerPath)).value = el.value;
211 this.onChanged(elementId.compilerPath);
212
213 // Post message that this control was used for telemetry
214 this.vsCodeApi.postMessage({
215 command: "knownCompilerSelect"
216 });
217 }
218
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.

Callers

nothing calls this directly

Calls 2

onChangedMethod · 0.95
postMessageMethod · 0.80

Tested by

no test coverage detected