Ensure that the GitHubPaneViewModel is initalized. by grokys · Pull Request #1426 · github/VisualStudio

@grokys

- Renamed `IGitHubToolWindowManager.ShowHomePane` to `ShowGitHubPane` because the latter is what we call it these days
- Make `IGitHubToolWindowManager.ShowGitHubPane` async to make sure that `GitHubPaneViewModel.InitializeAsync` has finished before passing back a refrence to the `GitHubPaneViewModel`
- Make the methods that call `IGitHubToolWindowManager.ShowGitHubPane` `void async` with logging when they fail

@grokys grokys changed the title Ensure that the GitHubPaneViewModel is initalized. WIP: Ensure that the GitHubPaneViewModel is initalized.

Jan 29, 2018

@grokys

@grokys

When the GitHub pane is shown from VS rather than our own code, kick off an initialization of the view model. This means we can't be sure of the state of the view model's initialization so make subsequent calls to the view model async either wait for an ongoing initialization, or exit if already initialized.

@grokys

@grokys grokys changed the title WIP: Ensure that the GitHubPaneViewModel is initalized. Ensure that the GitHubPaneViewModel is initalized.

Feb 7, 2018

jcansdale

@grokys

jcansdale

@grokys grokys deleted the fixes/githubpane-initialization branch

February 8, 2018 12:42