-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lsp): re-add code lens feature with improved performance (#3829)
# Description ## Problem\* Code Lens part of protocol previously supported, attempted to do to many things at once. ## Summary\* By introducing statfullnes into LSP client we benefit from not repeating preparation procedure on each editor code lens requst. By reducing scope of interest when resolving code lens we gain speed - only single source file needs to get prepared at a time to provide code lenses to client. By introducing `enableCodeLens` initialization option (a2943b1: feat(lsp): accept option to disable code lens ) we are able to control if code lens feature is enabled. This will require plugin setting this value, while by default it is turned on. ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[Exceptional Case]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information
Showing
7 changed files
with
427 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.