Skip to content

Commit 8e00d98

Browse files
authored
deleting branch after squashing PR not working anymore since vscode 1.98.0 (#6823)
Fixes #6699
1 parent 80901bf commit 8e00d98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/pullRequestOverviewCommon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export namespace PullRequestView {
8686
const deletedBranchTypes: string[] = [];
8787

8888
if (selectedActions) {
89-
const isBranchActive = item.equals(folderRepositoryManager.activePullRequest);
89+
const isBranchActive = item.equals(folderRepositoryManager.activePullRequest) || (folderRepositoryManager.repository.state.HEAD?.name && folderRepositoryManager.repository.state.HEAD.name === branchInfo?.branch);
9090

9191
const promises = selectedActions.map(async action => {
9292
switch (action.type) {

0 commit comments

Comments
 (0)