[vcs] correctly identify toolwindow by tab name before toolwindow content initialization master
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Tue, 24 Nov 2020 11:05:34 +0000 (14:05 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 24 Nov 2020 11:22:09 +0000 (11:22 +0000)
commit90d32b5a70f1abb468a2789be095692854c125df
treebb79bbe38eccdc8ba6faa919699594e9a3e9a1a6
parentcfaadbb743f0d3003aae3c092e948c28e22d5d41
[vcs] correctly identify toolwindow by tab name before toolwindow content initialization

After the introduction of the new api for specifying whether to use "Commit" toolwindow for the tab, it is impossible to identify the correct toolwindow just by the tab name. ChangesViewContentManager keeps track of tabs that should be placed in the "Commit" toolwindow, but only after "Commit" toolwindow content was initialized. Before that moment toolwindow for tabs were identified incorrectly, which broke navigation actions.

 This commit adds looking through ChangesViewContentEP implementations to identify the correct toolwindow before initialization.

 follow-up: c3aa1441d627dbf535a56314322d27abc3d37e3c

GitOrigin-RevId: 0ca86e9e842737f5ed9971fac17558cb50e872df
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesViewContentManager.kt
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/VcsToolWindowFactory.kt