dotnet / dotnet/fsharp

Wrong tooltip with a type provider constructor for an unresolved reference

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

Description

The constructor of a provided type leaks within the documentation tooltips in its visibility scope.

Simple repro:
```fsharp
module A

open FSharp.Data

type Cities = HtmlProvider<"https://www.worldometers.info/world-population/population-by-country/">

abrakadabra

```

Symptoms:

Image

Image

Interestingly, the leak remains as long as the import for the type provider exists:

Image

Image

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.