mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
only apply breakpoint isInScope() check to those classes that resolve to source content files. Disable scope check (and thus allow breakpoint requests) if there is at least one class found in library classes (IDEA-109283)
This commit is contained in:
@@ -277,12 +277,14 @@ public class LineBreakpoint extends BreakpointWithHighlighter {
|
||||
LOG.debug(msg.toString());
|
||||
}
|
||||
|
||||
if (psiFile != null) {
|
||||
final VirtualFile vFile = psiFile.getVirtualFile();
|
||||
if (vFile != null && fileIndex.isInSourceContent(vFile)) {
|
||||
list.add(vFile);
|
||||
}
|
||||
if (psiFile == null) {
|
||||
return null;
|
||||
}
|
||||
final VirtualFile vFile = psiFile.getVirtualFile();
|
||||
if (vFile == null || !fileIndex.isInSourceContent(vFile)) {
|
||||
return null; // this will switch off the check if at least one class is from libraries
|
||||
}
|
||||
list.add(vFile);
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user