提交 6857affc 编写于 作者: S Sandeep Somavarapu

fix typo

上级 078c3c18
......@@ -248,12 +248,12 @@ export class MarkerService implements IMarkerService {
errors: errors,
warnings: warnings,
infos: infos,
unknwons: unknwons
unknowns: unknwons
};
}
private _emptyStats(): MarkerStatistics {
return { errors: 0, warnings: 0, infos: 0, unknwons: 0 };
return { errors: 0, warnings: 0, infos: 0, unknowns: 0 };
}
private _updateStatsPlus(toAdd: MarkerStatistics): void;
......@@ -266,7 +266,7 @@ export class MarkerService implements IMarkerService {
toUpdate.errors += toAdd.errors;
toUpdate.warnings += toAdd.warnings;
toUpdate.infos += toAdd.infos;
toUpdate.unknwons += toAdd.unknwons;
toUpdate.unknowns += toAdd.unknowns;
}
private _updateStatsMinus(toSubtract: MarkerStatistics): void;
......@@ -279,7 +279,7 @@ export class MarkerService implements IMarkerService {
toUpdate.errors -= toSubtract.errors;
toUpdate.warnings -= toSubtract.warnings;
toUpdate.infos -= toSubtract.infos;
toUpdate.unknwons -= toSubtract.unknwons;
toUpdate.unknowns -= toSubtract.unknowns;
}
private _updateStatsMarker(toUpdate: MarkerStatistics, marker: IMarkerData): void {
......@@ -294,7 +294,7 @@ export class MarkerService implements IMarkerService {
toUpdate.infos++;
break;
default:
toUpdate.unknwons++;
toUpdate.unknowns++;
break;
}
}
......
......@@ -68,5 +68,5 @@ export interface MarkerStatistics {
errors: number;
warnings: number;
infos: number;
unknwons: number;
unknowns: number;
}
......@@ -263,7 +263,7 @@ export class MarkersModel {
return;
}
});
return {errors: errors, warnings: warnings, infos: infos, unknwons: unknowns};
return {errors, warnings, infos, unknowns};
}
public dispose() : void {
......@@ -294,7 +294,7 @@ export class MarkersModel {
if (!onlyErrors) {
label= this.getLabel(label, markerStatistics.warnings, Messages.MARKERS_PANEL_SINGLE_WARNING_LABEL, Messages.MARKERS_PANEL_MULTIPLE_WARNINGS_LABEL);
label= this.getLabel(label, markerStatistics.infos, Messages.MARKERS_PANEL_SINGLE_INFO_LABEL, Messages.MARKERS_PANEL_MULTIPLE_INFOS_LABEL);
label= this.getLabel(label, markerStatistics.unknwons, Messages.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL, Messages.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL);
label= this.getLabel(label, markerStatistics.unknowns, Messages.MARKERS_PANEL_SINGLE_UNKNOWN_LABEL, Messages.MARKERS_PANEL_MULTIPLE_UNKNOWNS_LABEL);
}
return label;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册