private async Task <Unit> TextChanged(DocumentUri uri, string text) { var documentPath = uri.ToString(); _bufferManager.ClearErrors(documentPath); await Task.Run(() => _bufferManager.UpdateText(documentPath, text, _router)); _router.Window.LogInfo($"hmm + "); _router.TextDocument.PublishDiagnostics(new PublishDiagnosticsParams() { Uri = uri, Diagnostics = Diagnostics.GetDiagnostics(_router, _bufferManager.GetCode(documentPath), _bufferManager.GetErrors(documentPath)) }); // _router.Window.LogInfo($"Updated buffer for document: {documentPath}\n{text}"); return(Unit.Value); }