dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.03k stars 4.03k forks source link

`Else` not offered in VB Completion after `Exit For` #40449

Open vsfeedback opened 4 years ago

vsfeedback commented 4 years ago

This issue has been moved from a ticket on Developer Community.


[regression] Over the last few weeks, the ELSE part of an IF ELSE statement has gone missing in intellisense. If adding ELSE to an existing logic check, it is not present. When creating a new IF ELSE statement it is there as normal.

Please see video.


Original Comments

Visual Studio Feedback System on 12/9/2019, 03:01 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

dpoeschl commented 4 years ago

Simple standalone repro, where Else is not offered at the $$

Class C
    Sub M()
        For Each x In {}
            If True Then
                Exit For
                $$
            End If
        Next
    End Sub
End Class
dpoeschl commented 4 years ago

This fails in Visual Studio 2017 as well.