mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
use www.schemastore
This commit is contained in:
@@ -158,7 +158,7 @@ async function getSchemaRequestService(context: ExtensionContext, log: LogOutput
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
getContent: async (uri: string) => {
|
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);
|
const content = await cache.getSchemaIfUpdatedSince(uri, retryTimeoutInHours);
|
||||||
if (content) {
|
if (content) {
|
||||||
if (log.logLevel === LogLevel.Trace) {
|
if (log.logLevel === LogLevel.Trace) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/mocharc",
|
"$schema": "https://www.schemastore.org/mocharc",
|
||||||
"ui": "tdd",
|
"ui": "tdd",
|
||||||
"timeout": 10000
|
"timeout": 10000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/mocharc",
|
"$schema": "https://www.schemastore.org/mocharc",
|
||||||
"ui": "bdd",
|
"ui": "bdd",
|
||||||
"timeout": 10000
|
"timeout": 10000
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user