-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display addons status in the control panel
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: - The version of the addon - The gem name of the addon - Addons that weren't activated due to errors But some of these features will require changes to the addon API, so we will plan them for a future release. The feature is implemented on both the server and the extension: - Server: - The server now has an experimental field in the capabilities object, which currently only has the `addon_detection` field. - The server now supports a custom `rubyLsp/workspace/getAddons` request that returns the list of addons that are enabled in the workspace. At this iteration, each addon only has name and errored attributes. - Extension: - In the client.afterStart callback, the extension now sends a `rubyLsp/workspace/getAddons` request to the server to fetch and store the list of addons. - A new `AddonsStatus` status item is added to display addon's status. - If the server doesn't have the capability, the status will mention that server 0.17.4 or later is required. - If the server supports the capability but the workspace has no addons, the status will mention that no addons are enabled. - If the workspace has addons, the status will display the names of the addons that are enabled.
- Loading branch information
Showing
7 changed files
with
120 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters