Skip to content

sessions - add hideSkipButton option and refactor dialog options#297976

Merged
bpasero merged 2 commits intomainfrom
ben/copilot-worktree-2026-02-26T11-05-25
Feb 26, 2026
Merged

sessions - add hideSkipButton option and refactor dialog options#297976
bpasero merged 2 commits intomainfrom
ben/copilot-worktree-2026-02-26T11-05-25

Conversation

@bpasero
Copy link
Member

@bpasero bpasero commented Feb 26, 2026

No description provided.

@bpasero bpasero added this to the February 2026 milestone Feb 26, 2026
@bpasero bpasero self-assigned this Feb 26, 2026
Copilot AI review requested due to automatic review settings February 26, 2026 11:52
@bpasero bpasero changed the title Add hideSkipButton option and refactor dialog options sessions - add hideSkipButton option and refactor dialog options Feb 26, 2026
@bpasero bpasero enabled auto-merge (squash) February 26, 2026 11:53
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 dialogHideSkip option to the chat setup dialog and refactors the chat setup logic in the Sessions window. The new option allows callers to hide the "Skip for now" button in the chat setup dialog, making it mandatory for users to complete the setup process. In the Sessions window, the chat setup logic has been moved from the NewChatWidget to a centralized SessionsWelcomeOverlay, improving code organization and reducing duplication.

Changes:

  • Added dialogHideSkip boolean option to chat setup actions and runner to control visibility of the "Skip for now" button
  • Removed duplicate chat setup logic from NewChatWidget in favor of the centralized SessionsWelcomeOverlay
  • Removed unused service dependencies (ICommandService, IChatEntitlementService) from NewChatWidget

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.ts Added dialogHideSkip parameter to control dialog close button behavior; when true, uses close button instead of "Skip for now" button
src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts Added dialogHideSkip parameter to action signatures and passes it through to setup runner
src/vs/sessions/contrib/welcome/browser/welcome.contribution.ts Uses dialogHideSkip: true when triggering setup from welcome overlay to prevent skipping
src/vs/sessions/contrib/chat/browser/newChatViewPane.ts Removed duplicate chat setup logic and unused dependencies; setup now handled by welcome overlay

@bpasero bpasero merged commit fa6faf3 into main Feb 26, 2026
24 checks passed
@bpasero bpasero deleted the ben/copilot-worktree-2026-02-26T11-05-25 branch February 26, 2026 14:02
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