Skip to content

fix: more robust handling of file paths in context server #985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 18, 2025

Conversation

breedloj
Copy link
Contributor

Problem

Context server used basic string parsing to naively convert URIs to file paths. This is brittle. Additionally there was a bug where old files were erroneously being passed as new files in the rename handler.

Solution

Use vscode.URI.parse instead of naive string parsing. Also fixed the rename handler.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@breedloj breedloj requested a review from a team as a code owner April 17, 2025 18:20
@ege0zcan ege0zcan merged commit b2033d7 into main Apr 18, 2025
6 checks passed
@ege0zcan ege0zcan deleted the breedloj-patch-1 branch April 18, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants