We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentea4b179 commit5e4e795Copy full SHA for 5e4e795
src/commands.ts
@@ -572,9 +572,14 @@ export class Commands {
572
){
573
letremoteAuthority=toRemoteAuthority(baseUrl,workspaceOwner,workspaceName,workspaceAgent)
574
575
-// When called from `openFromSidebar`, the workspaceAgent will only not be set
576
-// if the workspace is stopped, in which case we can't use Coder Connect
577
-// When called from `open`, the workspaceAgent will always be set.
+// We can't connect using Coder Connect straightaway if `workspaceAgent`
+// is undefined. This happens when:
+// 1. The workspace is stopped
578
+// 2. A `vscode://coder.coder-remote` URI does not include the agent as a
579
+// query parameter.
580
+//
581
+// For 1. `Remote.setup` will migrate us to Coder Connect once the workspace is built.
582
+// For 2. `Remote.setup` will call `maybeAskAgent` and then migrate us to Coder Connect
583
if(workspaceAgent){
584
letsshConfig
585
try{