Files
Claude-Code-Workflow/ccw-vscode-bridge
catlog22 2f3a14e946 Add unit tests for LspGraphBuilder class
- Implement comprehensive unit tests for the LspGraphBuilder class to validate its functionality in building code association graphs.
- Tests cover various scenarios including single level graph expansion, max nodes and depth boundaries, concurrent expansion limits, document symbol caching, error handling during node expansion, and edge cases such as empty seed lists and self-referencing nodes.
- Utilize pytest and asyncio for asynchronous testing and mocking of LspBridge methods.
2026-01-20 12:49:31 +08:00
..

CCW VSCode Bridge

This extension provides a bridge between the CCW MCP server and VSCode's live Language Server Protocol (LSP) features.

Features

  • Exposes VSCode LSP features via HTTP API on http://127.0.0.1:3457
  • Supports:
    • Go to Definition
    • Find References
    • Hover Information
    • Document Symbols

Installation

  1. Install dependencies:

    npm install
    
  2. Compile the extension:

    npm run compile
    
  3. Press F5 in VSCode to launch the extension in debug mode, or:

    • Run vsce package to create a VSIX file
    • Install the VSIX file in VSCode

API Endpoints

All endpoints accept POST requests with JSON body:

/get_definition

{
  "file_path": "/absolute/path/to/file.ts",
  "line": 10,
  "character": 5
}

/get_references

{
  "file_path": "/absolute/path/to/file.ts",
  "line": 10,
  "character": 5
}

/get_hover

{
  "file_path": "/absolute/path/to/file.ts",
  "line": 10,
  "character": 5
}

/get_document_symbols

{
  "file_path": "/absolute/path/to/file.ts"
}

Usage with CCW MCP

The CCW MCP server includes a vscode_lsp tool that communicates with this extension automatically.