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

Merge pull request #20519 from rchande/languageServiceAssumption

Don't assume a document has SyntaxFactsService
......@@ -43,7 +43,9 @@ public CompletionHelper GetCompletionHelper(Document document)
}
var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
return syntaxFacts.IsCaseSensitive
var caseSensitive = syntaxFacts?.IsCaseSensitive ?? true;
return caseSensitive
? this._caseSensitiveInstance
: this._caseInsensitiveInstance;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册