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

Warning An icon requires a repository with HTTPS protocol to be specified in this package.json. on icon in package.json despite everything working correctly #170049

Closed
segevfiner opened this issue Dec 26, 2022 · 5 comments · Fixed by #182606
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions-development Issues for developing extensions insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@segevfiner
Copy link
Contributor

segevfiner commented Dec 26, 2022

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.74.2
  • OS Version: macOS 12.6.2

Steps to Reproduce:

  1. Create an extension and specify a relative path to an icon in the package.json in png format, and specify repository as "repository": {}. (Our repository is private)
  2. We get a warning An icon requires a repository with HTTPS protocol to be specified in this package.json., despite the icon showing correctly in the marketplace and the VS Code extension manager (We also have images in our README.md that we hosted externally. Our repository is private after all).

Extension: https://marketplace.visualstudio.com/items?itemName=Swimm.swimm

@maninak
Copy link

maninak commented Apr 5, 2023

I get the same warning

image

despite my fields being defined as

"icon": "./assets/marketplace-icon.png",
"repository": "https://github.com/cytechmobile/radicle-vscode-extension",

Source: https://github.com/cytechmobile/radicle-vscode-extension/blob/a285b81f75c6152253114b2569e206709c1c4451/package.json#L10

Interestingly the icon shows up in the marketplace just fine.

image

@chrmarti
Copy link
Contributor

chrmarti commented Apr 6, 2023

@joaomoreno I see the icon is served from the CDN now and we can remove the warning about the relative icon path. What about badges in the package.json and images in the README markdown, are these also served from CDN?

@chrmarti chrmarti added debt Code quality issues extensions-development Issues for developing extensions labels Apr 6, 2023
@joaomoreno
Copy link
Member

Those are all served from the raw GitHub routes, this is why vsce needs to know what repository hosts the sources.

@segevfiner
Copy link
Contributor Author

But the icon isn't, not anymore at least... Our repo is private, the icon works just fine and is uploaded along with the vsix and hosted in some CDN. Images in the readme are indeed served directly so will require this check or an absolute URLs.

@joaomoreno
Copy link
Member

Ah! This is just the workbench linter. I also forgot that we actually show the icons served directly from the MP, not GH. Sorry about the confusion, thanks for following up @segevfiner.

@chrmarti This warning is unnecessary by now, let's remove it.

@chrmarti chrmarti added bug Issue identified by VS Code Team member as probable bug and removed debt Code quality issues labels May 16, 2023
@chrmarti chrmarti added this to the May 2023 milestone May 16, 2023
chrmarti added a commit that referenced this issue May 16, 2023
chrmarti added a commit that referenced this issue May 16, 2023
@vscodenpa vscodenpa added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 16, 2023
@DonJayamanne DonJayamanne added the verified Verification succeeded label Jun 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extensions-development Issues for developing extensions insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants