Display addons status in the control panel #2180
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.
Motivation
This will give users a quick overview of the addons that are enabled in their workspace.
We plan to expand this feature to display more information about addons in the future, such as:
But some of these features will require changes to the addon API, so we will plan them for a future release.
Implementation
The feature is implemented on both the server and the extension:
addon_detection
field.rubyLsp/workspace/addons
request that returns the list of addons that are enabled in the workspace. At this iteration, each addon only has name and errored attributes.rubyLsp/workspace/addons
request to the server to fetch and store the list of addons.AddonsStatus
status item is added to display addon's status.(errored)
will be added after its name.I plan to explore better UI in later iterations as simply having the names listed will already make addon development easier.
Automated Tests
Added some
Manual Tests