summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchoyy <[email protected]>2026-06-24 21:52:27 +0800
committerGitHub <[email protected]>2026-06-24 21:52:27 +0800
commit4aab79c8e91e7ed2c0cf1ae033b6de1a212ea431 (patch)
tree3583797324be156c6ff0d78ceb9de1bd68e3081a
parent54cbd34ef9d50ad191f1daa4f9ca1c7fbcd4e4fb (diff)
Remove duplicate variable 'lsp'
-rw-r--r--xmake/plugins/project/clang/compile_commands.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/xmake/plugins/project/clang/compile_commands.lua b/xmake/plugins/project/clang/compile_commands.lua
index 295b1f355..2f25194cc 100644
--- a/xmake/plugins/project/clang/compile_commands.lua
+++ b/xmake/plugins/project/clang/compile_commands.lua
@@ -212,7 +212,6 @@ function _make_arguments(jsonfile, arguments, opt)
-- make body
local projectdir = os.projectdir()
-- 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