Skip to content

Commit

Permalink
Log diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
renkun-ken committed Jun 24, 2021
1 parent 6cc6846 commit 7a27cc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/diagnostics.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ diagnose_file <- function(uri, content, cache = FALSE) {

diagnostics_callback <- function(self, uri, version, diagnostics) {
if (is.null(diagnostics) || !self$workspace$documents$has(uri)) return(NULL)
logger$info("diagnostics_callback called:", list(uri = uri, version = version))
logger$info("diagnostics_callback called:", list(
uri = uri,
version = version,
diagnostics = diagnostics
))
self$deliver(
Notification$new(
method = "textDocument/publishDiagnostics",
Expand Down

0 comments on commit 7a27cc0

Please sign in to comment.