-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Prerequsities
- I'm on the latest version of the plugin
- I've installed the required dependencies
- I've run
:h gitlab.nvim.troubleshootingand followed the steps there
Bug Description
When [starting a review[(https://github.com/harrisoncramer/gitlab.nvim/blob/0add185d8961b481eee8c10215cfa04d0acdeafa/lua/gitlab/init.lua#L75-L75) 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
glSto start a review - in the Diffview file panel press
gfwhich 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.