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:
Konstantin Hudyakov
2024-08-05 12:45:59 +03:00
committed by intellij-monorepo-bot
parent 47c73c2c02
commit 492dfd9c04

View File

@@ -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)