Skip to content

Expand template variables in Run & Debug dropdown #124364

@harrismirza

Description

@harrismirza

When using the run and debug dropdown, any templates used in the name field are not expanded.

As an example, I have a launch config to run the tests for the current file and the name for this in the JSON is: 'Test current file - ${fileBasename}', I would expect this to appear with the filename in the dropdown, e.g. 'Test current file - xyz.ts', but instead it shows 'Test current file - ${fileBasename}'.

This screenshot also illustrates the difference, at the top, we see ${fileBasename} and underneath is the actual filename:
image

Once the test is run it appears with the fully expanded name in the Call Stack menu.

I'm not familiar with the codebase but will take a look and see if I can work out how to achieve this myself but if there is any reason this might not be feasible please let me know.

Metadata

Metadata

Labels

*out-of-scopePosted issue is not in scope of VS CodedebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions