Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLVS-1457 Open ManageBindingDialog from SharedBindingGoldBar #5699

Open
wants to merge 3 commits into
base: gt/shared-binding-support
Choose a base branch
from

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Sep 20, 2024

SLVS-1457

It should have been easy: just instantiate the ManageBindingDialog in the SharedBindingSuggestionService and pass it to the goldbar. But it was a mess, because once you start adding the reference to IConnectedModeBindingServices you have a circular reference that crashes the app at runtime (the circular reference was VsSessionHost -> SharedBindingSuggestionService -> UnintrusiveBindingController -> ActiveSolutionBoundTracker -> VsSessionHost)

So I had to restructure the logic to break the circular refernce.

…ce between MEF components.

- The circular reference was: VsSessionHost ->  SharedBindingSuggestionService -> UnintrusiveBindingController -> ActiveSolutionBoundTracker -> VsSessionHost
- Fixed it by removing the SharedBindingSuggestionService from VsSessionHost and instead let it show the goldbar, whenever the active solution state changed
…om VsSessionHost, which were used only by the ConnectionController (which should be deleted once the TeamExplorer will be deleted)
@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title SLVS-1457 Open ManageBindingDialog from SharedBindingGoldBar SLVS-1457 Open ManageBindingDialog from SharedBindingGoldBar Sep 20, 2024
Copy link

sonarcloud bot commented Sep 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant