提交 770320b5 编写于 作者: D Don Syme 提交者: Kevin Ransom (msft)

Only request reanalysis of open docs (#3245)

* only request reanalysis of open docs

* fix trace info
上级 87b9548a
......@@ -59,9 +59,11 @@ type internal FSharpCheckerProvider
let solution = workspace.CurrentSolution
let documentIds = solution.GetDocumentIdsWithFilePath(fileName)
if not documentIds.IsEmpty then
for documentId in documentIds do
Trace.TraceInformation("Requesting Roslyn reanalysis of {0}", documentId)
analyzerService.Reanalyze(workspace,documentIds=documentIds)
let docuentIdsFiltered = documentIds |> Seq.filter workspace.IsDocumentOpen |> Seq.toArray
for documentId in docuentIdsFiltered do
Trace.TraceInformation("{0:n3} Requesting Roslyn reanalysis of {1}", DateTime.Now.TimeOfDay.TotalSeconds, documentId)
if docuentIdsFiltered.Length > 0 then
analyzerService.Reanalyze(workspace,documentIds=docuentIdsFiltered)
| _ -> ()
with ex ->
Assert.Exception(ex)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册