BUGFIX: Monaco shows wrong TSDoc of APIs that have "export" word (#2473)

This commit is contained in:
catloversg
2026-02-05 22:31:13 +07:00
committed by GitHub
parent 0eae02adcf
commit a29f2945c5

View File

@@ -42,7 +42,7 @@ export function Editor({ onMount, onChange, onUnmount }: EditorProps) {
* check: https://github.com/microsoft/monaco-editor/issues/3580 and https://github.com/microsoft/monaco-editor/pull/4544.
*/
monaco.editor.createModel(
netscriptDefinitions.replace(/export /g, ""),
netscriptDefinitions.replace(/^export /gm, ""),
"typescript",
monaco.Uri.file("netscript.d.ts"),
);