How to make code linting less aggressive? #6671
Replies: 2 comments 6 replies
-
I also get squiggles under functions that are not explicitly namespaced. E.g.: |
Beta Was this translation helpful? Give feedback.
-
@aaronschiff I'm not familiar with the Error Lens extension, but it definitely looks like it doesn't play very well with our current (dynamic analysis) approach for diagnostics! The current situation is that the LSP uses your live R session to understand what functions and variables exist, so when you type What language and LSP implementation do you find works well with that Error Lens extension? i.e. in what situation does it work well for you? You might experiment with the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this is covered in the documentation, I couldn't find an answer.
Is there a way to configure linting of R code in Positron so it doesn't apply until I have at least completed typing the current line of code?
For example, simply typing
y
gets a yellow squiggle because there is no such symbol in scope (yet). Then typingy <-
gives a red squiggle for a missing righthand side. Theny <- x |>
gives a red squiggle, etc. I find the squiggles appearing and disappearing while I'm typing quite distracting. Also, I like to use the Error Lens extension which provides more information about errors without having to hover, but that becomes unusable with errors popping up all the time while I'm tying.Examples with Error Lens enabled:
Beta Was this translation helpful? Give feedback.
All reactions