Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISC: Dynamically load imported scripts for editor #1893

Conversation

catloversg
Copy link
Contributor

For context, please check my comment at #1747 (comment).

This PR fixes that problem by dynamically loading only imported scripts instead of loading all scripts.

Note: This PR conflicts with #1865 and #1866, so I ported those fixes to this PR.

How to test:
Test 1:

  • Load this save file: test suite for editor.gz
  • Open all scripts, especially ts.ts and tsx.tsx. False-positive error markers should disappear after 2 seconds.

Test 2:

Closes #1877.

@d0sboots d0sboots merged commit 6dd9230 into bitburner-official:dev Jan 8, 2025
6 checks passed
@catloversg catloversg deleted the pull-request/bugfix/dynamically-load-imported-scripts-for-editor branch January 8, 2025 10:12
antoinedube pushed a commit to antoinedube/bitburner-source that referenced this pull request Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocompletion does not work in the editor anymore
2 participants