From 3c6f2d21a39afb9026c206c7525e0d0b5c6f8c8f Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Wed, 13 Nov 2024 17:53:13 +0000 Subject: [PATCH] Restore metadata (#2669) * restore metadata in editor * changelog --- CHANGELOG.md | 2 ++ assets/js/editor/Editor.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35008f8386..32cd167268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,8 @@ and this project adheres to ### Fixed +- Fix metadata loading as code-assist in the editor + ## [v2.10.0] - 2024-11-13 ### Changed diff --git a/assets/js/editor/Editor.tsx b/assets/js/editor/Editor.tsx index 98273af27d..ccd125453a 100644 --- a/assets/js/editor/Editor.tsx +++ b/assets/js/editor/Editor.tsx @@ -147,7 +147,7 @@ async function loadDTS(specifier: string): Promise { // Remove js doc annotations // this regex means: find a * then an @ (with 1+ space in between), then match everything up to a closing comment */ - content = content.replace(/\* +@(.+?)\*\//gs, '*/'); + // content = content.replace(/\* +@(.+?)\*\//gs, '*/'); let fileName = filePath.split('/').at(-1).replace('.d.ts', '');