forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace runnables custom fn with LSP codeLens (FuelLabs#3819)
Related FuelLabs#3693 This PR moves the logic from the custom `runnables` method into the LSP `codeLens` method. From here, we'll add other types of runnables, e.g. sway tests. Added a test for `codeLens` as well as a missing test for `codeActions`. Unfortunately there is currently no support for tooltips on server-supplied code lenses (microsoft/language-server-protocol#1644) because they aren't part of the LSP spec. So, the tooltip will no longer show up for the time being. The upside is that the run button could be implemented for other IDEs with less effort (not entirely free, still need to define the run command in the client-side plugin code). There will be two follow-up PRs to this: - Removing the runnables code in the vscode client & updating the run command - Removing the `runnables` custom method in the server.
- Loading branch information
Showing
1 changed file
with
143 additions
and
38 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