Prerequsities
Bug Description
When starting a review with settings.discussion_tree.auto_open set to true, the discussion split is only opened after the discussion and other data have been loaded.
This causes a unpleasant delay between opening the reviewer and opening the discussion tree when the user can already start some work, like navigating the file panel, going to local file in a new tab, etc. and only after a couple seconds the focus is stolen to the discussion tree, or it can be even opened in the wrong tab page.
Reproduction Steps
- Check out the feature branch
- Open Neovim
- type
glS to start a review
- in the Diffview file panel press
gf which will take you to a new tab
- observe that the discussion tree is opened in the new tab
Expected behaviour
The discussion tree split is opened immediately together with the Diffview windows and it is refreshed (without stealing focus) as soon as the data is loaded.
Prerequsities
:h gitlab.nvim.troubleshootingand followed the steps thereBug Description
When starting a review with settings.discussion_tree.auto_open set to true, the discussion split is only opened after the discussion and other data have been loaded.
This causes a unpleasant delay between opening the reviewer and opening the discussion tree when the user can already start some work, like navigating the file panel, going to local file in a new tab, etc. and only after a couple seconds the focus is stolen to the discussion tree, or it can be even opened in the wrong tab page.
Reproduction Steps
glSto start a reviewgfwhich will take you to a new tabExpected behaviour
The discussion tree split is opened immediately together with the Diffview windows and it is refreshed (without stealing focus) as soon as the data is loaded.