@@ -85,15 +85,18 @@ public async Task HandleOpenWorkspaceApp(Uri uri, CancellationToken ct = default
8585 }
8686
8787 var workspace = state . Workspaces . FirstOrDefault ( w => w . Name == workspaceName ) ;
88- if ( workspace == null ) {
88+ if ( workspace == null )
89+ {
8990 logger . LogDebug ( "got URI to open workspace '{workspace}', but the workspace doesn't exist" , workspaceName ) ;
9091 throw new UriException ( errTitle ,
9192 $ "Failed to open application on workspace '{ workspaceName } ' because it doesn't exist") ;
9293 }
9394
9495 var agent = state . Agents . FirstOrDefault ( a => a . WorkspaceId == workspace . Id && a . Name == agentName ) ;
95- if ( agent == null ) {
96- logger . LogDebug ( "got URI to open workspace/agent '{workspaceName}/{agentName}', but the agent doesn't exist" ,
96+ if ( agent == null )
97+ {
98+ logger . LogDebug (
99+ "got URI to open workspace/agent '{workspaceName}/{agentName}', but the agent doesn't exist" ,
97100 workspaceName , agentName ) ;
98101 // If the workspace isn't running, that is almost certainly why we can't find the agent, so report that
99102 // to the user.
@@ -102,6 +105,7 @@ public async Task HandleOpenWorkspaceApp(Uri uri, CancellationToken ct = default
102105 throw new UriException ( errTitle ,
103106 $ "Failed to open application on workspace '{ workspaceName } ', because the workspace is not running.") ;
104107 }
108+
105109 throw new UriException ( errTitle ,
106110 $ "Failed to open application on workspace '{ workspaceName } ', because agent '{ agentName } ' doesn't exist.") ;
107111 }
0 commit comments