Scratch: do not clear inlays in onStart
This is needed for sequential executor
This commit is contained in:
@@ -34,6 +34,7 @@ class KtCompilingExecutor(file: ScratchFile) : ScratchExecutor(file) {
|
|||||||
private var session: KtScratchExecutionSession? = null
|
private var session: KtScratchExecutionSession? = null
|
||||||
|
|
||||||
override fun execute() {
|
override fun execute() {
|
||||||
|
handler.clear(file)
|
||||||
handler.onStart(file)
|
handler.onStart(file)
|
||||||
|
|
||||||
session = KtScratchExecutionSession(file, this)
|
session = KtScratchExecutionSession(file, this)
|
||||||
|
|||||||
-1
@@ -29,7 +29,6 @@ object InlayScratchOutputHandler : ScratchOutputHandler {
|
|||||||
private const val minSpaceCount = 4
|
private const val minSpaceCount = 4
|
||||||
|
|
||||||
override fun onStart(file: ScratchFile) {
|
override fun onStart(file: ScratchFile) {
|
||||||
clear(file)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun handle(file: ScratchFile, expression: ScratchExpression, output: ScratchOutput) {
|
override fun handle(file: ScratchFile, expression: ScratchExpression, output: ScratchOutput) {
|
||||||
|
|||||||
Reference in New Issue
Block a user