mesonbuild / vscode-meson

Meson for VisualStudio Code
Apache License 2.0
105 stars 50 forks source link

[feature request] provide some command variables help select current target #236

Open sinsong opened 4 months ago

sinsong commented 4 months ago

vscode document command variables used by cmake tools documented here. A mechanics and use case help utilize launch.json.

It would be something like ${command:mesonbuild.currentTarget} and ${command:mesonbuild.currentProjectDir} used in program and cwd:

{
    "program": "${command:mesonbuild.currentTarget}",
    "cwd": "${command:mesonbuild.currentProjectDir}",
}

or something more reasonable.

BTW, I don't known why dynamic provided configure grouped in name undefined and none of those work, let vscode say Configured debug type lldb is not supported.

图片

tristan957 commented 3 months ago

Thanks for logging the feature request.