Skip to content

Commit

Permalink
Merge pull request #91237 from PMExtra/patch-1
Browse files Browse the repository at this point in the history
Fix a small bug of JsonValidation
  • Loading branch information
aeschli committed Feb 25, 2020
2 parents bcfaafb + fa9f413 commit 8d7d2f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class JSONValidationExtensionPoint {
} catch (e) {
collector.error(nls.localize('invalid.url.fileschema', "'configuration.jsonValidation.url' is an invalid relative URL: {0}", e.message));
}
} else if (!strings.startsWith(uri, 'https:/') && strings.startsWith(uri, 'https:/')) {
} else if (!strings.startsWith(uri, 'http://') && !strings.startsWith(uri, 'https://')) {
collector.error(nls.localize('invalid.url.schema', "'configuration.jsonValidation.url' must start with 'http:', 'https:' or './' to reference schemas located in the extension"));
return;
}
Expand Down

0 comments on commit 8d7d2f6

Please sign in to comment.