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