Skip to content

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Nov 9, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 9, 2025 10:05
@bpasero bpasero enabled auto-merge (squash) November 9, 2025 10:05
@bpasero bpasero self-assigned this Nov 9, 2025
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 9, 2025
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

This PR adds a getWindows method to the IHostService interface to retrieve a list of opened windows, with support for optionally including auxiliary windows. The implementation distinguishes between main windows (which have workspace information) and auxiliary windows (which have parent window references).

Key changes:

  • Added getWindows method to IHostService interface with overloads based on includeAuxiliaryWindows option
  • Implemented the method in both browser and native (Electron) host services
  • Updated the "Open Recent" action to show an indicator for workspaces/folders currently opened in windows
  • Added visual styling to differentiate opened workspace entries in the recently opened picker

Reviewed Changes

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

Show a summary per file
File Description
src/vs/workbench/services/host/browser/host.ts Added interface method signatures for getWindows with overloads
src/vs/workbench/services/host/browser/browserHostService.ts Implemented getWindows method for browser environment to collect main and auxiliary windows
src/vs/workbench/services/host/electron-browser/nativeHostService.ts Implemented getWindows method for Electron environment delegating to native host service
src/vs/workbench/browser/actions/windowActions.ts Updated "Open Recent" action to fetch and display windows with opened indicator
src/vs/workbench/browser/actions/media/actions.css Added CSS rule to show close icon on hover for opened workspace entries
src/vs/workbench/test/browser/workbenchTestServices.ts Added stub implementation of getWindows to test service

@bpasero bpasero merged commit 01eecb4 into main Nov 9, 2025
33 of 34 checks passed
@bpasero bpasero deleted the ben/vitreous-dormouse branch November 9, 2025 14:23
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