From a827c52a23fb001b65b3aa05598e01ca9cb23f6a Mon Sep 17 00:00:00 2001 From: Pascal Sauer <156898545+pascal-sauer@users.noreply.github.com> Date: Wed, 3 Dec 2025 16:06:21 +0100 Subject: [PATCH] explicit parse_settings = TRUE --- DESCRIPTION | 2 +- R/diagnostics.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)