You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow overwriting the launch config used by Run/Debug CodeLens links #3311
With these changes, you can use "Run" or "Debug" as the title for a CodeLens template (or ${debugType} which will be set depending on the matched template type) and it will hide the built-in Run/Debug CodeLens.
Here's an example that matches all templates (so will appear for main functions on both scripts and tests, and on test/group functions) that sets an env variable:
{"name": "env_foo2","request": "launch","type": "dart","codeLens": {"for": [// Match all templates"run-test","run-test-file","run-file","debug-test","debug-test-file","debug-file",],"title": "${debugType}",// Sets the title to just "Run" or "Debug" depending on which template (above) it matched},"env": {"DANNY": "foo2",// Custom settings can be args, env, etc.}},
changed the title [-]Allow to easily overwrite the launch config that is used when tests are run in the test folder[/-][+]Allow overwriting the launch config used by Run/Debug CodeLens links[/+]on May 26, 2021
Activity
DanTup commentedon May 18, 2021
With these changes, you can use "Run" or "Debug" as the title for a CodeLens template (or
${debugType}which will be set depending on the matched template type) and it will hide the built-in Run/Debug CodeLens.Here's an example that matches all templates (so will appear for
mainfunctions on both scripts and tests, and ontest/groupfunctions) that sets an env variable:escamoteur commentedon May 18, 2021
awesome!!!
Add a note about replacing RunDebug in CodeLens
[-]Allow to easily overwrite the launch config that is used when tests are run in the test folder[/-][+]Allow overwriting the launch config used by Run/Debug CodeLens links[/+]DanTup commentedon May 26, 2021
There's a beta version with this change in if you'd like to test it out before release:
https://github.com/Dart-Code/Dart-Code/releases/tag/v3.23.0-beta.1
If anyone doesn't work as expected, please let me know!
DanTup commentedon May 26, 2021
😬