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

Request to be able to run and debug extensions in an empty VSCode instance #129479

Closed
jewlexx opened this issue Jul 27, 2021 · 3 comments
Closed
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@jewlexx
Copy link

jewlexx commented Jul 27, 2021

I would like to be able to run and debug my extension in a clean, as if new instance of VSCode without any other extensions present

This feature would allow the extension being developed to run without being slowed down by other extensions.

What currently happens

When I press F5 to run the extension I am working on, it starts a new VSCode instance with all my config, extensions, history, etc.

What should happen

Have an option, in package.json for example, that allows you to start the extension in a clean instance of VSCode, with the ability to whitelist extensions and config to come with you.

So when I press F5 it starts an empty VSCode instance, as if I just installed VSCode, and the only extension installed is the one I am working on, and any whitelisted ones

Example package.json config

{
	// The rest of the package.json file
	"sandbox": {
		"enabled": true,
		"whitelist": ["esbenp.prettier-vscode"]
	}
}

This is purely a quality of life feature that I think would be very beneficial and nice to have for VSCode extension developers, who want to test their extension without being weighed down by other extensions, or want to test it as if the user had just installed VSCode, without forcing them to actually get a fresh VSCode install.

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 27, 2021
@weinand weinand added this to the On Deck milestone Jul 27, 2021
@weinand weinand added the feature-request Request for new features or functionality label Jul 27, 2021
@weinand
Copy link
Contributor

weinand commented Jul 27, 2021

Using the command line flags --extensions-dir and --user-data-dir in a launch config should exactly do what you are asking for.
However, this does not yet seem to work.

@weinand
Copy link
Contributor

weinand commented Jul 27, 2021

/duplicate #126737

@weinand weinand removed this from the On Deck milestone Jul 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@weinand @jewlexx and others