dotnet / dotnet/fsharp

Support named argument syntax for property setters in VS

Open
#16,452 4 comments 1 reaction 0 assignees View on GitHub
Area-VS-Editor Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Inspired by [this PR](https://github.com/dotnet/docs/pull/38807) from @smoothdeveloper.

Basically, VS doesn't have any IntelliSense for any of [this](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/parameters-and-arguments#named-arguments):
![image](https://github.com/dotnet/fsharp/assets/5451366/44aeaecd-58f5-49ba-89a0-229ff7402f2a)

The right thing does pop up when one starts typing it, however it also includes a bunch of random irrelevant stuff:
![image](https://github.com/dotnet/fsharp/assets/5451366/2db6979c-84a2-47a0-9465-5786fd48cabc)

Code for copypaste:
```fsharp
type Account() =

let mutable number = 0

member this.AccountNumber
with get() = number
and set(value) = number <- value

let account1 = new Account()
```

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.