dotnet / dotnet/fsharp

Improve type parameter display in tooltips

Open
#14,887 0 comments 0 reactions 0 assignees View on GitHub
Area-LangService-ToolTips Area-XmlDocs Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

```
///Gets the number of that are in a .
///The type of the current instance () is not supported.
static member Count: int
```

![LKUQEO20tA](https://user-images.githubusercontent.com/5063478/224787264-9ba9258b-17aa-4209-8fb2-500dae0cdd3c.png)

**Describe the solution you'd like**

![image](https://user-images.githubusercontent.com/5063478/224786640-ccad1f65-7cd2-4f03-8c22-1b5615d76bc6.png)

- The `typeparamref` is ignored.
- ~~There is no non-generic `Vector256`, so~~ the top line should read `property Vector256.Count: int with get`.
- ``Vector256`1`` would look better as `Vector256<'T>`. It also doesn't have the right color.
- C# doesn't fully qualify the type when the latter is visible without qualification. Seem reasonable to me.
- The angle brackets have the wrong color. I looked into this and it's caused by having the entire range of `Vector256` in captured name resolutions. This doesn't happen when the `Vector256 ()` constructor is called.

**Additional context**

VS 17.6.0 Preview 1

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.