make compile_commands.json when opening directory

This commit is contained in:
2025-01-13 00:14:52 +01:00
parent d3585ada15
commit 676f27c094
3 changed files with 13 additions and 2 deletions

12
.vscode/tasks.json vendored
View File

@@ -1,4 +1,5 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
@@ -47,7 +48,14 @@
"isDefault": false
},
"detail": "builds the program for web using emscripten"
},
{
"label": "create compile_commands.json",
"type": "shell",
"command": "bear -- make",
"runOptions": {
"runOn": "folderOpen"
}
}
],
"version": "2.0.0"
]
}