Skip to content

teledemic/vscode-branch-warning

Repository files navigation

Branch Warnings

Note - this extension will be discontinued, as branch warnings have now been added to VSCode directly via microsoft/vscode#148783

Alerts you when you are working on a branch you have designated "protected" such as main or master. Can help to remember not to commit to the wrong branch.

screenshot

Extension Settings

This extension contributes the following settings:

  • branchwarnings.suppressPopup: Suppress the more intrusive warning dialog when first switching to a protected branch (only show the warning on the status bar).

  • branchwarnings.protectedBranches: An array of branch names. If it exists, warnings will be shown for these names.

By default, warnings will be given for branches titled "main" or "master". If you wish to warn when working on another branch such as "prerelease", add to your workspace or user settings:

"branchwarnings.protectedBranches": [ "main", "master", "prerelease", "releases/**" ]

About

Warn when you're on the wrong branch, like MASTER

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published