@@ -67,9 +67,9 @@ export class AtelierAPI {
6767 const superserverPort = this . externalServer
6868 ? this . _config . superserverPort
6969 : workspaceState . get ( wsKey + ":superserverPort" , this . _config . superserverPort ) ;
70- const password = workspaceState . get ( wsKey + ":password" , undefined ) ;
71- if ( password !== undefined ) {
72- auth . resolve ( { accessToken : password } ) ;
70+ const accessToken = workspaceState . get ( wsKey + ":password" , undefined ) ;
71+ if ( accessToken !== undefined ) {
72+ auth . resolve ( { accessToken } ) ;
7373 }
7474 const apiVersion = workspaceState . get ( wsKey + ":apiVersion" , DEFAULT_API_VERSION ) ;
7575 const serverVersion = workspaceState . get ( wsKey + ":serverVersion" , DEFAULT_SERVER_VERSION ) ;
@@ -209,12 +209,12 @@ export class AtelierAPI {
209209
210210 /** Return the key for getting values from connection-specific Maps for this connection */
211211 private mapKey ( ) : string {
212- const { host, port, auth : authorization } = this . config ;
212+ const { host, port, auth } = this . config ;
213213 let pathPrefix = this . _config . pathPrefix || "" ;
214214 if ( pathPrefix . length && ! pathPrefix . startsWith ( "/" ) ) {
215215 pathPrefix = "/" + pathPrefix ;
216216 }
217- return `${ authorization . username } @${ host } :${ port } ${ pathPrefix } ` ;
217+ return `${ auth . username } @${ host } :${ port } ${ pathPrefix } ` ;
218218 }
219219
220220 private setConnection ( workspaceFolderName : string , namespace ?: string ) : void {
@@ -239,7 +239,7 @@ export class AtelierAPI {
239239 if ( serverName !== "" ) {
240240 const {
241241 webServer : { scheme, host, port, pathPrefix = "" } ,
242- authorization ,
242+ auth ,
243243 superServer,
244244 } = getResolvedConnectionSpec ( serverName , config ( "intersystems.servers" , workspaceFolderName ) . get ( serverName ) ) ;
245245 this . _config = {
@@ -252,7 +252,7 @@ export class AtelierAPI {
252252 host,
253253 port,
254254 superserverPort : superServer ?. port ,
255- auth : authorization ,
255+ auth,
256256 pathPrefix,
257257 docker : false ,
258258 } ;
@@ -262,7 +262,7 @@ export class AtelierAPI {
262262 if ( resolvedSpec ) {
263263 const {
264264 webServer : { scheme, host, port, pathPrefix = "" } ,
265- authorization ,
265+ auth ,
266266 superServer,
267267 } = resolvedSpec ;
268268 this . _config = {
@@ -275,7 +275,7 @@ export class AtelierAPI {
275275 host,
276276 port,
277277 superserverPort : superServer ?. port ,
278- auth : authorization ,
278+ auth,
279279 pathPrefix,
280280 docker : true ,
281281 dockerService : conn [ "docker-compose" ] . service ,
0 commit comments