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

Rename #71

Open maks-ivanov opened 1 week ago

maks-ivanov commented 1 week ago

Description


Changes walkthrough

Relevant files
Enhancement
7 files
api_types.rs
Add structs and conversion logic for rename operations                 

lsproxy/src/api_types.rs
  • Added new structs RenameRequest, RenameResponse, and TextEdit for
    rename operations.
  • Implemented conversion logic from WorkspaceEdit to RenameResponse.
  • +52/-1   
    mod.rs
    Integrate rename module into handlers                                                   

    lsproxy/src/handlers/mod.rs - Integrated the rename module into handlers.
    +2/-1     
    rename.rs
    Implement rename handler with HTTP response management                 

    lsproxy/src/handlers/rename.rs
  • Implemented a new handler for renaming symbols.
  • Added HTTP response handling and error management.
  • +49/-0   
    lib.rs
    Integrate rename handler and update OpenAPI components                 

    lsproxy/src/lib.rs
  • Added rename handler to the server setup.
  • Updated OpenAPI components with rename-related schemas.
  • +12/-4   
    client.rs
    Add rename method to LSP client                                                               

    lsproxy/src/lsp/client.rs - Added `text_document_rename` method to the LSP client.
    +30/-30 
    manager.rs
    Add rename symbol method with Java restriction                                 

    lsproxy/src/lsp/manager.rs
  • Added rename_symbol method to the manager for handling rename
    operations.
  • Restricted rename functionality to Java files.
  • +27/-24 
    test.sh
    Enhance test script output visibility                                                   

    scripts/test.sh
  • Modified test script to include --nocapture for better test output
    visibility.
  • +1/-1     
    Configuration changes
    1 files
    run.sh
    Support port configuration in run script                                             

    scripts/run.sh - Added support for port configuration via environment variable.
    +4/-1     
    Documentation
    1 files
    openapi.json
    Add rename endpoint and schemas to OpenAPI                                         

    openapi.json
  • Added API endpoint for renaming symbols.
  • Defined request and response schemas for rename operations.
  • +86/-0   
    💡 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 1 week ago

    Things to consider 🐛