From aced84735b5ec980ee2fbb3a1cd8675818dc2e2c Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Sat, 3 Jul 2021 13:08:31 +0200 Subject: [PATCH] update vscode settings --- .gitignore | 1 + .vscode/scripts/download.sh | 4 ++++ .vscode/settings.linux.json | 6 ++++++ 3 files changed, 11 insertions(+) create mode 100644 .vscode/settings.linux.json diff --git a/.gitignore b/.gitignore index 8ce6710c7..d2177d8e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.cache debian/*.debhelper debian/*.log debian/*.substvars diff --git a/.vscode/scripts/download.sh b/.vscode/scripts/download.sh index 064c7c0d6..1d039fef3 100644 --- a/.vscode/scripts/download.sh +++ b/.vscode/scripts/download.sh @@ -1,6 +1,10 @@ #!/bin/bash stratagus_folder="$1" +if [ ! -e "${stratagus_folder}/.vscode/settings.json" ]; then + cp "${stratagus_folder}/.vscode/settings.linux.json" "${stratagus_folder}/.vscode/settings.json" +fi + if [ ! -d "${stratagus_folder}/../wargus" ]; then git clone https://github.com/Wargus/wargus "${stratagus_folder}/../wargus" fi diff --git a/.vscode/settings.linux.json b/.vscode/settings.linux.json new file mode 100644 index 000000000..8693f56d7 --- /dev/null +++ b/.vscode/settings.linux.json @@ -0,0 +1,6 @@ +{ + "cmake.configureSettings": { + "CMAKE_BUILD_TYPE": "Debug" + }, + "cmake.copyCompileCommands": "${workspaceFolder}/compile_commands.json" +}