Skip to content
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

lower drive letter on win32 #236

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilev4ik
Copy link

@ilev4ik ilev4ik commented Dec 28, 2024

I want to create compile_commands.json with 'directory' with lowered (explicitly specified) drive letter.
This pullrequest is a workaround for a known clangd issue: clangd/clangd#108

Clangd engine doesn't differ 'Windows paths' if they are provided by case-insensitive manner:
The two are treated if they are different:

  • "C:/path/to/file"
  • "c:/path/to/file"

Thus the engine response contains duplicate paths. They differ only by drive letter case. So VSCode API doesn't accept such reponses - e.g. it rejects to apply changes on 'applyEdits' (f2 key for refactoring).

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.

1 participant