You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Visual Studio : When defining names in pattern matching auto completion should not be triggered. #5594
This issue is testable cross-platform through FSharp.Compiler.Service: completion is produced by GetDeclarationListInfo, and the repository test helper Checker.getCompletionInfo exercises that API directly. I have therefore removed the AI-thinks-windows-only label.
The issue still reproduces at current HEAD 9b0b8a44015743b1c6a05fc0a739dfcddcf353ba (committed 2026-09-29, less than one day old). A focused FCS test run used these caret positions and expected zero completion items:
match A 1 with | A value{caret} -> (): 205 items
for value{caret} in [ 1 ] do (): 202 items
match box 1 with | :? int as value{caret} -> () | _ -> (): 202 items
The exact command was dotnet test tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj --filter-method '*Issue 5594*' -c Release. The temporary probe failed as expected and was removed, so no regression-test PR was opened.
Current compiler proof from built fsi and #version;;:
F# Interactive version 15.2.200.0 for F# 11.2
FSharp.Core version 11.0.0.0
.NET Runtime version 11.0.0-rc.1.26420.103
Linux x64
This remains an open FCS completion bug rather than Visual Studio-specific behavior.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
southcentralus0.in.applicationinsights.azure.com
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
Activity
rojepp commentedon Sep 7, 2018
In your first example, I'd expect a filtered list showing only types. You often match for a DU and assign names inside.
goswinr commentedon Sep 7, 2018
@rojepp a distinction between typing a DU/Enum or a new name could be made when the first letter is typed in upper or lower case.
dsyme commentedon Sep 13, 2018
It would be great to have this fixed (I notice it quite often but just mentally ignore it after too long)
goswinr commentedon Oct 1, 2018
similarly the

xinfor x in xs doshould probably not trigger autocompletion`.At least if it is lower case ( not a DU)
cartermp commentedon Apr 6, 2019
This is significantly less annoying in VS 2019 GA for the
for x in ...case:The match case issue remains, though we reduced the noise in completion in general so you should see a lot less useless stuff there.
3 remaining items
kerams commentedon Apr 13, 2022
The right side of
asis also a pattern, so completions could be desirable.github-actions commentedon Sep 29, 2026
🤖 This is an automated response from Repo Assist.
This issue is testable cross-platform through FSharp.Compiler.Service: completion is produced by
GetDeclarationListInfo, and the repository test helperChecker.getCompletionInfoexercises that API directly. I have therefore removed theAI-thinks-windows-onlylabel.The issue still reproduces at current HEAD
9b0b8a44015743b1c6a05fc0a739dfcddcf353ba(committed 2026-09-29, less than one day old). A focused FCS test run used these caret positions and expected zero completion items:match A 1 with | A value{caret} -> (): 205 itemsfor value{caret} in [ 1 ] do (): 202 itemsmatch box 1 with | :? int as value{caret} -> () | _ -> (): 202 itemsThe exact command was
dotnet test tests/FSharp.Compiler.Service.Tests/FSharp.Compiler.Service.Tests.fsproj --filter-method '*Issue 5594*' -c Release. The temporary probe failed as expected and was removed, so no regression-test PR was opened.Current compiler proof from built
fsiand#version;;:This remains an open FCS completion bug rather than Visual Studio-specific behavior.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
southcentralus0.in.applicationinsights.azure.comSee Network Configuration for more information.
Add this agentic workflows to your repo
To install this agentic workflow, run
goswinr commentedon Sep 29, 2026
closing old issue. using VS code now. not VS anymore
goswinr commentedon Sep 29, 2026
actually, if it is in FCS , keep it open