@@ -277,22 +277,18 @@ export class NativeExtensionService extends AbstractExtensionService implements
277
277
const authorityPlusIndex = remoteAuthority . indexOf ( '+' ) ;
278
278
if ( authorityPlusIndex === - 1 ) {
279
279
// This authority does not need to be resolved, simply parse the port number
280
- try {
281
- const { host, port } = parseAuthorityWithPort ( remoteAuthority ) ;
282
- return {
283
- authority : {
284
- authority : remoteAuthority ,
285
- connectTo : {
286
- type : RemoteConnectionType . WebSocket ,
287
- host,
288
- port
289
- } ,
290
- connectionToken : undefined
291
- }
292
- } ;
293
- } catch {
294
- // continue
295
- }
280
+ const { host, port } = parseAuthorityWithPort ( remoteAuthority ) ;
281
+ return {
282
+ authority : {
283
+ authority : remoteAuthority ,
284
+ connectTo : {
285
+ type : RemoteConnectionType . WebSocket ,
286
+ host,
287
+ port
288
+ } ,
289
+ connectionToken : undefined
290
+ }
291
+ } ;
296
292
}
297
293
298
294
const localProcessExtensionHosts = this . _getExtensionHostManagers ( ExtensionHostKind . LocalProcess ) ;
@@ -398,7 +394,7 @@ export class NativeExtensionService extends AbstractExtensionService implements
398
394
performance . mark ( `code/willResolveAuthority/${ authorityPrefix } ` ) ;
399
395
const result = await this . _resolveAuthority ( remoteAuthority ) ;
400
396
performance . mark ( `code/didResolveAuthorityOK/${ authorityPrefix } ` ) ;
401
- this . _logService . info ( `resolveAuthority(${ authorityPrefix } ) returned '${ result . authority } ' after ${ sw . elapsed ( ) } ms` ) ;
397
+ this . _logService . info ( `resolveAuthority(${ authorityPrefix } ) returned '${ result . authority . connectTo } ' after ${ sw . elapsed ( ) } ms` ) ;
402
398
return result ;
403
399
} catch ( err ) {
404
400
performance . mark ( `code/didResolveAuthorityError/${ authorityPrefix } ` ) ;
0 commit comments