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

Add option to opt out of extensions #9177

Closed
chrmarti opened this issue Nov 6, 2023 · 2 comments
Closed

Add option to opt out of extensions #9177

chrmarti opened this issue Nov 6, 2023 · 2 comments
Assignees
Labels
containers Issue in vscode-remote containers on-testplan plan-item A plan item
Milestone

Comments

@chrmarti
Copy link
Contributor

chrmarti commented Nov 6, 2023

Tracking devcontainers/features#386 here.

@chrmarti chrmarti added containers Issue in vscode-remote containers plan-item A plan item labels Nov 6, 2023
@chrmarti chrmarti added this to the November 2023 milestone Nov 6, 2023
@chrmarti chrmarti self-assigned this Nov 6, 2023
@chrmarti
Copy link
Contributor Author

chrmarti commented Nov 6, 2023

I suggest we use the - prefix (suggested in #415) to omit extensions from being installed. This fits in the existing devcontainer.json and devcontainer-feature.json customizations, e.g., omitting one while adding another extension would look like:

"customizations": {
	"vscode": {
		"extensions": {
			"-dbaeumer.vscode-eslint",
			"ms-python.python"
		}
	}
}

Additions / removals of extensions in the devcontainer.json should take precedence over those in the devcontainer-feature.jsons and these should both take precedence over those in the base image.

@chrmarti
Copy link
Contributor Author

Available in Dev Containers 0.323.0-pre-release.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers on-testplan plan-item A plan item
Projects
None yet
Development

No branches or pull requests

1 participant