File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
src/main/kotlin/com/coder/toolbox Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ class CoderRemoteEnvironment(
177177 while (context.cs.isActive && workspaceStillExists) {
178178 if (wsRawStatus == WorkspaceAndAgentStatus .DELETING || wsRawStatus == WorkspaceAndAgentStatus .DELETED ) {
179179 workspaceStillExists = false
180- context.envPageManager.showPluginEnvironmentsPage( true )
180+ context.envPageManager.showMainPageWithUrlVisible( )
181181 } else {
182182 delay(1 .seconds)
183183 }
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ class CoderRemoteProvider(
288288 * than using multiple root pages.
289289 */
290290 private fun goToEnvironmentsPage () {
291- context.envPageManager.showPluginEnvironmentsPage( true )
291+ context.envPageManager.showMainPageWithUrlVisible( )
292292 }
293293
294294 /* *
Original file line number Diff line number Diff line change 1+ package com.coder.toolbox
2+
3+ import com.jetbrains.toolbox.api.remoteDev.ui.EnvironmentUiPageManager
4+
5+ fun EnvironmentUiPageManager.showMainPageWithUrlVisible () {
6+ showPluginEnvironmentsPage(true )
7+ }
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import com.coder.toolbox.sdk.CoderRestClient
99import com.coder.toolbox.sdk.v2.models.Workspace
1010import com.coder.toolbox.sdk.v2.models.WorkspaceAgent
1111import com.coder.toolbox.sdk.v2.models.WorkspaceStatus
12+ import com.coder.toolbox.showMainPageWithUrlVisible
1213import com.jetbrains.toolbox.api.localization.LocalizableString
1314import kotlinx.coroutines.TimeoutCancellationException
1415import kotlinx.coroutines.delay
@@ -322,7 +323,7 @@ private suspend fun CoderToolboxContext.showInfoPopup(
322323
323324private fun CoderToolboxContext.popupPluginMainPage () {
324325 this .ui.showWindow()
325- this .envPageManager.showPluginEnvironmentsPage( true )
326+ this .envPageManager.showMainPageWithUrlVisible( )
326327}
327328
328329/* *
You can’t perform that action at this time.
0 commit comments