Skip to content

debt - inline context menu contribution into windows#269672

Merged
bpasero merged 3 commits intomainfrom
ben/superior-crane
Oct 3, 2025
Merged

debt - inline context menu contribution into windows#269672
bpasero merged 3 commits intomainfrom
ben/superior-crane

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Oct 3, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 3, 2025 07:54
@bpasero bpasero enabled auto-merge (squash) October 3, 2025 07:54
@bpasero bpasero self-assigned this Oct 3, 2025
Copy link
Copy Markdown
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

This PR inlines the context menu contribution functionality directly into the window classes rather than using a separate contribution module. The context menu visibility state management is moved from a dedicated contribution class into the base window class.

Key changes:

  • Removes the standalone context menu contribution module and its registration
  • Integrates context menu event handling directly into the BaseWindow class
  • Updates constructor signatures to inject required services

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/vs/workbench/workbench.common.main.ts Removes import of context menu contribution module
src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.ts Deletes the entire context menu contribution class and registration
src/vs/workbench/browser/window.ts Adds context menu event handling logic to BaseWindow class and updates constructor
src/vs/workbench/electron-browser/window.ts Updates NativeWindow constructor to pass required services to parent

Comment thread src/vs/workbench/browser/window.ts

//#endregion

private registerFullScreenListeners(targetWindowId: number): void {
Copy link

Copilot AI Oct 3, 2025

Choose a reason for hiding this comment

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

[nitpick] The registerFullScreenListeners method was moved to the end of the class. This breaks the logical grouping with the related initialization code that calls it in the constructor. Consider keeping it closer to the constructor or other initialization methods.

Copilot uses AI. Check for mistakes.
@vs-code-engineering vs-code-engineering Bot added this to the October 2025 milestone Oct 3, 2025
@bpasero bpasero merged commit ac40d17 into main Oct 3, 2025
28 checks passed
@bpasero bpasero deleted the ben/superior-crane branch October 3, 2025 08:30
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Nov 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants