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

fix(debugger): Always filewatch .map and .js from sourceMapRoot, but optionally /reload minecraft. #249

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

chmeyer-ms
Copy link
Contributor

Enable file watch on sourceMapRoot even if /reload is not enabled. This ensures the source map cache is always cleared after build.

There are users (editor) that prefer manual /reload in some cases and would need to have updated source maps.

Summary:

  • if no source maps, only enable file watch if /reload is enabled (catches .js changes and reloads MC)
  • if globPattern override is set, enable file watch only if /reload is enabled (this feature was to watch a special pattern)
  • if sourceMapRoot is set, always enable file watch for .map and .js files but don't send /reload unless enabled.

From the user's perspective nothing has changed. Source maps are simply cleared more aggressively.

@chmeyer-ms chmeyer-ms self-assigned this Oct 30, 2024
@chmeyer-ms chmeyer-ms changed the title bug(debugger): Always filewatch .map and .js from sourceMapRoot, but optionally /reload minecraft. fix(debugger): Always filewatch .map and .js from sourceMapRoot, but optionally /reload minecraft. Oct 30, 2024
@chmeyer-ms chmeyer-ms merged commit 20f66f4 into main Oct 30, 2024
2 of 3 checks passed
@chmeyer-ms chmeyer-ms deleted the chmeyer/always_clear_cache branch October 30, 2024 19:05
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