diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index b3bd9d815..0646db05e 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -5,7 +5,9 @@ "includePath": [ "/usr/include", "/usr/local/include", - "${workspaceRoot}" + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" ], "defines": [], "intelliSenseMode": "clang-x64", @@ -13,13 +15,16 @@ "path": [ "/usr/include", "/usr/local/include", - "${workspaceRoot}" + "${workspaceRoot}", + "${workspaceFolder}/src", + "${workspaceRoot}/externals/linux/include" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" }, "cStandard": "c11", - "cppStandard": "c++17" + "cppStandard": "c++17", + "compileCommands": "${workspaceFolder}/build/ninja_debug/compile_commands.json" }, { "name": "Windows", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 33acee04d..db0a3719c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -14,24 +14,21 @@ "focus": false, "panel": "shared" }, - "group": { - "kind": "build", - "isDefault": true - } + "group": "build" }, { - "label": "server_build", + "label": "server_build", "type": "shell", "command": ".\\tools\\buildsparkd.cmd", - "problemMatcher": { - "base": "$gcc", + "problemMatcher": { + "base": "$gcc", "owner": "cpp", "fileLocation": [ "relative", - "${workspaceFolder}" + "${workspaceFolder}" ], "pattern": { - "regexp": "(.?)(home)(.?)(bts)(.?)(spark)(.?)(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)", + "regexp": "(.?)(home)(.?)(bts)(.?)(spark)(.?)(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)", "file": 8, "line": 9, "column": 10, @@ -49,6 +46,18 @@ "kind": "build", "isDefault": true } - } + }, + { + "label": "linux build (Debug)", + "type": "shell", + "command": "cd build/ninja_debug; time ninja", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [ + "$gcc" + ] + } ] } \ No newline at end of file