Skip to content
Snippets Groups Projects
Commit 1880b66c authored by SeeBasTStick's avatar SeeBasTStick
Browse files

added feedback when evaluation ist done

parent 83c59a1a
Branches
Tags
Loading
......@@ -59,6 +59,7 @@ class BDocumentService(private val server: Server, private val communicator: Com
val diagnostics: List<Diagnostic> = prob.checkDocument(currentUri, settings)
communicator.sendDebugMessage("created diagnostics $diagnostics", MessageType.Info)
communicator.publishDiagnostics(PublishDiagnosticsParams(currentUri, diagnostics))
communicator.showMessage("Evaluation done - ${diagnostics.size} problem(s)", MessageType.Log)
val filesWithProblems = diagnostics.map { diagnostic -> diagnostic.source }
val invalidFiles = calculateToInvalidate(currentUri, filesWithProblems)
invalidFiles.forEach{uri -> communicator.publishDiagnostics(PublishDiagnosticsParams(uri, listOf()))}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment