Scratch: do not clear inlays in onStart

This is needed for sequential executor
This commit is contained in:
Natalia Selezneva
2019-05-31 15:58:11 +03:00
parent b5b35a9037
commit 8bc03e54f7
2 changed files with 1 additions and 1 deletions
@@ -34,6 +34,7 @@ class KtCompilingExecutor(file: ScratchFile) : ScratchExecutor(file) {
private var session: KtScratchExecutionSession? = null
override fun execute() {
handler.clear(file)
handler.onStart(file)
session = KtScratchExecutionSession(file, this)
@@ -29,7 +29,6 @@ object InlayScratchOutputHandler : ScratchOutputHandler {
private const val minSpaceCount = 4
override fun onStart(file: ScratchFile) {
clear(file)
}
override fun handle(file: ScratchFile, expression: ScratchExpression, output: ScratchOutput) {