From 02a5a397d1d758266d0ea8f4fe62ff39f81c8223 Mon Sep 17 00:00:00 2001 From: QW3RAT Date: Wed, 17 Jan 2024 21:05:27 +0100 Subject: [PATCH] Added suggestion --- .../pitmutationmate/execution/BasePitestExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/execution/BasePitestExecutor.kt b/pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/execution/BasePitestExecutor.kt index ea7e7600..902d88a2 100644 --- a/pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/execution/BasePitestExecutor.kt +++ b/pitmutationmate/src/main/kotlin/com/amos/pitmutationmate/pitmutationmate/execution/BasePitestExecutor.kt @@ -43,7 +43,7 @@ abstract class BasePitestExecutor { log.debug("BasePitestExecutor: executeTask: processTerminated: event: $event") messagingServer.stopServer() // Stop the UDP server // update tool window with latest result data - val toolWindow: ToolWindow? = ToolWindowManager.getInstance(project).getToolWindow("Pitest") + val toolWindow: ToolWindow? = ToolWindowManager.getInstance(project).getToolWindow(ToolWindowFactory.ID) // safe and get latest pitest results and update report toolWindow with it val coverageReport = project.service().updateLastMutationResult()?.coverageReports?.first() if (toolWindow != null) {