this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Imports violates '${restrictions.join(' or ')}' restrictions. See https://github.com/Microsoft/vscode/wiki/Code-Organization`));
this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Imports violates '${restrictions.join(' or ')}' restrictions. See https://github.com/Microsoft/vscode/wiki/Code-Organization`));
this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts`));
this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Not allowed to import vs/nls in standalone editor modules. Use standaloneStrings.ts`));
this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Not allowed to import standalone editor modules. See https://github.com/Microsoft/vscode/wiki/Code-Organization`));
this.addFailure(this.createFailure(node.getStart(),node.getWidth(),`Not allowed to import standalone editor modules. See https://github.com/Microsoft/vscode/wiki/Code-Organization`));
this.addFailure(this.createFailure(occurrence.key.getStart(),occurrence.key.getWidth(),`The key ${occurrence.key.getText()} doesn't conform to a valid localize identifier`));
}
constoccurrences=this.usedKeys[key];
if(occurrences.length>1){
occurrences.forEach(occurrence=>{
this.addFailure((this.createFailure(occurrence.key.getStart(),occurrence.key.getWidth(),`Duplicate key ${occurrence.key.getText()} with different message value.`)));
this.addFailure(this.createFailure(messageArg.getStart(),messageArg.getWidth(),`Message argument to '${callInfo.callExpression.expression.getText()}' must be a string literal.`));
return;
}
}
recordKey(keyNode,messageNode){
consttext=keyNode.getText();
// We have an empty key
if(text.match(/(['"]) *\1/)){
if(messageNode){
this.addFailureAtNode(keyNode,`Key is empty for message: ${messageNode.getText()}`);
this.addFailure(this.createFailure(occurrence.key.getStart(),occurrence.key.getWidth(),`The key ${occurrence.key.getText()} doesn't conform to a valid localize identifier`));
}
constoccurrences=this.usedKeys[key];
if(occurrences.length>1){
occurrences.forEach(occurrence=>{
this.addFailure((this.createFailure(occurrence.key.getStart(),occurrence.key.getWidth(),`Duplicate key ${occurrence.key.getText()} with different message value.`)));
console.error('[translation-remind rule]: File with resources to pull from Transifex was not found. Aborting translation resource check for newly defined workbench part/service.');
console.error('[translation-remind rule]: File with resources to pull from Transifex was not found. Aborting translation resource check for newly defined workbench part/service.');