Skip to content

Commit 24c5f91

Browse files
committed
Add source script for ament tasks
1 parent f73970b commit 24c5f91

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
".vscode",
7171
".vscode-insiders",
7272
".devcontainer/devcontainer.json"
73-
]
73+
],
74+
"ament-task-provider.envSetup": "source /opt/ros/humble/setup.bash",
7475
}

.vscode/tasks.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
"command": "sudo rm -fr build install log; sudo py3clean .",
5555
"problemMatcher": []
5656
},
57+
{
58+
"label": "source",
59+
"detail": "Source workspace",
60+
"type": "shell",
61+
"command": "source /opt/ros/humble/setup.bash",
62+
"problemMatcher": []
63+
},
5764
// Linting and static code analysis tasks
5865
{
5966
"label": "fix",

0 commit comments

Comments
 (0)