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
BETA: AI Review
AI-powered code review directly in your editor. Click the sparkle button in the editor title bar to start.
How it works:
- Open any file and click the sparkle button in the top-right of the editor
- Select an AI model (GitHub Copilot, or any VS Code language model)
- The AI reviews the entire file for bugs, SOLID/DRY violations, and best practices
- Findings appear as squiggly lines in the editor (red = issue, yellow = warning, blue = suggestion) and in the Problems panel
Actions on each finding (hover the squiggly line, then click the lightbulb or press Ctrl+.):
| Action |
What it does |
| AI Fix |
Sends the full file to AI with the issue context. AI outputs the corrected file, handling dependencies (imports, constants, function ordering). Applied as an unsaved edit — review and Ctrl+Z if needed. |
| Dismiss |
Removes the finding |
| Post to PR |
Posts the finding as a "Copilot AI Review" comment thread on the exact code line in Azure DevOps (only available when on a PR branch) |
Clear all findings: Click the clear-all button in the editor title bar, or use Command Palette → "Clear AI Review Comments".
Note: This feature is in BETA. It requires GitHub Copilot or another VS Code language model extension. No Azure DevOps connection is needed for local file reviews.
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 |
Azure DevOps PR: AI Review PR |
Run AI code review on the current file |
Azure DevOps PR: Clear AI Review Comments |
Remove all AI review findings |
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
License
MIT License - see LICENSE for details.
Acknowledgments
Inspired by the excellent GitHub Pull Requests extension.