Skip to content

Commit

Permalink
IJMP-1969 Added updating of the project workspace when adding new zow…
Browse files Browse the repository at this point in the history
…e config file

Signed-off-by: Katsiaryna Tsytsenia <[email protected]>
  • Loading branch information
Katsiaryna Tsytsenia authored and Katsiaryna Tsytsenia committed Dec 6, 2024
1 parent b4f91e6 commit e4d817a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package org.zowe.explorer.explorer.actions
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.application.runInEdt
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.vfs.VirtualFileManager
import org.zowe.explorer.config.ConfigService
Expand Down Expand Up @@ -81,6 +82,10 @@ class AddZoweTeamConfigAction : AnAction() {

CredentialService.getService().setCredentials(connectionConfig.uuid, state.username, state.password)
configCrudable.add(connectionConfig)

runInEdt {
VirtualFileManager.getInstance().findFileByNioPath(Path.of(project.basePath.toString()))?.refresh(false, false)
}
} else {
return
}
Expand Down

0 comments on commit e4d817a

Please sign in to comment.