diff --git a/.gitignore b/.gitignore index b0690e7f..da73e3f2 100644 --- a/.gitignore +++ b/.gitignore @@ -129,4 +129,8 @@ dmypy.json # Pyre type checker .pyre/ -.vscode/ \ No newline at end of file +.vscode/* +# Allows custom tasks +!.vscode/tasks.json +!.vscode/easy_build.sh +!.vscode/easy_all.sh diff --git a/.vscode/easy_all.sh b/.vscode/easy_all.sh new file mode 100644 index 00000000..81fa9ca5 --- /dev/null +++ b/.vscode/easy_all.sh @@ -0,0 +1,8 @@ +# Next year could move root of clone +# Or Make custom vscode extension + +rosdep update --rosdistro=$ROS_DISTRO +rosdep install --from-paths src --ignore-src -r -y +# Stolen from colcon build command in VsCode +colcon build --symlink-install +source install/setup.bash \ No newline at end of file diff --git a/.vscode/easy_build.sh b/.vscode/easy_build.sh new file mode 100644 index 00000000..e083eacf --- /dev/null +++ b/.vscode/easy_build.sh @@ -0,0 +1,6 @@ +# Next year could move root of clone +# Or Make custom vscode extension + +# Stolen from colcon build command in VsCode +colcon build --symlink-install +source install/setup.bash \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..e4bd3e08 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,31 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "🏃‍♂️ ROS All", + "type": "shell", + "command": "bash", + "args": [ + "${workspaceFolder}/src/.vscode/easy_all.sh" + ], + "presentation": { + "panel": "dedicated", + "revealProblems": "onProblem", + }, + "problemMatcher": [] + }, + { + "label": "🏃‍♂️ ROS Quick Build", + "type": "shell", + "command": "bash", + "args": [ + "${workspaceFolder}/src/.vscode/easy_build.sh" + ], + "presentation": { + "panel": "dedicated", + "revealProblems": "onProblem", + }, + "problemMatcher": [] + } + ] +} \ No newline at end of file