Skip to content
| Marketplace
Sign in
Visual Studio Code>Other> ADO ReferencerNew to Visual Studio Code? Get it now.
 ADO Referencer

ADO Referencer

Chase_Lee

| (0) | Free
Links the classes and functions used within a project to their corresponding ADO repository
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ADO Referencer Extension

This VSCode extension helps you search for external functions and classes on Microsoft documentation when they don't belong to your current project.

Features

  • Smart Detection: Automatically detects whether a selected function/class is from your current project or from external libraries (NuGet packages, npm modules, etc.)
  • Search on ADO: Provides a context menu option to search external functions on Microsoft documentation
  • Easy Access: Right-click context menu integration for quick access
  • Token Caching: Efficiently caches Azure authentication tokens to improve performance and reduce API calls
  • Automatic Token Refresh: Seamlessly refreshes expired tokens with retry logic for uninterrupted searches

How to Use

  1. Select a function or class name in your code editor
  2. Right-click to open the context menu
  3. Click "Search on ADO" from the menu
  4. The extension will:
    • Check if the selected text is defined in your current project
    • If it's external (not found locally), it will open Microsoft Docs search in your browser
    • If it's local, it will inform you that ADO search is for external libraries only

Examples

External Functions (will open Microsoft Docs):

  • console.log (JavaScript built-in)
  • axios.get (npm package function)
  • HttpClient.GetAsync (C# .NET method)
  • JsonSerializer.Serialize (C# .NET method)
  • lodash.map (npm package function)

Local Functions (will show info message):

  • Functions defined in your current project files
  • Classes created in your workspace
  • Local variables and methods

Installation

  1. Open VSCode
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "ADO Referencer"
  4. Click Install

Development

To run this extension in development mode:

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run compile to build the extension
  4. Press F5 to open a new Extension Development Host window
  5. Test the extension with the provided test-example.js file

Commands

  • ado-referencer.searchOnADO: Search selected text on Microsoft Docs (available in right-click context menu)

Configuration

The extension supports the following configuration options:

  • adoReferencer.azureDevOps.tokenCacheTTLMinutes: Time-to-live for cached authentication tokens in minutes (default: 50). Azure tokens typically expire in 60 minutes, so this should be less than that.
  • adoReferencer.azureDevOps.authToken: Optional Personal Access Token (PAT) for authentication. If not set, the extension uses DefaultAzureCredential (Azure CLI login).
  • adoReferencer.azureDevOps.priorityProjects: List of project names to search first for faster results (supports wildcards like WD.*).
  • adoReferencer.azureDevOps.maxConcurrentSearches: Maximum number of concurrent project searches (default: 5).

Authentication

The extension uses Azure authentication with intelligent token caching:

  1. DefaultAzureCredential (Primary): Uses your Azure CLI login (az login) or other Azure credential sources
  2. Personal Access Token (Fallback): Can be configured in settings if preferred

Token caching features:

  • Tokens are cached for the configured TTL (default 50 minutes)
  • Automatic refresh when tokens are 80% expired
  • Retry logic for failed requests with fresh tokens
  • Progress notifications when acquiring new tokens

Requirements

  • VSCode 1.103.0 or higher

Known Issues

  • The extension searches for function definitions using regex patterns, which may not catch all edge cases
  • Performance is optimized by limiting file searches to 100 files maximum
  • Only searches common file extensions (.ts, .js, .cs, .py, .java, .cpp, .c, .h)

Release Notes

0.0.1

Initial release with basic functionality:

  • Context menu integration
  • Smart detection of external vs local functions
  • Microsoft Docs search integration
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft