Skip to content

Commit 45fc75a

Browse files
authored
Merge pull request #706 from pascal-sauer/master
explicit parse_settings = TRUE
2 parents da00948 + a827c52 commit 45fc75a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: languageserver
33
Title: Language Server Protocol
4-
Version: 0.3.16
4+
Version: 0.3.16.9001
55
Date: 2023-08-17
66
Authors@R:
77
c(person(given = "Randy",

R/diagnostics.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ diagnose_file <- function(uri, content, is_rmarkdown = FALSE, globals = NULL, ca
9898
}
9999

100100
if (file.exists(path)) {
101-
lints <- lintr::lint(path, cache = cache, text = content)
101+
lints <- lintr::lint(path, cache = cache, text = content, parse_settings = TRUE)
102102
} else {
103-
lints <- lintr::lint(text = content, cache = cache)
103+
lints <- lintr::lint(text = content, cache = cache, parse_settings = TRUE)
104104
}
105105

106106
diagnostics <- lapply(lints, diagnostic_from_lint, content = content)

0 commit comments

Comments
 (0)