From 30cfae0d788bbf3ad488f2d6a713b9ec40844a8c Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 10 Jul 2025 18:16:09 +0200 Subject: [PATCH] use www.schemastore --- .../json-language-features/client/src/node/jsonClientMain.ts | 2 +- test/.mocharc.json | 2 +- test/monaco/.mocharc.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/json-language-features/client/src/node/jsonClientMain.ts b/extensions/json-language-features/client/src/node/jsonClientMain.ts index d57ebf80834..1172d6cbde1 100644 --- a/extensions/json-language-features/client/src/node/jsonClientMain.ts +++ b/extensions/json-language-features/client/src/node/jsonClientMain.ts @@ -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) { diff --git a/test/.mocharc.json b/test/.mocharc.json index 1397b6053a3..fc49e399493 100644 --- a/test/.mocharc.json +++ b/test/.mocharc.json @@ -1,5 +1,5 @@ { - "$schema": "https://json.schemastore.org/mocharc", + "$schema": "https://www.schemastore.org/mocharc", "ui": "tdd", "timeout": 10000 } diff --git a/test/monaco/.mocharc.json b/test/monaco/.mocharc.json index fd9de38be2e..aaacd6913e9 100644 --- a/test/monaco/.mocharc.json +++ b/test/monaco/.mocharc.json @@ -1,5 +1,5 @@ { - "$schema": "https://json.schemastore.org/mocharc", + "$schema": "https://www.schemastore.org/mocharc", "ui": "bdd", "timeout": 10000 }