mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[DS-3533] format code
GitOrigin-RevId: 385fc02eff0a4e80a0b74240817dee76df105f74
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fe8b560b3d
commit
321fae15a7
+5
-4
@@ -286,7 +286,8 @@ class NotebookCellInlayManager private constructor(val editor: EditorImpl) {
|
||||
}
|
||||
if (Disposer.isDisposed(inlay)) {
|
||||
disposable.dispose()
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
Disposer.register(inlay, disposable)
|
||||
}
|
||||
}
|
||||
@@ -333,7 +334,7 @@ class NotebookCellInlayManager private constructor(val editor: EditorImpl) {
|
||||
textAttributesForHighlighter(),
|
||||
HighlighterTargetArea.LINES_IN_RANGE
|
||||
)
|
||||
highlighter.customRenderer = NotebookCellHighlighterRenderer
|
||||
highlighter.customRenderer = NotebookCellHighlighterRenderer
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -406,7 +407,7 @@ private object NotebookCellHighlighterRenderer : CustomHighlighterRenderer {
|
||||
private class UpdateInlaysTask(private val manager: NotebookCellInlayManager,
|
||||
pointers: Collection<NotebookIntervalPointer>? = null,
|
||||
private var updateAll: Boolean = false) : Update(Any()) {
|
||||
private val pointersSet = pointers?.let{ SmartHashSet(pointers) } ?: SmartHashSet()
|
||||
private val pointersSet = pointers?.let { SmartHashSet(pointers) } ?: SmartHashSet()
|
||||
|
||||
override fun run() {
|
||||
if (updateAll) {
|
||||
@@ -414,7 +415,7 @@ private class UpdateInlaysTask(private val manager: NotebookCellInlayManager,
|
||||
return
|
||||
}
|
||||
|
||||
val linesList = pointersSet.mapNotNullTo(mutableListOf()){ it.get()?.lines }
|
||||
val linesList = pointersSet.mapNotNullTo(mutableListOf()) { it.get()?.lines }
|
||||
linesList.sortBy { it.first }
|
||||
linesList.mergeAndJoinIntersections(listOf())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user