From 6fd4e872824326d6e33f3b3f1af3898a1e3974b5 Mon Sep 17 00:00:00 2001 From: Manuel Sabogal Date: Sun, 1 Dec 2024 13:27:48 +0100 Subject: [PATCH] Fix schema resolution using Samba share on Windows --- src/language-service/src/schemas/schemaService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language-service/src/schemas/schemaService.ts b/src/language-service/src/schemas/schemaService.ts index c533a9e6ab..ad4a1ff11b 100644 --- a/src/language-service/src/schemas/schemaService.ts +++ b/src/language-service/src/schemas/schemaService.ts @@ -60,7 +60,7 @@ export class SchemaServiceForIncludes { if (relatedPathToSchemaMapping) { const id = `http://schemas.home-assistant.io/${relatedPathToSchemaMapping.key}`; let absolutePath = fs.realpathSync.native(haFiles[sourceFile].filename); - absolutePath = absolutePath.replace("\\", "/"); + absolutePath = absolutePath.replaceAll("\\", "/"); const fileass = encodeURI(absolutePath); let resultEntry = results.find((x) => x.uri === id);