Use substituted config instead of raw
See this link for details. https://code.visualstudio.com/api/references/vscode-api#DebugConfigurationProvider → resolveDebugConfigurationWithSubstitutedVariables
This commit fixes the issue that variables in debug configs are not resolved, and instead passed as-is to msedge.exe. Using the proper VS Code API easily solves it.
Before
After
How to test?
Create a debug config as below and try to launch it.
{
"name": "EdgeBrowserInternal",
"userDataDir": "${workspaceFolder}/.vscode/edge",
"type": "vscode-edge-devtools.debug",
"request": "launch",
}
Without the fix, msedge.exe will complain about non-existing user profile directory. With the fix, Microsoft Edge will launch with the customized user data directory as expected.
@vidorteg please respond
Contact Us
Hi @shanto,
Thank you for the contribution, I'll take a look and reply back.