dotnet / dotnet/fsharp

Visual Studio : When defining names in pattern matching auto completion should not be triggered.

Open
#5,594 6 comments 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-LangService-AutoComplete Bug Impact-Low
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

When binding values to names in pattern matching autocompletion gets triggered but should not.

•in this case autocompletion is not desired:
![2018-09-06_143700](https://user-images.githubusercontent.com/884885/45158131-5fef2200-b1e3-11e8-9234-83ffd264287b.jpg)
(update: DU and Enums are an exception to that as mentioned by @rojepp below)

---
•nor is autocompletion desired in this case:
![2018-09-06_143738](https://user-images.githubusercontent.com/884885/45158161-739a8880-b1e3-11e8-9908-ca4eb55b0fbf.jpg)

---
•however when matching on types autocompletion might be desired:
![2018-09-06_143718](https://user-images.githubusercontent.com/884885/45158192-92008400-b1e3-11e8-94f3-21b884caaf4a.jpg)

---
As expected, autocompletion is not triggerd when binding a values to name with `let` or `fun `.

Microsoft Visual Studio Community 2017
Version 15.8.2
VisualStudio.15.Release/15.8.2+28010.2016
Microsoft .NET Framework
Version 4.7.03062

Visual F# Tools 10.2 for F# 4.5 15.8.0.0. Commit Hash: c55dd2c3d618eb93a8d16e503947342b1fa93556.
Microsoft Visual F# Tools 10.2 for F# 4.5

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.