Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix " Access Denied to perform this action: View user permissions on a resource" while publishing my custom vscode extension

I have written a vs-code extension and I packaged it successfully, but I had beaten by an error while publishing it.

$ vsce publish ... ... Access Denied: Srikanth Bhamidipalli needs the following permission(s) on the resource /Srikanth to perform this action: View user permissions on a resource

I expect it should publish.

like image 401
Sri Kanth Avatar asked Sep 26 '19 14:09

Sri Kanth


1 Answers

This happened to me when the name of my publisher didn't match the publisher in my package.json file.

I created my publisher online using my web browser and the publisher ID was PetrHudeek. With vsce, I logged in using my personal access token to an account with that publisher, but my package.json file had hudecekpetr as the publisher.

Make sure that the value of the key publisher in your package.json matches your publisher ID online (the string after https://marketplace.visualstudio.com/manage/publishers/ in the URL).

like image 158
Petr Hudeček Avatar answered Sep 19 '22 08:09

Petr Hudeček