Skip to content

Sessions - update context key calculation#300514

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/polite-damselfly
Mar 10, 2026
Merged

Sessions - update context key calculation#300514
lszomoru merged 1 commit intomainfrom
lszomoru/polite-damselfly

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings March 10, 2026 18:29
@lszomoru lszomoru enabled auto-merge (squash) March 10, 2026 18:29
@lszomoru lszomoru self-assigned this Mar 10, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.112.0 milestone Mar 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates how the Sessions “Changes” view computes and propagates a context key used for merge-base branch protection, aligning it with the view’s reactive context-key setup used by the actions toolbar.

Changes:

  • Switches sessions.isMergeBaseBranchProtected from a RawContextKey + bindContextKey(...) binding to a scopedContextKeyService.createKey(...) updated via autorun.
  • Ensures the key is driven directly off the current repository state (state.HEAD.base.isProtected) in the same reactive pattern as other toolbar-scoped keys.

@lszomoru lszomoru merged commit 97c94c2 into main Mar 10, 2026
33 of 34 checks passed
@lszomoru lszomoru deleted the lszomoru/polite-damselfly branch March 10, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants