3.1.41.2.21. waf_tools.vscode.process_vscode
- waf_tools.vscode.process_vscode(self: task_gen) None
Process the
vscodefeature on a task generator.This is the main hook for VS Code workspace generation. For each task generator with the
vscodefeature it:Checks that the current build variant is in
VSCODE_ALLOWED_VARIANTS.Validates the JSON templates in
tools/ide/vscode/.Creates the target
.vscodedirectory and copies the variant’s template files into it.Optionally switches the build environment to the one specified by the
environmentattribute.Patches
c_cpp_properties.jsonviabuild_c_cpp_properties().Patches
settings.jsonviabuild_settings().Patches
tasks.jsonviabuild_tasks()(ifbuild_tasksis set).Patches
launch.jsonviabuild_launch()(ifbuild_launchis set).
- Required task generator attributes:
target: The VS Code workspace variant name (must match a subdirectory in
tools/ide/vscode/).vscode_dir (Node): The output
.vscodedirectory node.
- Optional task generator attributes:
environment (str): Waf environment name to switch to before resolving compiler defines and includes.
build_tasks (bool): Whether to patch
tasks.json.build_launch (bool): Whether to patch
launch.json.