fix(lsp): remove CMakeLists.txt and Makefile from clangd root markers

pull/21466/head
Cho HyeonJong 2026-04-08 15:44:20 +09:00
parent ae614d919f
commit e671f24486
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ export namespace LSP {
})
if (!handle) return undefined
log.info("spawned lsp server", { serverID: server.id })
log.info("spawned lsp server", { serverID: server.id, root })
const client = await LSPClient.create({
serverID: server.id,

View File

@ -867,7 +867,7 @@ export namespace LSPServer {
export const Clangd: Info = {
id: "clangd",
root: NearestRoot(["compile_commands.json", "compile_flags.txt", ".clangd", "CMakeLists.txt", "Makefile"]),
root: NearestRoot(["compile_commands.json", "compile_flags.txt", ".clangd"]),
extensions: [".c", ".cpp", ".cc", ".cxx", ".c++", ".h", ".hpp", ".hh", ".hxx", ".h++"],
async spawn(root) {
const args = ["--background-index", "--clang-tidy"]