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
Using --extensions-dir and --user-data-dir in a launch task does not work #126737
Launching will use my main VS Code settings and extension, while I explicitly told through "args" not to do so. It does work tho via command line code --user-data-dir=tmp/data --extensions-dir=tmp/ext testProject. While that, I noticed that with preLaunchTask it will never open.
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensions-dir=${workspaceFolder}/tmp/ext", // does not work"--user-data-dir=${workspaceFolder}/tmp/data", // does not work"--enable-proposed-api=muuvmuuv.vscode-sundial",
"${workspaceFolder}/testProject"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}
Fixing the problem that the command line options --extensions-dir and --user-data-dir don't work in debug configurations is difficult and would result in large and high-risk code changes.
However, the reason for using the command line options in the first place, is the problem that extension debugging always uses the "main VS Code settings and extensions". So, it is not possible to debug an extension in a clean environment.
But with the recent work on settings profiles, "debugging an extension in a clean environment" is now in reach.
I will close this issue in favor of the new feature request #159572: "Support extension debugging in a clean environment"
Activity
weinand commentedon Aug 10, 2021
I've created #130504 for the
--user-data-dirproblem.weinand commentedon Aug 30, 2022
Fixing the problem that the command line options
--extensions-dirand--user-data-dirdon't work in debug configurations is difficult and would result in large and high-risk code changes.However, the reason for using the command line options in the first place, is the problem that extension debugging always uses the "main VS Code settings and extensions". So, it is not possible to debug an extension in a clean environment.
But with the recent work on settings profiles, "debugging an extension in a clean environment" is now in reach.
I will close this issue in favor of the new feature request #159572: "Support extension debugging in a clean environment"