publicstaticreadonlyMARKERS_TREE_ARIA_LABEL_RESOURCE=(fileName:string,noOfProblems:number):string=>{returnnls.localize('problems.tree.aria.label.resource',"{0} with {1} problems",fileName,noOfProblems);};
constrelatedInformationMessage=marker.resourceRelatedInformation.length?nls.localize('problems.tree.aria.label.marker.relatedInformation'," This problem has references to {0} locations.",marker.resourceRelatedInformation.reduce((count,r)=>count+r.count,0)):'';
constrelatedInformationMessage=marker.resourceRelatedInformation.length?nls.localize('problems.tree.aria.label.marker.relatedInformation'," This problem has references to {0} locations.",marker.resourceRelatedInformation.length):'';
switch(marker.raw.severity){
caseMarkerSeverity.Error:
returnmarker.raw.source?nls.localize('problems.tree.aria.label.error.marker',"Error generated by {0}: {1} at line {2} and character {3}.{4}",marker.raw.source,marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage)
...
...
@@ -59,6 +60,6 @@ export default class Messages {
:nls.localize('problems.tree.aria.label.marker.nosource',"Problem: {0} at line {1} and character {2}.{3}",marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage);
}
}
publicstaticreadonlyMARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION=(relatedInformation:IRelatedInformation):string=>nls.localize('problems.tree.aria.label.relatedinfo.message',"{0} at line {1} and character {2}",relatedInformation.message,relatedInformation.startLineNumber,relatedInformation.startColumn);
publicstaticreadonlyMARKERS_TREE_ARIA_LABEL_RELATED_INFORMATION=(relatedInformation:IRelatedInformation):string=>nls.localize('problems.tree.aria.label.relatedinfo.message',"{0} at line {1} and character {2} in {3}",relatedInformation.message,relatedInformation.startLineNumber,relatedInformation.startColumn,paths.basename(relatedInformation.resource.fsPath));
publicstaticSHOW_ERRORS_WARNINGS_ACTION_LABEL:string=nls.localize('errors.warnings.show.label',"Show Errors and Warnings");