@@ -157,8 +157,7 @@ open class CoderProtocolHandler(
157
157
reInitialize(restClient, cli)
158
158
159
159
val environmentId = " ${workspace.name} .${agent.name} "
160
- context.ui.showWindow()
161
- context.envPageManager.showPluginEnvironmentsPage(true )
160
+ context.popupPluginMainPage()
162
161
context.envPageManager.showEnvironmentPage(environmentId, false )
163
162
val productCode = params.ideProductCode()
164
163
val buildNumber = params.ideBuildNumber()
@@ -193,8 +192,7 @@ open class CoderProtocolHandler(
193
192
}
194
193
195
194
private suspend fun askUrl (): String? {
196
- context.ui.showWindow()
197
- context.envPageManager.showPluginEnvironmentsPage(false )
195
+ context.popupPluginMainPage()
198
196
return dialogUi.ask(
199
197
context.i18n.ptrl(" Deployment URL" ),
200
198
context.i18n.ptrl(" Enter the full URL of your Coder deployment" )
@@ -216,8 +214,7 @@ open class CoderProtocolHandler(
216
214
if (! tryToken.isNullOrBlank()) {
217
215
tryToken
218
216
} else {
219
- context.ui.showWindow()
220
- context.envPageManager.showPluginEnvironmentsPage(false )
217
+ context.popupPluginMainPage()
221
218
// Otherwise ask for a new token, showing the previous token.
222
219
dialogUi.askToken(deploymentURL.toURL())
223
220
}
0 commit comments