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

vsce package always asks for a token #1076

Closed
Netzeband opened this issue Nov 4, 2024 · 4 comments
Closed

vsce package always asks for a token #1076

Netzeband opened this issue Nov 4, 2024 · 4 comments
Labels
info-needed Issue requires more information from poster

Comments

@Netzeband
Copy link

Netzeband commented Nov 4, 2024

Hello

I'm just a VSCode user and not an extension developer.
However, I found a bug in one of the extensions I use and saw inside the code, that it is a one line change, which needs to be done here.
So my idea was to just clone the repository, do the change, create an VSIX file locally and install it in my VSCode installation. Of course I also tell the author of the extension about the bug, but before I get this fix, it may take some time.

However, every time when I execute vsce package it asks me for an personal access token to Azure. I really don't want to publish anything, I don't have an Azure account, I don't need an Azure account, therefore I don't have a token. I don't want to have an account or token.

I cannot find any option to tell vsce to just create the VSIX file for me. I just found similar topics here in the repro like:
#487 and #328 but they don't have a real solution to that.

So how can I just create the VSIX files to manually install the extension to my local VSCode installation?

@benibenj
Copy link
Contributor

benibenj commented Nov 5, 2024

What you probably want to do is remove the publisher name from the package.json file.

@benibenj benibenj added the info-needed Issue requires more information from poster label Nov 5, 2024
@Netzeband
Copy link
Author

Hello, I did this, but then vsce complains, that the key publisher is not defined.

@benibenj
Copy link
Contributor

benibenj commented Nov 7, 2024

Are you using the latest @vscode/vsce version? What version are you using?

@Netzeband
Copy link
Author

Thanks a lot, the question for the version was good. It pointed me to the fact that the vsce version I'm using was quite old. I updated it to 3.2.1 and now it works without the publisher key in. Thanks for helping me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants