Scratch: prohobit closing scratch output content (KT-29642)

^KT-29642 Fixed
This commit is contained in:
Natalia Selezneva
2019-04-10 14:22:04 +03:00
parent 3eda40394a
commit 0c2e9f4d9a
@@ -130,7 +130,7 @@ private object ToolWindowScratchOutputHandler : ScratchOutputHandlerAdapter() {
private fun createToolWindow(file: ScratchFile): ToolWindow {
val project = file.project
val toolWindowManager = ToolWindowManager.getInstance(project)
toolWindowManager.registerToolWindow(ScratchToolWindowFactory.ID, true, ToolWindowAnchor.BOTTOM)
toolWindowManager.registerToolWindow(ScratchToolWindowFactory.ID, false, ToolWindowAnchor.BOTTOM)
val window = toolWindowManager.getToolWindow(ScratchToolWindowFactory.ID)
ScratchToolWindowFactory().createToolWindowContent(project, window)