Azure DevOps PR Cruncher
Review and manage Azure DevOps pull requests directly in VS Code - just like the GitHub Pull Requests extension!

Features
Pull Request Browser
Browse all active pull requests in a dedicated sidebar. See PR title, author, and status at a glance.
View and interact with PR comments directly in your code editor using VS Code's native comment UI - the same experience as the GitHub PR extension.
Thread Status Management
Set thread status with a single click:
- Active (Red) - Needs attention
- Pending (Yellow) - Waiting for something
- Resolved (Green) - Issue fixed
- Won't Fix (Green) - Won't be addressed
- Closed (Green) - Thread closed
Diff Views
When you checkout a PR branch:
- Changed Files - View cumulative diff of all changes
- Commits - Browse individual commits with per-commit diffs
Color-Coded Decorations
Comments are highlighted in the editor and minimap:
- 🔴 Red - Active comments that need attention
- 🟡 Yellow - Pending comments
- 🟢 Green - Resolved/Closed comments
Auto-Detection
The extension automatically detects your Azure DevOps organization, project, and repository from your git remote URL. No manual configuration needed!
Secure Credential Storage
Your Personal Access Token (PAT) is stored securely in your operating system's credential store:
- macOS: Keychain
- Windows: Credential Manager
- Linux: libsecret
Getting Started
1. Install the Extension
Install from the VS Code Marketplace or search for "Azure DevOps Pull Requests" in the Extensions view.
- Open a folder containing a repository from Azure DevOps
- Click the Azure DevOps PR icon in the activity bar
- Click "Configure" when prompted
- Your browser will open to create a Personal Access Token (PAT)
- Create a PAT with Code: Read & Write scope
- Paste the PAT when prompted in VS Code
That's it! The extension will automatically detect your organization, project, and repository.
Creating a Personal Access Token (PAT)
- In Azure DevOps, click your profile icon → Personal access tokens
- Click + New Token
- Give it a name (e.g., "VS Code Extension")
- Set expiration as needed
- Under Scopes, select:
- Click Create and copy the token
Usage
Viewing Pull Requests
- Click the Azure DevOps PR icon in the activity bar
- Browse the list of active pull requests
- Click a PR to see its details
- Comments appear inline in files that are part of the PR
- Click the + button in the gutter to add a new comment
- Click on existing comments to reply or change status
- Use the status button to set: Active, Pending, Resolved, Won't Fix, or Closed
Viewing Diffs
- Checkout a PR branch (right-click PR → Checkout)
- The "Changed Files" and "Commits" views appear
- Click any file to see the diff
- Click a commit to see files changed in that commit
Commands
| Command |
Description |
Azure DevOps PR: Configure |
Set up your Azure DevOps connection |
Azure DevOps PR: Refresh |
Refresh all views |
Azure DevOps PR: Checkout PR |
Checkout a pull request branch |
Azure DevOps PR: Open in Browser |
Open PR in Azure DevOps web |
Settings
| Setting |
Description |
Default |
azureDevOpsPR.showCommentDecorations |
Show inline comment decorations |
true |
azureDevOpsPR.showResolvedComments |
Show resolved comments |
true |
azureDevOpsPR.refreshInterval |
Auto-refresh interval in seconds |
30 |
Requirements
- VS Code 1.85.0 or higher
- Git repository with Azure DevOps remote
- Azure DevOps Personal Access Token with Code Read & Write permissions
Known Issues
- Comments on deleted files may not display correctly
- Large PRs with many files may take longer to load
Contributing
Contributions are welcome! Please feel free to submit issues and pull requests.
License
MIT License - see LICENSE for details.
Acknowledgments
Inspired by the excellent GitHub Pull Requests extension.