bazel-compile-commands-extractor icon indicating copy to clipboard operation
bazel-compile-commands-extractor copied to clipboard

lower drive letter on win32

Open ilev4ik opened this issue 10 months ago • 0 comments

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: https://github.com/clangd/clangd/issues/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 avatar Dec 28 '24 22:12 ilev4ik