VS Code warns about non-https relative image links in markdown files, with this message:
Relative image URLs require a repository with HTTPS protocol to be specified in the package.json.
If I update package.json to include a repository with an HTTPS URL, this warning goes away:
"repository": {
"type": "git",
"url": "https://github.com/user/repo"
}
However, there are other ways to specify a repository url. For example:
"repository": "github:user/repo"
In this case, the "repository" link will point to https://github.com/user/repo. But the extension-linter does not detect this case, and still shows the warning.
- VSCode Version: 1.28.0 (user setup)
- OS Version: Windows 10
Steps to Reproduce:
- Create a new GitHub project, and add a new VS Code extension to the repository.
- In
package.json, specify the repository as "repository": "github:user/repo".
- In
README.md, reference an image by its relative path.
- Open out the "problems" tab in VS Code.
Expected: No problems are reported.
Actual: extension-linter reports the warning Relative image URLs require a repository with HTTPS protocol to be specified in the package.json.
- Change the
repository property's value to:
"repository": {
"type": "git",
"url": "https://github.com/user/repo"
}
Expected: No problems are reported.
Actual: Behaves as expected (no problems are reported).
Does this issue occur when all extensions are disabled?: Yes/No
VS Code warns about non-https relative image links in markdown files, with this message:
If I update package.json to include a repository with an HTTPS URL, this warning goes away:
However, there are other ways to specify a repository url. For example:
In this case, the "repository" link will point to https://github.com/user/repo. But the extension-linter does not detect this case, and still shows the warning.
Steps to Reproduce:
package.json, specify therepositoryas"repository": "github:user/repo".README.md, reference an image by its relative path.Expected: No problems are reported.
Actual:
extension-linterreports the warningRelative image URLs require a repository with HTTPS protocol to be specified in the package.json.repositoryproperty's value to:Expected: No problems are reported.
Actual: Behaves as expected (no problems are reported).
Does this issue occur when all extensions are disabled?: Yes/No