Skip to content

Commit 510273e

Browse files
committed
reload project node after re-auth
1 parent 6d464e0 commit 510273e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/sagemakerunifiedstudio/explorer/activation.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ export async function activate(extensionContext: vscode.ExtensionContext): Promi
113113
if (connection) {
114114
try {
115115
await smusAuthProvider.reauthenticate(connection)
116+
const projectNode = smusRootNode.getProjectSelectNode()
117+
const project = projectNode.getProject()
118+
if (!project) {
119+
await vscode.commands.executeCommand('aws.smus.switchProject')
120+
}
116121
treeDataProvider.refresh()
117122

118123
// IAM connections handle their own success messages

0 commit comments

Comments
 (0)