use www.schemastore

This commit is contained in:
Martin Aeschlimann 2025-07-10 18:16:09 +02:00
parent 434260839e
commit 30cfae0d78
No known key found for this signature in database
GPG Key ID: 9851C1CA85E722F2
3 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ async function getSchemaRequestService(context: ExtensionContext, log: LogOutput
return {
getContent: async (uri: string) => {
if (cache && /^https?:\/\/json\.schemastore\.org\//.test(uri)) {
if (cache && /^https?:\/\/(json|www)\.schemastore\.org\//.test(uri)) {
const content = await cache.getSchemaIfUpdatedSince(uri, retryTimeoutInHours);
if (content) {
if (log.logLevel === LogLevel.Trace) {

View File

@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/mocharc",
"$schema": "https://www.schemastore.org/mocharc",
"ui": "tdd",
"timeout": 10000
}

View File

@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/mocharc",
"$schema": "https://www.schemastore.org/mocharc",
"ui": "bdd",
"timeout": 10000
}