Skip to content

Commit 1a9dc8c

Browse files
committed
impl: show busy indicator earlier during URI parsing
A short 2–3 second delay occurs while initializing the REST client, resolving the CLI, and generating the SSH config—during this time, there was no visual feedback indicating activity.
1 parent 759af74 commit 1a9dc8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/com/coder/toolbox/util/CoderProtocolHandler.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ open class CoderProtocolHandler(
5454
context.logAndShowInfo("URI will not be handled", "No query parameters were provided")
5555
return
5656
}
57-
5857
// this switches to the main plugin screen, even
5958
// if last opened provider was not Coder
6059
context.envPageManager.showPluginEnvironmentsPage()
60+
markAsBusy()
6161
if (shouldWaitForAutoLogin) {
6262
isInitialized.waitForTrue()
6363
}
@@ -73,7 +73,6 @@ open class CoderProtocolHandler(
7373

7474
var agent: WorkspaceAgent
7575
try {
76-
markAsBusy()
7776
reInitialize(restClient, cli)
7877
context.envPageManager.showPluginEnvironmentsPage()
7978
if (!prepareWorkspace(workspace, restClient, workspaceName, deploymentURL)) return

0 commit comments

Comments
 (0)