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);