Sertion / vscode-gitblame

Visual Studio Code Extension - See Git Blame info in status bar.
https://marketplace.visualstudio.com/items/waderyan.gitblame
MIT License
72 stars 31 forks source link

Toggle command to enable/disable? #97

Open Shun-Hao opened 3 years ago

Shun-Hao commented 3 years ago

Is it possible to add such toggle command? e.g. I can disable the auto blame by default, and when send the toggle command, enable it to show the blame info in status bar?

Sertion commented 3 years ago

Greetings Shun-Hao. Thank you for the feature request.

I am unsure exactly what you are requesting here.

If you want to disable the extension you can do so on a workspace by workspace basis in the vscode extensions view.

Could you describe a use-case?

Shun-Hao commented 3 years ago

Actually I mean to enable/disable it dynamically, without reloading window. I love this extension, but when I use it along with Remote SSH, under a bad networking, if I jump/switch source files frequently, I want to disable gitblame temporarily, to avoid more latency for RemoteSSH. Only if when I need to get the commit info, I can enable dynamically to check, then disable again. Thanks.

Sertion commented 3 years ago

Ah, I think I get it.

If you use the SSH feature in VSCode it should be possible to install the extension on the remote machine. I know I use Gitblame in WSL and I think this should be the same.

Would a command that toggles the, for the lack of a better term, event handlers be what you are looking for if the remote extension isn't enough?