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

Support for scoped naming, e.g., @myscope/package-name? #186

Closed
vazexqi opened this issue Jun 29, 2017 · 8 comments
Closed

Support for scoped naming, e.g., @myscope/package-name? #186

vazexqi opened this issue Jun 29, 2017 · 8 comments

Comments

@vazexqi
Copy link

vazexqi commented Jun 29, 2017

I have an VS Code extension that I would like to scope to my org. In usual NPM, I would set name: @myscope/package-name in package.json.

However, when I use that with vsce, it says

vsce package
Error: Invalid extension name '@myscope/package-name

I think this is because of the regex check at https://github.com/Microsoft/vscode-vsce/blob/master/src/validation.ts#L3

Are there plans to support scoped names for extensions?

@joaomoreno
Copy link
Member

There is no upcoming support for scopes. We don't store extensions in NPM, but in the VS Marketplace.

@drochgenius
Copy link

I find it a bit confusing the vscode extensions use the package.json as their manifest, since this is the NPM package manifest file.

If vscode extensions are meant to be published only to the vscode markeplace, they could have their own manifest for publishing to that marketplace, with a different name, e.g. vscode-manifest.json.

This way it would not conflict with package.json conventions.

royra pushed a commit to salto-io/salto that referenced this issue Mar 15, 2020
microsoft/vscode-vsce#186

also: fixed package script to fail on error
royra pushed a commit to salto-io/salto that referenced this issue Mar 15, 2020
* fix: vscode extension name cannot be scoped

microsoft/vscode-vsce#186

also: fixed package script to fail on error
@eightHundreds
Copy link

vscode-private-extension-manager suport store extensions in NPM

@madcapnmckay
Copy link

+1 for scoped extension packages.

If trying to use a private extension registry scoped naming is preferable.

@strazto
Copy link

strazto commented Nov 23, 2022

@benduran
Copy link

benduran commented Mar 4, 2024

Hey folks, I know this ticket is eons old at this point, but I wanted to reopen the discussion around allowing a valid package.json#name scope.

Context: My company has been ramping up an internal extension marketplace, and we need to ensure our engineers don't accidentally publish their extensions to the public marketplace, as they're only intended for internal, company-specific consumption.

As a result, we've gain permissions to a number of Netflix-specific NPM scopes, just in case somebody does, accidentally, publish something to the public marketplace (NPM, in, particular). We use an internal NPM registry as our publishing location, hence the desire to allow for package.json scopes.

How might we best renew the discussion about this? Without an official solution from Microsoft, we're likely to start hacking around the VSCode and vcse APIs to try and accomplish what we need.

@strazto
Copy link

strazto commented Mar 5, 2024

@benduran i'm not fully clear on what you're asking but check out joelspadin-garmin/vscode-private-extension-manager#16 (comment)

@benduran
Copy link

benduran commented Mar 6, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants