提交 73c506b0 编写于 作者: R Ravi Chande 提交者: GitHub

Merge pull request #22033 from rchande/fix22002

Fix completion crash in tuple in alias
......@@ -7672,5 +7672,20 @@ End Namespace
End Using
End Function
<WorkItem(22002, "https://github.com/dotnet/roslyn/issues/22002")>
<Fact, Trait(Traits.Feature, Traits.Features.Completion)>
Public Async Function DoNotCrashInTupleAlias() As Task
Dim text =
<code><![CDATA[
Imports Boom = System.Collections.Generic.List(Of ($$) '<---put caret between brackets.
Public Module Module1
Public Sub Main()
End Sub
End Module
]]></code>.Value
Await VerifyItemExistsAsync(text, "System")
End Function
End Class
End Namespace
......@@ -88,10 +88,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Completion.Providers
For importDirective = 0 To 1
For preselect = 0 To 1
For tuple = 0 To 1
If importDirective = 1 AndAlso tuple = 1 Then
Continue For
End If
Dim context = ValueTuple.Create(importDirective = 1, preselect = 1, tuple = 1)
result(context) = MakeRule(importDirective, preselect, tuple)
Next
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册