Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable extensions not working for extension debugging #76989

Closed
SimonSiefke opened this issue Jul 9, 2019 · 6 comments
Closed

disable extensions not working for extension debugging #76989

SimonSiefke opened this issue Jul 9, 2019 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues regression Something that used to work is now broken verified Verification succeeded
Milestone

Comments

@SimonSiefke
Copy link
Contributor

  • VSCode Version: 1.37.0-Insider
  • OS Version: Ubuntu 18.10

Steps to Reproduce:

  1. Download https://github.com/microsoft/vscode-extension-samples/tree/master/helloworld-minimal-sample
  2. Add --disable-extensions to launch.json as described in https://code.visualstudio.com/api/working-with-extensions/testing-extension#disabling-other-extensions-while-debugging:
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Run Extension",
      "type": "extensionHost",
      "request": "launch",
      "runtimeExecutable": "${execPath}",
      "args": [
        "--disable-extensions",
        "--extensionDevelopmentPath=${workspaceFolder}"
      ]
    }
  ]
}

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

Additional information:

  • calling code-insiders --disable-extensions from the command line works as expected
  • --disable-extensions in launch.json has worked in version 1.35, it stopped working in 1.36
@vscodebot vscodebot bot added the extensions Issues concerning extensions label Jul 9, 2019
@iansan5653
Copy link
Contributor

iansan5653 commented Jul 9, 2019

I am seeing the same behavior. It launches Code with an editor called --disable-extensions, and all extensions remain enabled.

System Information

Version: 1.37.0-insider (user setup)
Commit: 9296aaa
Date: 2019-07-09T05:26:27.407Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.15063

Screenshot

Note how it's throwing a warning as it overwrites the installed extension with the version being tested.
image

Launch Configuration

{
  "name": "Extension Tests",
  "type": "extensionHost",
  "request": "launch",
  "runtimeExecutable": "${execPath}",
  "args": [
    "--disable-extensions",
    "--extensionDevelopmentPath=${workspaceFolder}",
    "--extensionTestsPath=${workspaceFolder}/out/test"
  ],
  "outFiles": [
    "${workspaceFolder}/out/test/**/*.js"
  ],
  "preLaunchTask": "npm: watch"
}

@iansan5653
Copy link
Contributor

iansan5653 commented Jul 9, 2019

I just tried running the tests using the vscode-test module with launchArgs: ["--disable-extensions"] and that did succesfully disable the extensions, so this appears limited to just running as a debug task with type: "extensionHost".

@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues bug Issue identified by VS Code Team member as probable bug and removed extensions Issues concerning extensions labels Jul 9, 2019
@weinand weinand added this to the July 2019 milestone Jul 9, 2019
@Septh
Copy link

Septh commented Jul 24, 2019

Until this is fixed, using --disable-extensions=1 seems to do the trick:

  "args": [
    "--extensionDevelopmentPath=${workspaceFolder}",
    "--disable-extensions=1"
  ],

@weinand weinand added the regression Something that used to work is now broken label Jul 26, 2019
@weinand
Copy link
Contributor

weinand commented Jul 26, 2019

Please try and verify the fix in the next Insiders build.

@SimonSiefke
Copy link
Contributor Author

works great, thanks!

@weinand weinand added the verified Verification succeeded label Jul 30, 2019
Logerfo added a commit to Logerfo/csharp-colors that referenced this issue Jul 31, 2019
@iansan5653
Copy link
Contributor

Can also verify, thank you!

@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues regression Something that used to work is now broken verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants