mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
Missing check (#56170)
This commit is contained in:
parent
ba6a26f8cc
commit
f3cc067797
|
@ -249,7 +249,7 @@ export class ExtensionLinter {
|
|||
private readPackageJsonInfo(folder: Uri, tree: JsonNode) {
|
||||
const engine = tree && findNodeAtLocation(tree, ['engines', 'vscode']);
|
||||
const repo = tree && findNodeAtLocation(tree, ['repository', 'url']);
|
||||
const uri = parseUri(repo.value);
|
||||
const uri = repo && parseUri(repo.value);
|
||||
const info: PackageJsonInfo = {
|
||||
isExtension: !!(engine && engine.type === 'string'),
|
||||
hasHttpsRepository: !!(repo && repo.type === 'string' && repo.value && uri && uri.scheme.toLowerCase() === 'https')
|
||||
|
|
Loading…
Reference in a new issue