mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
[debugger] Fix invalid line number
It seems there was an error because PSI files count niles from zero, but jdi.Location counts it from one. GitOrigin-RevId: b6c4fa4a291ed869402682500af3c53b68e28da0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2b3ece365f
commit
4612d8a5e6
@@ -242,7 +242,7 @@ class KotlinPositionManager(private val debugProcess: DebugProcess) : MultiReque
|
||||
}
|
||||
|
||||
private fun Location.hasFinallyBlockInParent(psiFile: PsiFile): Boolean {
|
||||
val elementAt = psiFile.getLineStartOffset(lineNumber())?.let { psiFile.findElementAt(it) }
|
||||
val elementAt = psiFile.getLineStartOffset(getZeroBasedLineNumber())?.let { psiFile.findElementAt(it) }
|
||||
return elementAt?.parentOfType<KtFinallySection>() != null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user