Skip to content

Regex Completion + Async Completion = Failure to trigger on [ in VB #33852

@dpoeschl

Description

@dpoeschl

Version Used: Visual Studio 2019 Preview 4

Steps to Reproduce:

  1. Paste VB code:
Imports System.Text.RegularExpressions
Class C
    Sub M()
        Dim r = New Regex("$$")
    End Sub
End Class
  1. Remove the $$ and type [ at that location

Expected Behavior: Completion should show
Actual Behavior: Completion does not show

Notes:

This is related to a couple test failures for VB, including TestCaretPlacement and OnlyClasses.

Completion does work, but just not when triggered on [. For example, try triggering with \ instead. In Old Completion, it correctly triggers on [.

I commented out the following line, and completion started triggering on [ (but I don't know what else would go wrong as a result):

.WithFilterCharacterRule(CharacterSetModificationRule.Create(CharacterSetModificationKind.Replace, new char[] { }));

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions