added default text to inspector module #6476
Merged
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.
References
This pull request addresses one of the issues raised in #2398, where users who open the Inspector see a blank window without any indication as to what it is supposed to show, often leading them to think it is broken.
Code changes
With the help of @jasongrout and @ivanov, we modified the inspector.ts file to implement the following logic:
User-facing changes
The Inspector window will now always have some content displayed, whereas before, upon instantiation, it was blank. In addition, when a user navigated away from a defined function into an empty cell, the Inspector window would clear.
Before
After
Backwards-incompatible changes
None that I can see.