Skip to content

Hide debug slash command in Sessions#298897

Merged
DonJayamanne merged 1 commit intomainfrom
don/dry-deer
Mar 3, 2026
Merged

Hide debug slash command in Sessions#298897
DonJayamanne merged 1 commit intomainfrom
don/dry-deer

Conversation

@DonJayamanne
Copy link
Contributor

Fixes #298863

Copilot AI review requested due to automatic review settings March 3, 2026 08:03
@DonJayamanne DonJayamanne self-assigned this Mar 3, 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

This PR fixes issue #298863 where the /debug slash command was a no-op in background/CLI agent sessions (Sessions window) because the underlying github.copilot.debug.showChatLogView command only works in the main VS Code window. The fix prevents the /debug command from being registered at all when running inside a Sessions window.

Changes:

  • Add IWorkbenchEnvironmentService as a new injected dependency to ChatSlashCommandsContribution
  • Conditionally skip registration of the /debug slash command when isSessionsWindow is true

@DonJayamanne DonJayamanne merged commit 6784443 into main Mar 3, 2026
24 checks passed
@DonJayamanne DonJayamanne deleted the don/dry-deer branch March 3, 2026 08:54
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.

/debug no op in BG/CLI agent session

3 participants