diff --git a/DESCRIPTION b/DESCRIPTION index 7328c070..944a86f7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: languageserver Title: Language Server Protocol -Version: 0.3.16 +Version: 0.3.16.9001 Date: 2023-08-17 Authors@R: c(person(given = "Randy", diff --git a/R/diagnostics.R b/R/diagnostics.R index 5078a657..e276236f 100644 --- a/R/diagnostics.R +++ b/R/diagnostics.R @@ -98,9 +98,9 @@ diagnose_file <- function(uri, content, is_rmarkdown = FALSE, globals = NULL, ca } if (file.exists(path)) { - lints <- lintr::lint(path, cache = cache, text = content) + lints <- lintr::lint(path, cache = cache, text = content, parse_settings = TRUE) } else { - lints <- lintr::lint(text = content, cache = cache) + lints <- lintr::lint(text = content, cache = cache, parse_settings = TRUE) } diagnostics <- lapply(lints, diagnostic_from_lint, content = content)