Skip to content

Make code range work on comments #3005

Open
@sloorush

Description

@sloorush

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: hls-code-range-pluginfor code range related functionalities, such as selection range and folding rangetype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions