mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
BUGFIX: Monaco shows wrong TSDoc of APIs that have "export" word (#2473)
This commit is contained in:
@@ -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"),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user