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

Method onMessageReceived

Extension/ui/settings.ts:262–278  ·  view source on GitHub ↗
(e: MessageEvent)

Source from the content-addressed store, hash-verified

260 }
261
262 private onMessageReceived(e: MessageEvent): void {
263 const message: any = e.data; // The json data that the extension sent
264 switch (message.command) {
265 case 'updateConfig':
266 this.updateConfig(message.config);
267 break;
268 case 'updateErrors':
269 this.updateErrors(message.errors);
270 break;
271 case 'setKnownCompilers':
272 this.setKnownCompilers(message.compilers);
273 break;
274 case 'updateConfigSelection':
275 this.updateConfigSelection(message);
276 break;
277 }
278 }
279
280 private updateConfig(config: any): void {
281 this.updating = true;

Callers

nothing calls this directly

Calls 4

updateConfigMethod · 0.95
updateErrorsMethod · 0.95
setKnownCompilersMethod · 0.95
updateConfigSelectionMethod · 0.95

Tested by

no test coverage detected