Print file name at least in diagnostic

This commit is contained in:
Nikolay Krasko
2012-05-11 15:15:44 +04:00
parent 9cb7cb56f1
commit 39ec3f7c14
@@ -73,7 +73,7 @@ public class DiagnosticUtils {
public static String atLocation(PsiFile file, TextRange textRange, Document document) {
int offset = textRange.getStartOffset();
VirtualFile virtualFile = file.getVirtualFile();
String pathSuffix = virtualFile == null ? "" : " in " + virtualFile.getPath();
String pathSuffix = " in " + (virtualFile == null ? file.getName() : virtualFile.getPath());
return offsetToLineAndColumn(document, offset).toString() + pathSuffix;
}