Skip to content

Commit

Permalink
Restore metadata (#2669)
Browse files Browse the repository at this point in the history
* restore metadata in editor

* changelog
  • Loading branch information
josephjclark authored Nov 13, 2024
1 parent e938628 commit 3c6f2d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion assets/js/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ async function loadDTS(specifier: string): Promise<Lib[]> {

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

Expand Down

0 comments on commit 3c6f2d2

Please sign in to comment.