Repository navigation
fix(web): clear deleted checkout labels from the sidebar #25063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9915863
f01e2d2
9573ae6
870852e
a8a91cc
bc31111
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3210,7 +3210,13 @@ export const layerWsRpc = ( | |
| [WS_METHODS.vcsCreateWorktree]: (input) => | ||
| gitWorkflow.createWorktree(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))), | ||
| [WS_METHODS.vcsRemoveWorktree]: (input) => | ||
| gitWorkflow.removeWorktree(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))), | ||
| gitWorkflow | ||
| .removeWorktree(input) | ||
| .pipe( | ||
| Effect.tap(() => | ||
| Effect.all([refreshGitStatus(input.cwd), refreshGitStatus(input.path)]), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Refresh the resolved removal target.
For Resolve the refresh target against
|
||
| ), | ||
| ), | ||
| [WS_METHODS.vcsCreateRef]: (input) => | ||
| gitWorkflow.createRef(input).pipe(Effect.tap(() => refreshGitStatus(input.cwd))), | ||
| [WS_METHODS.vcsSwitchRef]: (input) => | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refresh repository state before returning cached
isRepo.When a detailed subscriber has cached a detached checkout, deleting that checkout leaves
currentBranchequal tonull.getOrLoadLocalStatusUnlockedreturns the cached value because it compares onlyrefNameat Line 363. This return therefore still reportsisRepo: true. The reverse transition can retainisRepo: falsewhen a detached checkout returns.Revalidate repository state when the branch is null, or force a local-status refresh for this path. Extend the existing broadcaster test to cover these transitions with a detailed subscriber.