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

Method updateErrors

Extension/ui/settings.ts:325–341  ·  view source on GitHub ↗
(errors: any)

Source from the content-addressed store, hash-verified

323 }
324
325 private updateErrors(errors: any): void {
326 this.updating = true;
327 try {
328 this.showErrorWithInfo(elementId.configNameInvalid, errors.name);
329 this.showErrorWithInfo(elementId.intelliSenseModeInvalid, errors.intelliSenseMode);
330 this.showErrorWithInfo(elementId.compilerPathInvalid, errors.compilerPath);
331 this.showErrorWithInfo(elementId.includePathInvalid, errors.includePath);
332 this.showErrorWithInfo(elementId.macFrameworkPathInvalid, errors.macFrameworkPath);
333 this.showErrorWithInfo(elementId.forcedIncludeInvalid, errors.forcedInclude);
334 this.showErrorWithInfo(elementId.compileCommandsInvalid, errors.compileCommands);
335 this.showErrorWithInfo(elementId.browsePathInvalid, errors.browsePath);
336 this.showErrorWithInfo(elementId.databaseFilenameInvalid, errors.databaseFilename);
337 this.showErrorWithInfo(elementId.dotConfigInvalid, errors.dotConfig);
338 } finally {
339 this.updating = false;
340 }
341 }
342
343 private showErrorWithInfo(elementID: string, errorInfo: string): void {
344 this.showElement(elementID, errorInfo ? true : false);

Callers 1

onMessageReceivedMethod · 0.95

Calls 1

showErrorWithInfoMethod · 0.95

Tested by

no test coverage detected