Skip to content

Commit

Permalink
Merge pull request #29 from codefreak/fix/run-configurations
Browse files Browse the repository at this point in the history
Add run configurations for all templates
  • Loading branch information
HenningCash authored Mar 23, 2021
2 parents f075378 + 5fb42a1 commit 8b512fc
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 29 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

# Ignore Gradle build output directory
build
templates/csharp/**/obj
13 changes: 13 additions & 0 deletions templates/cpp/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "Build Project",
"program": "${workspaceFolder}/build/src/ExampleProject_run",
"cwd": "${workspaceFolder}",
}
]
}
24 changes: 24 additions & 0 deletions templates/cpp/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Create build directory",
"type": "shell",
"command": "mkdir -p ${workspaceFolder}/build"
},
{
"label": "Run CMake",
"type": "shell",
"dependsOn": "Create build directory",
"command": "cmake -B ${workspaceFolder}/build",
"group": "build"
},
{
"label": "Build Project",
"type": "shell",
"dependsOn": "Run CMake",
"command": "cmake --build ${workspaceFolder}/build --config Debug --target ExampleProject_run",
"group": "build"
}
]
}
49 changes: 23 additions & 26 deletions templates/csharp/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/AddFunction/bin/Debug/netcoreapp3.0/AddFunction.dll",
"args": [],
"cwd": "${workspaceFolder}/src/AddFunction",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/AddFunction/bin/Debug/netcoreapp3.0/AddFunction.dll",
"args": [],
"cwd": "${workspaceFolder}/src/AddFunction",
"console": "integratedTerminal",
"stopAtEntry": false,
"internalConsoleOptions": "openOnSessionStart",
"pipeTransport": {
"pipeCwd": "${workspaceFolder}/src/AddFunction",
"pipeProgram": "bash",
"pipeArgs": ["-c"],
"debuggerPath": "/home/coder/bin/netcoredbg/netcoredbg",
"quoteArgs": true
}
}
,]
}
6 changes: 3 additions & 3 deletions templates/python/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"name": "Python: main.py",
"type": "python",
"request": "launch",
"program": "${file}",
"program": "${workspaceFolder}/main.py",
"console": "integratedTerminal"
}
]
}
}

0 comments on commit 8b512fc

Please sign in to comment.