未验证 提交 05693977 编写于 作者: M Manish Vasani 提交者: GitHub

Merge pull request #40418 from jessetrinity/tsRemoveDiagnosticsOnDocClose

Remove hard-coded TS check for RaiseDiagnosticsRemovedForDocument
......@@ -187,9 +187,7 @@ private void RaiseDiagnosticsRemovedIfRequiredForClosedOrResetDocument(Document
var removeDiagnosticsOnDocumentClose = document.Project.Solution.Options.GetOption(ServiceFeatureOnOffOptions.RemoveDocumentDiagnosticsOnDocumentClose, document.Project.Language);
// TODO: Remove the below hard-coded check for TypeScript once they update their code to explicitly set the above option.
if (document.Project.Language != "TypeScript" &&
!removeDiagnosticsOnDocumentClose)
if (!removeDiagnosticsOnDocumentClose)
{
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册