joeykamsteeg / vscode-git-flow

Manage your git repository with this Visual Studio Code git flow extension
https://marketplace.visualstudio.com/items?itemName=PsykoSoldi3r.vscode-git-flow
15 stars 2 forks source link

Fix high cpu load #6

Closed tomups closed 3 years ago

tomups commented 3 years ago

Should fix #5 (at least in Windows)

The problem seemed to be that vscode.workspace.getConfiguration("gitflow").get("views.feature.showRemoteBranches"); was called for each feature branch (including remote-only ones, which can be many...). So I changed it to be just called once before filtering the branches, as it will be available in the filtering function through a closure anyway.

I also fixed some issues I was having when trying to compile and run the extension locally, I suppose because stuff in Visual Studio Code changed since this extension was last updated.