dotnet / dotnet/fsharp

Inline parameter name hints render on the the first chanied method mutiple times

Open
#15,825 2 comments 0 reactions 0 assignees View on GitHub
Area-LangService-Hints Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

When the same method is chained multiple times, then inline parameter name hints render only on the first call but multiple times

![image](https://github.com/dotnet/fsharp/assets/2365592/4e1cff07-7e93-43b7-9081-2a881e9e8757)

**Repro steps**

Call `Configure` on the same type of settings multiple times
``` F#
services
.Configure<_>(
Reader,
fun (o: EventStoreClientSettings) -> o.ConnectivitySettings.NodePreference <- NodePreference.Follower
)
.Configure<_>(
Writer,
fun (o: EventStoreClientSettings) -> o.ConnectivitySettings.NodePreference <- NodePreference.Leader
)
```

**Expected behavior**

Inline parameter name hints render correctly on each method

**Actual behavior**

Inline parameter name hints render only on the first method

**Related information**

* .NET 7.0
* Visual Studio 2022 17.8.0 Preview 1.0

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.