agentic-labs / lsproxy

Multi-language code navigation API in a container
https://lsproxy.dev
GNU Affero General Public License v3.0
43 stars 3 forks source link

ast grep, filtering #58

Closed maks-ivanov closed 3 weeks ago

maks-ivanov commented 3 weeks ago

Description


Changes walkthrough

Relevant files
Enhancement
workspace_documents.rs
Refactor file watching and add language-specific constants         

lsproxy/src/utils/workspace_documents.rs
  • Removed internal debouncer and used external receiver for file
    watching.
  • Added constants for exclude patterns and root files for Python,
    TypeScript, and Rust.
  • Updated tests to reflect changes in file watching mechanism.
  • Refactored file watching logic to use broadcast channels.
  • +68/-52 
    api_types.rs
    Simplify SymbolResponse and update Symbol struct                             

    lsproxy/src/api_types.rs
  • Simplified SymbolResponse type to a vector of Symbol.
  • Updated Symbol struct to include identifier_position and range.
  • Adjusted related request structures.
  • +13/-197
    definitions_in_file.rs
    Replace LSP-based symbol retrieval with AST grep                             

    lsproxy/src/handlers/definitions_in_file.rs
  • Replaced LSP-based symbol retrieval with AST grep in
    definitions_in_file handler.
  • Simplified error handling and response structure.
  • Updated tests to reflect changes in symbol retrieval.
  • +73/-131
    💡 Usage Guide ### Checking Your Pull Request Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later. ### Talking to CodeAnt AI Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
    @codeant-ai ask: Your question here
    
    This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code. ### Retrigger review Ask CodeAnt AI to review the PR again, by typing:
    @codeant-ai: review
    
    ### Check Your Repository Health To analyze the health of your code repository, visit our dashboard at [app.codeant.ai](https://app.codeant.ai). This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
    codeant-ai[bot] commented 3 weeks ago

    Things to consider 🐛