mesonbuild / vscode-meson

Meson for VisualStudio Code
Apache License 2.0
99 stars 49 forks source link

Pass environment to the testing debugger #241

Closed cskeogh closed 6 days ago

cskeogh commented 2 weeks ago

The C++ debugger requires "environment" key in the format [ { "name": "config", "value": "Debug" } ] https://code.visualstudio.com/docs/cpp/launch-json-reference

Note: I think Javascript uses 'env'. Python uses 'env'. Annoying. This patch doesn't account for Javascript or Python. Not sure if that is a problem.

Fixes #240

tristan957 commented 1 week ago

Could you make a note in the source code that this would only work for the C/C++ debugger from the C/C++ extension (presumably that's what you mean?)

tristan957 commented 1 week ago

Actually, maybe it would be better to special case it in a if statement?

cskeogh commented 1 week ago

Actually, maybe it would be better to special case it in a if statement?

I added the if statement 👍

tristan957 commented 1 week ago

Can you squash the commits? I'll make a new release today.

cskeogh commented 1 week ago

Can you squash the commits? I'll make a new release today.

Squashed 👍