@@ -235,7 +235,7 @@ export async function resolveConnectionSpec(
235235 }
236236 }
237237
238- let connSpec = await serverManagerApi . getServerSpec ( serverName , scope ) ;
238+ let connSpec : serverManager . IServerSpec = await serverManagerApi . getServerSpec ( serverName , scope ) ;
239239
240240 if ( ! connSpec && uri ) {
241241 // Caller passed uri as a signal to process any docker-compose settings
@@ -254,7 +254,6 @@ export async function resolveConnectionSpec(
254254 superServer : {
255255 port : serverForUri . superserverPort ,
256256 } ,
257- auth : serverForUri . auth . clone ( ) ,
258257 description : `Server for workspace folder '${ serverName } '` ,
259258 } ;
260259 }
@@ -271,8 +270,8 @@ async function resolvePassword(
271270 serverSpec : Pick < serverManager . IServerSpec , "name" | "auth" > ,
272271 ignoreUnauthenticated = false
273272) : Promise < string | undefined > {
274- if ( ! ( serverSpec . auth . resolved ( ) || ignoreUnauthenticated ) ) {
275- const scopes = [ serverSpec . name , serverSpec . auth . username || "" ] ;
273+ if ( ! ( ( serverSpec . auth . resolved ( ) as boolean ) || ignoreUnauthenticated ) ) {
274+ const scopes = [ serverSpec . name , serverSpec . auth ? .username || "" ] ;
276275
277276 // Handle Server Manager extension version < 3.8.0
278277 const account = serverManagerApi . getAccount ? serverManagerApi . getAccount ( serverSpec ) : undefined ;
@@ -2000,7 +1999,7 @@ function serverForUri(uri: vscode.Uri): ServerForUri {
20001999 port,
20012000 superserverPort,
20022001 pathPrefix,
2003- auth : auth ,
2002+ auth,
20042003 namespace : ns ,
20052004 apiVersion : active ? apiVersion : undefined ,
20062005 serverVersion : active ? serverVersion : undefined ,
0 commit comments