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

Method onChanged

Extension/ui/settings.ts:246–260  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

244 }
245
246 private onChanged(id: string): void {
247 if (this.updating) {
248 return;
249 }
250
251 const el: HTMLInputElement = <HTMLInputElement>document.getElementById(id);
252 if (id === elementId.compilerPath) {
253 this.fixKnownCompilerSelection();
254 }
255 this.vsCodeApi.postMessage({
256 command: "change",
257 key: id,
258 value: el.value
259 });
260 }
261
262 private onMessageReceived(e: MessageEvent): void {
263 const message: any = e.data; // The json data that the extension sent

Callers 2

onConfigNameChangedMethod · 0.95
onKnownCompilerSelectMethod · 0.95

Calls 2

postMessageMethod · 0.80

Tested by

no test coverage detected