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

Option to disable automatic collapsing/expanding of gitexplorer nodes when there is a refresh #180

Closed
JavierPDev opened this issue Oct 25, 2017 · 4 comments
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature

Comments

@JavierPDev
Copy link

Feature Request:

Can we get an option for gitlens.gitExplorer that would disable the automatic collapsing/expanding of the different nodes when there is a refresh? For Instance, I often have just the Stash node expanded, but then when there's a refresh the Stash node collapses and the Branches node expands.

I find gitlens to be one of the best git extensions/GUIs I've used and the way it integrates with VSCode is great. This is the only issue I've had so far.

Thanks for the great work.

@eamodio
Copy link
Member

eamodio commented Oct 26, 2017

Hehe -- I wish (believe me it is NOT a feature). Unfortunately the current vscode apis are so limited with custom views there is very little I can do at this point that would make it better. I've covered just some of the limitations (with open issues) here: #169 (comment)

In an attempt to make this a tiny bit less of an issue, I added a couple things in 5.7.0.

You can use a hammer and set "gitlens.gitExplorer.autoRefresh": false to turn off the auto-refresh completely -- and therefore you will need to use the refresh button/command to manually refresh the view. Or I also added 2 new commands (menu items in the ... menu of the GitLens view), that allow you to quickly toggle on/off auto-refresh for the view for that specific workspace.

So at least until vscode expands the feature-set of the custom view api, there isn't a whole lot I can do to make it better -- and BELIEVE me I want it fixed, as it drives me nuts too

Also thank you for you kind words! Greatly appreciated.

@eamodio eamodio added the blocked: vscode Caused by or dependent on a VS Code issue or feature label Oct 26, 2017
@eamodio
Copy link
Member

eamodio commented Dec 18, 2017

@JavierPDev in vscode 1.19, they have made changes to the custom view support to persist the state better. I have also made some changes to GitLens (since vscode fixed some other underlying issues in 1.19 too) that should help as well.

Please let me know if you think this issue can be closed.

@JavierPDev
Copy link
Author

It's working great now, thanks. I think this issue can be closed.

@eamodio eamodio closed this as completed Dec 18, 2017
@github-actions
Copy link

github-actions bot commented Dec 7, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature
Projects
None yet
Development

No branches or pull requests

2 participants