提交 ba5fbf15 编写于 作者: R Ravi Chande

Attempt to diagnose devdiv #384109

Sometimes completion filtering crashes in MatchesFilterText. From
inspecting the code, it appears that the only possible cause is that a
null completionHelper is passed in. The method that retrieves a
CompletionHelper sometimes returns null. This change will cause a crash
instead, allowing us to investigate why the Document was null, or try to
further determine why MatchesFilterText might crash.
上级 24b7163f
......@@ -269,13 +269,9 @@ private Document GetDocument()
private CompletionHelper GetCompletionHelper()
{
// Crash if we don't find a document, we're already in a bad state.
var document = GetDocument();
if (document != null)
{
return CompletionHelper.GetHelper(document);
}
return null;
return CompletionHelper.GetHelper(document);
}
private bool IsTextualTriggerCharacter(CompletionService completionService, char ch, OptionSet options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册