From eb028b0dad1bca07f5db19b644d1f8954df44b49 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 13 May 2025 05:32:51 +0000 Subject: [PATCH] Ensure clangd cache is out of build directory It's annoying to rebuild index after cleaning the build directory --- .devcontainer.json | 6 ++---- .gitignore | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index 366f6ed46a..16a1bcc119 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -5,11 +5,9 @@ "vscode": { "settings": { "C_Cpp.intelliSenseEngine": "disabled", - "clangd.arguments": [ - "--compile-commands-dir=${workspaceFolder}/out" - ], "cmake.generator": "Ninja Multi-Config", - "cmake.buildDirectory": "${workspaceFolder}/out" + "cmake.buildDirectory": "${workspaceFolder}/out", + "cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json" }, "extensions": [ "ms-vscode.cpptools-extension-pack", diff --git a/.gitignore b/.gitignore index f893d4badb..35282e1e49 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ ipch/ .vs/ .vscode/ .cache/ +compile_commands.json /Telegram/log.txt /Telegram/data