@@ -26,7 +26,6 @@ export async function serverActions(): Promise<void> {
2626 const { apiTarget, configName : workspaceFolder } = connectionTarget ( ) ;
2727 const api = new AtelierAPI ( apiTarget ) ;
2828 const { active, host = "" , ns = "" , https, port = 0 , pathPrefix, authorization, docker } = api . config ;
29- const username = authorization . username ;
3029 const explorerCount = ( await explorerProvider . getChildren ( ) ) . length ;
3130 if ( ! explorerCount && ( ! docker || host === "" ) ) {
3231 await vscode . commands . executeCommand ( "ObjectScriptExplorer.focus" ) ;
@@ -153,7 +152,7 @@ export async function serverActions(): Promise<void> {
153152 . replace ( "${serverAuth}" , "" )
154153 . replace ( "${ns}" , nsEncoded )
155154 . replace ( "${namespace}" , ns == "%SYS" ? "sys" : nsEncoded . toLowerCase ( ) )
156- . replace ( "${username}" , username )
155+ . replace ( "${username}" , authorization . username )
157156 . replace ( "${classname}" , classname )
158157 . replace ( "${classnameEncoded}" , classnameEncoded )
159158 . replace ( "${project}" , project ) ;
@@ -249,7 +248,7 @@ export async function serverActions(): Promise<void> {
249248 if ( addin ) {
250249 sendStudioAddinTelemetryEvent ( addin . label ) ;
251250 let params = `Namespace=${ nsEncoded } ` ;
252- params += `&User=${ encodeURIComponent ( username ) } ` ;
251+ params += `&User=${ encodeURIComponent ( authorization . username ) } ` ;
253252 if ( project != "" ) {
254253 params += `&Project=${ encodeURIComponent ( project ) } ` ;
255254 }
0 commit comments