Ensure clangd cache is out of build directory

It's annoying to rebuild index after cleaning the build directory
This commit is contained in:
Ilya Fedin 2025-05-13 05:32:51 +00:00 committed by John Preston
parent 61803f7516
commit eb028b0dad
2 changed files with 3 additions and 4 deletions

View file

@ -5,11 +5,9 @@
"vscode": { "vscode": {
"settings": { "settings": {
"C_Cpp.intelliSenseEngine": "disabled", "C_Cpp.intelliSenseEngine": "disabled",
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder}/out"
],
"cmake.generator": "Ninja Multi-Config", "cmake.generator": "Ninja Multi-Config",
"cmake.buildDirectory": "${workspaceFolder}/out" "cmake.buildDirectory": "${workspaceFolder}/out",
"cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json"
}, },
"extensions": [ "extensions": [
"ms-vscode.cpptools-extension-pack", "ms-vscode.cpptools-extension-pack",

1
.gitignore vendored
View file

@ -20,6 +20,7 @@ ipch/
.vs/ .vs/
.vscode/ .vscode/
.cache/ .cache/
compile_commands.json
/Telegram/log.txt /Telegram/log.txt
/Telegram/data /Telegram/data