haskell / haskell/haskell-language-server
Make code range work on comments
- Dominant language
- Haskell
- Stars
- 3k
- Forks
- 455
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 11
Description
**Is your feature request related to a problem? Please describe.**
@kokobd had pointed this out. When you expand selection(using `shift+alt+right arrow`) from within a comment, expand selection does not work on comments.
**Describe the solution you'd like**
It is because comments are not included in HieAST, which we use for constructing ranges in the `hls-selection-range-plugin`. `Annotated ParsedSource` can be used to handle structures not in `HieAST` properly.
More information about it --> https://gitlab.haskell.org/ghc/ghc/-/wikis/api-annotations#comments
cc: @kokobd
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.