File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -454,18 +454,21 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
454
454
panel . command = "vscode-objectscript.serverActions" ;
455
455
panel . show ( ) ;
456
456
457
- // Check once (flushing cookies) each connection used by the workspace(s)
457
+ // Check one time (flushing cookies) each connection that is used by the workspace.
458
+ // This gets any prompting for missing credentials done upfront, for simplicity.
458
459
const toCheck = new Map < string , vscode . Uri > ( ) ;
459
460
vscode . workspace . workspaceFolders ?. map ( ( workspaceFolder ) => {
460
461
const uri = workspaceFolder . uri ;
461
462
const { configName } = connectionTarget ( uri ) ;
462
463
toCheck . set ( configName , uri ) ;
463
464
} ) ;
464
- toCheck . forEach ( async function ( uri , configName ) {
465
+ for await ( const oneToCheck of toCheck ) {
466
+ const configName = oneToCheck [ 0 ] ;
467
+ const uri = oneToCheck [ 1 ] ;
465
468
const serverName = uri . scheme === "file" ? config ( "conn" , configName ) . server : configName ;
466
469
await resolveConnectionSpec ( serverName ) ;
467
470
await checkConnection ( true , uri ) ;
468
- } ) ;
471
+ }
469
472
470
473
vscode . workspace . onDidChangeWorkspaceFolders ( ( { added, removed } ) => {
471
474
const folders = vscode . workspace . workspaceFolders ;
You can’t perform that action at this time.
0 commit comments