mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
IFT-595 Fix onboarding lesson stuck on the run step
There is now dedicated `editor` property in the `EditorGutterComponentEx`. DataProvider approach is no more working. GitOrigin-RevId: 81586804deba872d026f6e2ef63678633dab0ca5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
47c73c2c02
commit
492dfd9c04
@@ -279,7 +279,7 @@ object LessonUtil {
|
||||
) {
|
||||
task {
|
||||
triggerAndBorderHighlight().componentPart l@{ ui: EditorGutterComponentEx ->
|
||||
if (CommonDataKeys.EDITOR.getData(ui as DataProvider) != editor) return@l null
|
||||
if (ui.editor != editor) return@l null
|
||||
val y = editor.visualLineToY(editor.logicalToVisualPosition(logicalPosition()).line)
|
||||
val range = xRange(ui.width)
|
||||
return@l Rectangle(range.first, y, range.last - range.first + 1, editor.lineHeight)
|
||||
|
||||
Reference in New Issue
Block a user