teledemic/vscode-branch-warning

Just what I want - but not working :(

Closed this issue · 2 comments

This is just what I am looking for,
Added extension.
Does not seem to do anything.

In settings I have
,
"branchwarnings.protectedBranches": [ "master" ],
"branchwarnings.msgTooltip": "WARNING: Branch Is Master",
"branchwarnings.suppressPopup": true

Bug seems to be the workspace must be in the ROOT folder of the GIt for this to work.
If you set the path of the workspace to point to a sub-folder it does not work.
If you put the wrokspace in a sub-folder it does not work.
Only works if workspace is in root of git and path = '.'

Is this fixable ?

Nested workspace support was theoretically added by #4 - I don't use vscode that way but it should work. Does vscode itself recognize that you are in a git repository?
You do not need any settings at all for this extension, only if you want to override the default behavior

Hi,

i have the exact same issue.
When used with a multible Git Repos in a workspace it does not work as intended.
If I test it with a single Repo inside the workspace it works like a charm.

image

image