is it possible to have a project / a workspace in vscode that includes a extension? I want to have a language extension as part of my project workspace so I need only one repository to sync.
I know there is something like a recommended extension settings, but it's not a public available extension. I'm working on a project for which I have created a custom language extension for my own script language. I don't want to make a public release for the language as I only use it for my private projects. VS Code seems to install the extensions in the folder %userprofile%.vscode\extensions\
Is it possible to pull the extension into the project / workspace without relaying on files in the default extensions folder?
This might be what you need, see v1.88 Release Notes: local workspace extensions.
Local Workspace Extensions
This feature is available for preview in the Insiders release via experimental setting. Try it out and let us know your feedback by creating issues in the VS Code repository
We are excited to introduce this new preview feature that allows you to package an extension directly in your workspace. This feature is designed to cater to your specific workspace needs and provide a more tailored development experience. To utilize this feature, you need to package your extension in the
.vscode/extensions
folder within your workspace. VS Code then shows this extension in the Worskpace Recommendations section of the Extensions view from where user can install it and VS Code installs this extension only for that workspace. It also requires the user to trust the workspace before installing and running this extension.For instance, consider the
vscode-selfhost-test-provider
extension in the VS Code repository. This extension plugs in test capabilities, enabling contributors to view and run tests directly within the workspace. Following screenshot shows thevscode-selfhost-test-provider
extension in the Workspace Recommendations section of the Extensions view and the ability to install it.
I believe I have this working and will post some steps soon.