fix(lsp): remove CMakeLists.txt and Makefile from clangd root markers (#21466)
This commit is contained in:
@@ -245,7 +245,7 @@ export namespace LSP {
|
|||||||
})
|
})
|
||||||
|
|
||||||
if (!handle) return undefined
|
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({
|
const client = await LSPClient.create({
|
||||||
serverID: server.id,
|
serverID: server.id,
|
||||||
|
|||||||
@@ -867,7 +867,7 @@ export namespace LSPServer {
|
|||||||
|
|
||||||
export const Clangd: Info = {
|
export const Clangd: Info = {
|
||||||
id: "clangd",
|
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++"],
|
extensions: [".c", ".cpp", ".cc", ".cxx", ".c++", ".h", ".hpp", ".hh", ".hxx", ".h++"],
|
||||||
async spawn(root) {
|
async spawn(root) {
|
||||||
const args = ["--background-index", "--clang-tidy"]
|
const args = ["--background-index", "--clang-tidy"]
|
||||||
|
|||||||
Reference in New Issue
Block a user