Prevent load of disabled (or disabling) extension modules #1178
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses the issue raised in #1177 by skipping the load of extension modules that are disabled or are in the process of being disabled via the tooling.
There were some display decisions that I took the liberty to apply, but we can discuss them further if necessary.
- Writing config:
entry has been indented to align with the other entries.Package xxx took yyys to import
message has also been indented to align with the other entries the tool produces. Since this entry is also displayed at application startup, it appears indented. (I personally find that indentation stands out more in the startup console and would prefer that and the nicer tool alignment than having it left justified.)There are two test failures that are the result of the tests not being sensitive to the current state of the module. I will address these but wanted to get a consensus on this approach first.
Also, can a given module contain multiple extensions? It seems like the tooling is only enabling/disabling at the module level, but I may be missing something.
Here are some outputs of the various commands:
List extensions:
Disable mathjax:
List extensions, post-disable:
Start server (with disabled):
Enable mathjax:
Start server (with enabled):
Resolves: #1177