Skip to content

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