diff options
| author | chooyy <[email protected]> | 2026-06-24 15:48:44 +0800 |
|---|---|---|
| committer | chooyy <[email protected]> | 2026-06-24 15:48:44 +0800 |
| commit | 54cbd34ef9d50ad191f1daa4f9ca1c7fbcd4e4fb (patch) | |
| tree | d97262b984ccf59cbf6cb39ea5d284a941f6aa07 | |
| parent | 78efcedd2be459d02cd7758badd0dcca8b77e053 (diff) | |
workaround only for clangd
| -rw-r--r-- | xmake/plugins/project/clang/compile_commands.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua index d4b2b738f..295b1f355 100644 --- a/xmake/plugins/project/clang/compile_commands.lua +++ b/xmake/plugins/project/clang/compile_commands.lua @@ -211,7 +211,9 @@ function _make_arguments(jsonfile, arguments, opt) -- make body local projectdir = os.projectdir() - if is_host("windows") then -- workaround for drive letter casing issue, can be removed when clangd resolves https://github.com/clangd/vscode-clangd/pull/747 + -- workaround for drive letter casing issue, can be removed when clangd resolves https://github.com/clangd/vscode-clangd/pull/747 + local lsp = _get_lsp() + if is_host("windows") and (lsp == nil or lsp == "clangd") then projectdir = projectdir:gsub("^[A-Z]:", string.lower) end jsonfile:printf( |
