Skip to content

F# VisualStudio 2022 text editor erases pipe of array expression closing bracket when issuing match in a for loop #18119

Open
@smoothdeveloper

Description

@smoothdeveloper

When I type the following bars expression from scratch, at the moment I enter the | for the match expression, it brings back the |] closing bracket and makes it look like I didn't type |.

let foos = [|1..100|]
let bars = 
  [|
    for f in foos do
      match f with
      |
  |]

The issue is in 17.2.0 preview 5.0

This works properly in 17.11.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VS-EditorVS editor support for F# code, not covered elsewhereBugImpact-High(Internal MS Team use only) Describes an issue with extreme impact on existing code.

    Type

    Projects

    Status

    New

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions