Skip to content

Commit 9c1c061

Browse files
authored
fix(lsp): remove CMakeLists.txt and Makefile from clangd root markers (#21466)
1 parent d82b163 commit 9c1c061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/opencode/src/lsp/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export namespace LSP {
245245
})
246246

247247
if (!handle) return undefined
248-
log.info("spawned lsp server", { serverID: server.id })
248+
log.info("spawned lsp server", { serverID: server.id, root })
249249

250250
const client = await LSPClient.create({
251251
serverID: server.id,

packages/opencode/src/lsp/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ export namespace LSPServer {
867867

868868
export const Clangd: Info = {
869869
id: "clangd",
870-
root: NearestRoot(["compile_commands.json", "compile_flags.txt", ".clangd", "CMakeLists.txt", "Makefile"]),
870+
root: NearestRoot(["compile_commands.json", "compile_flags.txt", ".clangd"]),
871871
extensions: [".c", ".cpp", ".cc", ".cxx", ".c++", ".h", ".hpp", ".hh", ".hxx", ".h++"],
872872
async spawn(root) {
873873
const args = ["--background-index", "--clang-tidy"]

0 commit comments

Comments
 (0)