From 851b39876e521ee04a037bf4ec279524faff4667 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Mon, 8 Jan 2024 21:50:59 +0100 Subject: [PATCH] [json] don't use md5 (#201971) --- .../json-language-features/client/src/node/schemaCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/json-language-features/client/src/node/schemaCache.ts b/extensions/json-language-features/client/src/node/schemaCache.ts index ad14e3228a9..ad373657591 100644 --- a/extensions/json-language-features/client/src/node/schemaCache.ts +++ b/extensions/json-language-features/client/src/node/schemaCache.ts @@ -143,5 +143,5 @@ export class JSONSchemaCache { } } function getCacheFileName(uri: string): string { - return `${createHash('MD5').update(uri).digest('hex')}.schema.json`; + return `${createHash('sha256').update(uri).digest('hex')}.schema.json`; }