dotnet / dotnet/fsharp

Wrong completion after dot on a parameter without type hint in unfinished lambda

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

Description

Minimal repro:

```fsharp
[System.DateTime.Now ] |> List.map (fun x -> x.
0
```

Finished lambda

![image](https://user-images.githubusercontent.com/873919/41054933-81fafd32-69c8-11e8-99e1-6598eb5df69e.png)

Unfinished

![image](https://user-images.githubusercontent.com/873919/41054954-90055c6a-69c8-11e8-9885-c6f4b2b54902.png)

![image](https://user-images.githubusercontent.com/873919/41054969-9f3e1438-69c8-11e8-910c-cd49111ad815.png)

The AST diff

![image](https://user-images.githubusercontent.com/873919/41054841-326fecf0-69c8-11e8-989b-a3b3a498f43a.png)

This case is very common, I think it's worth fixing.

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.