Skip to content

Interactive variable replacment also supported for string commands #1315

Closed
@isidorn

Description

@isidorn

Hello friends, I am from the vscode team and some users are reporting an issue with debugging powershell. More datils can be found here microsoft/vscode#49390

After investigating I noticed that your command SpecifyScriptArgs which is used to substitue values before debugging is returning an array of strings instead of a string. This was never officialy supported, and with the refactoring on the vscode side we are more strict and only allow strings.
Bottom line you should change a cast to array to simply return a string and not an array here

return new Array(text);

Make sure that all your commands which are used for launch.json configs are returning strings and not array.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions