Skip to content

Add /troubleshoot command for access to debug logs#299024

Open
pwang347 wants to merge 13 commits intomainfrom
pawang/debugPanelSlashCommand
Open

Add /troubleshoot command for access to debug logs#299024
pwang347 wants to merge 13 commits intomainfrom
pawang/debugPanelSlashCommand

Conversation

@pwang347
Copy link
Member

@pwang347 pwang347 commented Mar 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 18:24
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

Adds a new chat troubleshooting flow that surfaces per-conversation debug events via a /troubleshoot slash command and introduces an internal tool to resolve detailed information for a specific debug event.

Changes:

  • Register a new internal tool (ResolveDebugEventDetailsTool) in the built-in tools contribution.
  • Add /troubleshoot slash command to print a summarized debug event log for the active chat session.
  • Introduce a new chat context key (chatTroubleshootActive) to gate availability of the internal debug-resolution tool.

Reviewed changes

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

File Description
src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.ts Registers the new internal debug-event detail resolver tool.
src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.ts Implements the internal tool that resolves full details for a debug event ID.
src/vs/workbench/contrib/chat/common/actions/chatContextKeys.ts Adds a new context key to represent “troubleshoot mode” being active.
src/vs/workbench/contrib/chat/browser/chatSlashCommands.ts Adds the /troubleshoot command and renders debug-event summaries into the conversation.

@pwang347 pwang347 marked this pull request as ready for review March 4, 2026 02:45
@vs-code-engineering vs-code-engineering bot added this to the 1.111.0 milestone Mar 4, 2026
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