Closed maks-ivanov closed 1 month ago
In lsproxy/src/lsp/workspace_documents.rs
, lines 144-150, the adjustment of end_line
and end_char
when end_line
exceeds total_lines
might not handle cases where total_lines
is zero, leading to a potential panic when subtracting one from zero.
In lsproxy/src/lsp/client.rs
, line 374, the name
field for the fallback workspace folder uses root_path.to_string()
. This might not provide a meaningful name if root_path
is a complex path. Consider extracting a more descriptive name.
Description
.git
.notify-debouncer-mini
.Changes walkthrough
api_types.rs
Remove unused logs and enhance error handling
lsproxy/src/api_types.rs
debug
log imports and statements.warn
logs.client.rs
Optimize workspace folder handling
lsproxy/src/lsp/client.rs
python.rs
Update Python root files list
lsproxy/src/lsp/languages/python.rs - Removed `.git` from Python root files list.
typescript.rs
Update TypeScript root files list
lsproxy/src/lsp/languages/typescript.rs - Removed `.git` from TypeScript root files list.
manager.rs
Sort files in LspManager
lsproxy/src/lsp/manager.rs - Sorted files in `LspManager`.
workspace_documents.rs
Add debounce and enhance range extraction
lsproxy/src/lsp/workspace_documents.rs
notify
withnotify-debouncer-mini
.main.rs
Update main imports
lsproxy/src/main.rs - Added `set_mount_dir` import.
Cargo.toml
Add notify-debouncer-mini dependency
lsproxy/Cargo.toml - Added `notify-debouncer-mini` dependency.
š” 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: 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: ### 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.