summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-02 21:25:08 +0000
committerGitHub <noreply@github.com>2021-08-02 21:25:08 +0000
commita7bc8de4e77d5c0fb6313d6fc42977543c9df5c4 (patch)
tree4d74285ded6a2f54a2abb70331f9cfe90d1def4b /.vscode
parenta8098903cd39114b4daeae2311f3f517566105d7 (diff)
downloadlibgit2-a7bc8de4e77d5c0fb6313d6fc42977543c9df5c4.tar.gz
Update VSCode / Github Codespaces workflow
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json27
-rw-r--r--.vscode/tasks.json27
2 files changed, 54 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 000000000..d47d93aab
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,27 @@
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "(gdb) Launch",
+ "type": "cppdbg",
+ "request": "launch",
+ "program": "${workspaceFolder}/build/libgit2_clar",
+ "args": [],
+ "stopAtEntry": false,
+ "cwd": "${fileDirname}",
+ "environment": [],
+ "externalConsole": false,
+ "MIMode": "gdb",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for gdb",
+ "text": "-enable-pretty-printing",
+ "ignoreFailures": true
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 000000000..9618f4502
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,27 @@
+{
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
+ // for the documentation about the tasks.json format
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "Build",
+ "type": "shell",
+ "command": "cd build && cmake --build .",
+ "group": "build",
+ "presentation": {
+ "reveal": "always",
+ "panel": "new"
+ }
+ },
+ {
+ "label": "Run Tests",
+ "type": "shell",
+ "command": "build/libgit2_clar -v",
+ "group": "test",
+ "presentation": {
+ "reveal": "always",
+ "panel": "new"
+ }
+ }
+ ]
+ } \ No newline at end of file