Skip to content

Using --extensions-dir and --user-data-dir in a launch task does not work #126737

Closed

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.57.1 507ce72 arm64
  • OS Version: macOS 11.4

Steps to Reproduce:

  1. clone https://github.com/muuvmuuv/vscode-sundial
  2. run launch task

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"
      ]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issueswont-fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions