Skip to content

ServiceStructure doesn't report scopes for (*-style comments #7719

@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

Per https://github.com/dotnet/fsharp/blob/master/src/fsharp/service/ServiceStructure.fs#L628 (and my sample tests using the code) the structure service doesn't understand the ocaml-style (* *) code comments.

Describe the solution you'd like
I'd like the structure service to learn to parse these comments into scopes as well.

Describe alternatives you've considered
A manual second-layer of parsing over the text to find and report (* comment scopes.

Additional context
Here's some sample comments in VSCode, where I'm using the StructureService to report folding ranges. You can see the little down-caret for the triple slash and double-slash comments. None for poor, sad ol' ocaml comments.

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions