@@ -157,8 +157,7 @@ open class CoderProtocolHandler(
157157 reInitialize(restClient, cli)
158158
159159 val environmentId = " ${workspace.name} .${agent.name} "
160- context.ui.showWindow()
161- context.envPageManager.showPluginEnvironmentsPage(true )
160+ context.popupPluginMainPage()
162161 context.envPageManager.showEnvironmentPage(environmentId, false )
163162 val productCode = params.ideProductCode()
164163 val buildNumber = params.ideBuildNumber()
@@ -193,8 +192,7 @@ open class CoderProtocolHandler(
193192 }
194193
195194 private suspend fun askUrl (): String? {
196- context.ui.showWindow()
197- context.envPageManager.showPluginEnvironmentsPage(false )
195+ context.popupPluginMainPage()
198196 return dialogUi.ask(
199197 context.i18n.ptrl(" Deployment URL" ),
200198 context.i18n.ptrl(" Enter the full URL of your Coder deployment" )
@@ -216,8 +214,7 @@ open class CoderProtocolHandler(
216214 if (! tryToken.isNullOrBlank()) {
217215 tryToken
218216 } else {
219- context.ui.showWindow()
220- context.envPageManager.showPluginEnvironmentsPage(false )
217+ context.popupPluginMainPage()
221218 // Otherwise ask for a new token, showing the previous token.
222219 dialogUi.askToken(deploymentURL.toURL())
223220 }
0 commit comments