How to get the logical position of run line marker. Follow
Hi, i am developing a plugin, and there is some trouble that i don't know how to get the logical position(Line of the virtual file navigation) of my 'RunLineMarkerInfo'(it's an icon on the Navigation). Please help.
Please sign in to leave a comment.
thanks for sharing. i have just connected.
You can obtain the associated Element via com.intellij.codeInsight.daemon.LineMarkerInfo#getElement
take its offset and obtain line number via com.intellij.openapi.editor.Document#getLineNumber
See also https://plugins.jetbrains.com/docs/intellij/coordinates-system.html
Yann Cebron Thank you, it truly help me a lot, my problem is solved.