dotnet / dotnet/fsharp

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

Open
#18,119 0 comments 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-VS-Editor Bug Impact-High
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

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 `|`.

```fsharp
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.