Skip to content

lower drive letter on win32 - #236

Open
ilev4ik wants to merge 2 commits into
hedronvision:mainfrom
ilev4ik:feature/lower_drive_if_win32
Open

lower drive letter on win32#236
ilev4ik wants to merge 2 commits into
hedronvision:mainfrom
ilev4ik:feature/lower_drive_if_win32

Conversation

@ilev4ik

@ilev4ik ilev4ik commented Dec 28, 2024

Copy link
Copy Markdown

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).

@ilev4ik ilev4ik closed this May 25, 2026
@ilev4ik ilev4ik reopened this May 25, 2026
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