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)):'';
switch(marker.raw.severity){
caseMarkerSeverity.Error:
returnmarker.source?nls.localize('problems.tree.aria.label.error.marker',"Error generated by {0}: {1} at line {2} and character {3}",marker.source,marker.message,marker.startLineNumber,marker.startColumn)
:nls.localize('problems.tree.aria.label.error.marker.nosource',"Error: {0} at line {1} and character {2}",marker.message,marker.startLineNumber,marker.startColumn);
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)
:nls.localize('problems.tree.aria.label.error.marker.nosource',"Error: {0} at line {1} and character {2}.{3}",marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage);
caseMarkerSeverity.Warning:
returnmarker.source?nls.localize('problems.tree.aria.label.warning.marker',"Warning generated by {0}: {1} at line {2} and character {3}",marker.source,marker.message,marker.startLineNumber,marker.startColumn)
:nls.localize('problems.tree.aria.label.warning.marker.nosource',"Warning: {0} at line {1} and character {2}",marker.message,marker.startLineNumber,marker.startColumn);
returnmarker.raw.source?nls.localize('problems.tree.aria.label.warning.marker',"Warning generated by {0}: {1} at line {2} and character {3}.{4}",marker.raw.source,marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage)
:nls.localize('problems.tree.aria.label.warning.marker.nosource',"Warning: {0} at line {1} and character {2}.{3}",marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage,relatedInformationMessage);
caseMarkerSeverity.Info:
returnmarker.source?nls.localize('problems.tree.aria.label.info.marker',"Info generated by {0}: {1} at line {2} and character {3}",marker.source,marker.message,marker.startLineNumber,marker.startColumn)
:nls.localize('problems.tree.aria.label.info.marker.nosource',"Info: {0} at line {1} and character {2}",marker.message,marker.startLineNumber,marker.startColumn);
returnmarker.raw.source?nls.localize('problems.tree.aria.label.info.marker',"Info generated by {0}: {1} at line {2} and character {3}.{4}",marker.raw.source,marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage)
:nls.localize('problems.tree.aria.label.info.marker.nosource',"Info: {0} at line {1} and character {2}.{3}",marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage);
default:
returnmarker.source?nls.localize('problems.tree.aria.label.marker',"Problem generated by {0}: {1} at line {2} and character {3}",marker.source,marker.message,marker.startLineNumber,marker.startColumn)
:nls.localize('problems.tree.aria.label.marker.nosource',"Problem: {0} at line {1} and character {2}",marker.message,marker.startLineNumber,marker.startColumn);
returnmarker.raw.source?nls.localize('problems.tree.aria.label.marker',"Problem generated by {0}: {1} at line {2} and character {3}.{4}",marker.raw.source,marker.raw.message,marker.raw.startLineNumber,marker.raw.startColumn,relatedInformationMessage)
: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);
publicstaticSHOW_ERRORS_WARNINGS_ACTION_LABEL:string=nls.localize('errors.warnings.show.label',"Show Errors and Warnings");