Skip to content

Editor mode config option #7541

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

Merged
merged 2 commits into from
Jun 12, 2025
Merged

Editor mode config option #7541

merged 2 commits into from
Jun 12, 2025

Conversation

zth
Copy link
Collaborator

@zth zth commented Jun 11, 2025

This sets up an -editor-mode flag for bsc. The intention is that the editor tooling can set this as it calls bsc for the incremental compilation that powers the continuous feedback without saving in the editor.

It's mostly a placeholder for now, but it does set some configuration that's good for the editor tooling already:

  • ignore_parse_errors lets the compiler continue even if it finds parse errors.
  • cmi_only stops after type checking, so it never runs the JS generation related optimizations and the generation itself. This is because the generated JS is not interesting to the editor tooling, only the type checking (and type artifacts) are. Should in theory speed things up a little since bsc will do less work.

But mostly, this is a mode that we can use as we do more stuff in the compiler intended for the editor tooling.

@zth zth requested a review from cristianoc June 11, 2025 17:51
@zth zth enabled auto-merge (squash) June 12, 2025 11:44
@zth zth disabled auto-merge June 12, 2025 11:45
@zth zth merged commit 05be83f into master Jun 12, 2025
10 of 11 checks passed
@zth zth deleted the base-editor-mode branch June 12, 2025 11:45
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.

2 participants