Skip to content

Add Persistent Logging Toggle in VSIX.#1639

Merged
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:add-switch-to-toggle-logging-vsix
Feb 5, 2026
Merged

Add Persistent Logging Toggle in VSIX.#1639
g2vinay merged 2 commits intomicrosoft:mainfrom
g2vinay:add-switch-to-toggle-logging-vsix

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented Feb 3, 2026

Update Azure MCP VSIX to include setting to toggle writing logs to disk for debug scenarios.

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 adds a configuration setting to the Azure MCP VSIX that enables users to write detailed debug-level logs to disk for support and troubleshooting purposes.

Changes:

  • Added new VS Code setting azureMcp.dangerouslyWriteSupportLogsToDir to allow users to specify a folder path for support logs
  • Updated extension activation logic to pass the logging directory path to the server via command-line arguments
  • Added configuration change listener to trigger server restart when the logging setting is modified

Reviewed changes

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

File Description
servers/Azure.Mcp.Server/vscode/package.json Added new configuration property azureMcp.dangerouslyWriteSupportLogsToDir with appropriate warnings about sensitive data exposure
servers/Azure.Mcp.Server/vscode/src/extension.ts Implemented reading of the new configuration setting, passing it to the server binary, and listening for configuration changes to trigger server restart

Copy link
Copy Markdown
Member

@joshfree joshfree left a comment

Choose a reason for hiding this comment

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

Add a CHANGELOG entry

@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Feb 3, 2026
@g2vinay g2vinay merged commit eb638cf into microsoft:main Feb 5, 2026
69 of 75 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Feb 5, 2026
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants