diff --git a/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller.Session_FilterModel.cs b/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller.Session_FilterModel.cs index fe8cf32e00379d746146d49d57815b8075c5c6af..9f936c90188b1fa3ce7cd8ecf9ab484528b59fa6 100644 --- a/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller.Session_FilterModel.cs +++ b/src/EditorFeatures/Core/Implementation/IntelliSense/Completion/Controller.Session_FilterModel.cs @@ -373,8 +373,15 @@ private bool IsAfterDot(Model model, ITextSnapshot textSnapshot, Dictionary + + Public Async Function BackspaceSoftSelectionIfNotPrefixMatch() As Task + Using state = TestState.CreateVisualBasicTestState( + ) + + state.SendBackspace() + Await state.AssertSelectedCompletionItem("x", isSoftSelected:=True) + state.SendTypeChars(".") + Await state.WaitForAsynchronousOperationsAsync() + Assert.Contains("x.Add", state.GetLineTextFromCaretPosition()) + End Using + End Function + Friend Class MockSnippetInfoService Implements ISnippetInfoService