Validation plugin fix

This commit is contained in:
Brahim Hadriche committed 2026-10-14 13:54:37 -04:00
1 parent 4c1739ab02
commit 511bcbffdf
2 files changed
+11 -8

No files matched your search

+5 -3
View File
@@ -4,6 +4,7 @@
import {
BscFile,
CompilerPlugin,
DiagnosticSeverity,
OnFileValidateEvent,
Program,
Range,
@@ -65,12 +66,13 @@ export class ValidationPlugin implements CompilerPlugin {
continue;
}
file.diagnostics.push({
file.addDiagnostics([{
code: validation.code,
message: validation.message,
file: file,
range: Range.create(line, column, line, column + match[0].length)
});
range: Range.create(line, column, line, column + match[0].length),
severity: DiagnosticSeverity.Error
}]);
}
});
}