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

fix typo

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