haskell / haskell/haskell-language-server

Make code range work on comments

Open
#3,005 3 comments 0 reactions 0 assignees View on GitHub
component: hls-code-range-plugin type: enhancement
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.