KT-1256 Error highlighting in IDE should be less annoying

#KT-1256 fixed
This commit is contained in:
Svetlana Isakova
2012-05-22 18:23:43 +04:00
parent 6a24d0cf6d
commit b63d3905f9
50 changed files with 382 additions and 338 deletions
@@ -75,6 +75,7 @@ public final class AnalyzerWithCompilerReport {
}
private void reportDiagnostic(@NotNull Diagnostic diagnostic) {
if (!diagnostic.isValid()) return;
DiagnosticUtils.LineAndColumn lineAndColumn = DiagnosticUtils.getLineAndColumn(diagnostic);
VirtualFile virtualFile = diagnostic.getPsiFile().getVirtualFile();
String path = virtualFile == null ? null : virtualFile.getPath();