@@ -85,15 +85,18 @@ public async Task HandleOpenWorkspaceApp(Uri uri, CancellationToken ct = default
85
85
}
86
86
87
87
var workspace = state . Workspaces . FirstOrDefault ( w => w . Name == workspaceName ) ;
88
- if ( workspace == null ) {
88
+ if ( workspace == null )
89
+ {
89
90
logger . LogDebug ( "got URI to open workspace '{workspace}', but the workspace doesn't exist" , workspaceName ) ;
90
91
throw new UriException ( errTitle ,
91
92
$ "Failed to open application on workspace '{ workspaceName } ' because it doesn't exist") ;
92
93
}
93
94
94
95
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" ,
97
100
workspaceName , agentName ) ;
98
101
// If the workspace isn't running, that is almost certainly why we can't find the agent, so report that
99
102
// to the user.
@@ -102,6 +105,7 @@ public async Task HandleOpenWorkspaceApp(Uri uri, CancellationToken ct = default
102
105
throw new UriException ( errTitle ,
103
106
$ "Failed to open application on workspace '{ workspaceName } ', because the workspace is not running.") ;
104
107
}
108
+
105
109
throw new UriException ( errTitle ,
106
110
$ "Failed to open application on workspace '{ workspaceName } ', because agent '{ agentName } ' doesn't exist.") ;
107
111
}
0 commit comments