Speed up server startup by caching the startup S3 and member metadata bundles
on disk across sessions, and by probing attached startup packages without
loading languageserver in the child process. A bundle is reused only when
every package in its dependency graph is unchanged on disk and free of load
hooks, and it is keyed by the library paths in use (#852).
Fix Namespace exceeds snapshot budget errors when preparing member metadata
for R6-heavy packages such as processx, httr and testthat. R6 private
and super member tables are now stored once per class instead of being copied
into every method (#853).
Fix the same Namespace exceeds snapshot budget error for packages installed
with source references (R_KEEP_PKG_SOURCE=yes or keep.source.pkgs = TRUE),
such as testthat. Source references are now stripped from function syntax,
so member snapshots no longer depend on how a package was installed (#858).
Fix an undefined-behaviour sanitizer report on CRAN (null pointer passed to
memset()) when indexing empty parse data (#850).
Speed up XML-backed providers (inlay hints, semantic tokens, folding ranges,
document symbols, type hierarchy, and code actions) by rewriting XPath queries
to avoid broad node-set scans and using namespace-free xml2 lookup wrappers
(#847, #846).
Expand semantic token coverage across both parse-data and XML paths while
retaining R 4.0 compatibility (#845): emit keyword tokens for control-flow
keywords, \ lambdas, and unqualified return() calls (#839); broaden
operator coverage including =>, =, ::/:::, @, ~, ?, :,
infix %...%, comparison, logical, and arithmetic operators (#840); emit
parameter tokens for named call arguments and scoped formal parameter
references while respecting local shadowing (#842); attach readonly and
defaultLibrary modifiers to built-in constants (NULL, TRUE, FALSE,
unshadowed T/F, Inf, NaN, NA*), ellipsis symbols, and the _ pipe
placeholder (#843); and split {roxygen2} #' comments into documentation
comment, @tag macro, and @param parameter tokens (#844).
Show short value, type and shape previews in member completion. The
completion_label_details setting enables inline signatures and tips for
both members and ordinary symbols; completion lists stay compact by default
(#857).
Keep inline completion responsive before full parsing, inspect package signatures without invoking active or unforced bindings, and preserve initial label annotations during resolution unless the client supports changing them (#857).
Share equivalent ordered package-resolution and member-metadata requests across documents, reuse recent successful results, and stop abandoned workers when temporary documents close. Retain isolated workers and invalidate reuse after package, library, or resolution-setting changes (#836, #834).
Skip temporary diagnostics through symlink aliases, including macOS /var
and /private/var, even after temporary files or directories are deleted
(#835, #833).
Resolve relative file definitions and document links against the owning workspace folder, including nested folders added or removed during a session (#829).
Keep quoted local names and parameters in capped completion results by comparing decoded symbol names with the typed prefix. Preserve quoting, escaped names and completion edits when many packages are installed (#828, #827).
Retry failed or incomplete startup S3 metadata preparation with a cooldown, and recover missing startup catalogs asynchronously for open source documents. Isolate provider tests from installed packages and startup worker timing while retaining real workspace/index coverage and conservative S3 precedence (#828, #827).
Prepare member metadata with indexed namespace function matching and direct eviction of unprotected cache entries, preserving exact identities, LRU order and memory limits (#826).
Coalesce repeated member refreshes: queued work is promoted and running work finishes before one fresh validation, instead of restarting on every save. Changed document, workspace and package contexts still replace obsolete work (#826).
Split debug task timings into total, queued and running time using the elapsed clock. Redact common credential variables from the debug session header (#826).
Preserve manual line breaks, delimiters, literal tokens and blank lines when formatting on Enter. Indent incomplete control-flow and function headers without adding unmatched braces, respect tab indentation, and reject custom style edits that would change source tokens or line positions (#832, #771, #697).
Keep numeric and string request IDs distinct during cancellation, background formatting and response dispatch. Normalize equivalent numeric IDs across their integer and double representations (#826).
Discover sourced files inside computed callees, including immediately invoked anonymous functions, without evaluating project expressions. Refresh older workspace-index caches so unchanged files recover these dependencies (#826).
Keep argument-value completion working with namespace-qualified default helpers and missing arguments. Escape suggested string literals so quotes, backslashes and newlines retain their original values (#826).
Preserve quoted symbol identity and complete ranges in definitions, references, highlights and rename, including multiline names with Unicode. Quote nonsyntactic replacement names and exclude shadowed local calls from workspace function CodeLens counts (#826).
Rename explicit roxygen @param names together with their function parameters,
preserving descriptions and documentation attached to other functions (#831, #806).
Decode raw strings and escaped class, slot and member names in type hierarchy and class member symbols without evaluating declarations (#826).
Restart pending parses and refresh diagnostics when documents move between workspace folders. Restore saved package content after closing an unsaved buffer with workspace indexing disabled (#826).
Reduce repeated copying during default extraction and rename edit creation, invalidate pending disk snapshots once per edit, and share one UTF-8 byte index across each CLI diagnostic batch (#826).
Lint client-only and new file buffers through temporary text sources when their paths do not exist on the server. Preserve accessible local or owning workspace configuration, inline exclusions and terminal-newline checks without caching temporary filenames (#830, #688). Refresh diagnostics when a local source path appears or disappears, even when the open buffer text is unchanged.
Improve test suite robustness across older callr versions and R builds that
reject NA file timestamps (#838, #837).
Closed issues:
@param tags at same time as argument names (#806)if () blocks (#771)Merged pull requests:
Preserve member completion for Polars conversions such as
dt <- as_polars_df(iris) and for pl$ after calls using the converted frame.
Prepare bounded S3 method return summaries with their owning namespace.
Retain namespace ownership through chained methods and nested argument
expressions. Extend cold member analysis in place from 250 ms up to two
seconds of CPU time, allowing up to five seconds elapsed on busy hosts.
Retain node and depth bounds and cache completed uncertain receivers for
repeated completion, signature help and hover requests. Offer
common known method members as possible-receiver suggestions when a
conversion's input class is unresolved, without claiming a definite type.
Share these possible receivers with signature help and hover when the member
implementation is unambiguous, and display an uncertainty note. Preserve
possible results through member calls and subsequent assignments and aliases.
Reuse completed binding summaries across member-name and argument edits,
following-code changes and different cursor positions. Validate unchanged
preceding source and package attachment context without retaining source
closures or mutable object identities across edits.
Share bounded semantic analysis caches across member and S3 inference, source signature/documentation providers and package NAMESPACE parsing. Reuse completed S3 binding summaries across edits and cursor positions while validating peer-source contents, metadata and registration context. Exclude exhausted and scratch-state results from reuse. Retain exact-text signature and documentation facts across reparses, including unchanged comment blocks in persistent parse workers.
Persist package member models, startup datasets, S3 catalogs, documentation summaries and rendered help in a shared bounded cache. Reuse unchanged models across saves and server sessions; invalidate changes to package files, loaded namespace values, dependencies, registered methods, cache format or server implementation. Verify serialized payload checksums before restoring cached values.
Avoid a server crash when completion, hover or signature help is requested
inside function(), if, for or while while package metadata is loading.
Report errors from queued request readiness checks without stopping the server.
Avoid suggesting function arguments after $ or @ inside a call when
member or slot completion cannot resolve the receiver, including names
enclosed in backticks, single quotes or double quotes.
Keep signature help visible while editing quoted and raw string arguments, including strings spanning multiple lines.
Use LSP 3.18 capabilities for read-only generated package definitions, linked editable names in extraction refactorings, and signature help with no highlighted parameter when an argument matches no formal. Preserve existing behavior for clients without these capabilities, and add documentation links to compatible refactoring menus. Preserve multiline string contents during extraction.
Restore nested sections, definitions and code chunks in document outlines and breadcrumbs, preserving class member symbols (#814, #685).
Promote pending parses for outline requests after edits and report completed parse-worker failures instead of leaving later outline requests queued.
Resolve ordinary S3 methods from statically inferred input classes for
argument completion, argument-value suggestions, hover and signature help
(#805). Share method identity and documentation across providers; support
source aliases, registered namespace methods, datasets, guarded constructors,
namespace-qualified calls and pipes. Preserve generic information when the
input or dispatch is uncertain, and allow S3 inference to be disabled with
r.lsp.s3_dispatch independently of member completion.
Select the correct active signature parameter and parameter-name inlay hints
in native and magrittr piped calls (including %T>%), accounting for the
implicit first argument and explicit native _ or magrittr . placeholders.
Preserve member completion, hover and signatures for native pipe callees; resolve piped class names and inheritance in type hierarchy; count bare magrittr stages in call hierarchy and CodeLens. Allow extraction of independent expressions inside pipe arguments, while keeping whole-RHS and placeholder-dependent expressions in their pipe context; whole-pipe extraction remains available.
Restore diagnostics and queued document color/CodeLens replies when opening files or untitled buffers without a workspace folder (#794).
Keep known R6 member signatures and hover when initializer analysis reaches its inference limit. Select members directly from the inferred receiver and allow more time in parallel tests without changing the normal request budget.
Complete bindings available in R6 method scopes, including self, private,
super, inherited members in non-portable classes, and nested closures,
using static context analysis during incomplete edits. Respect method-local
shadowing and prefer class bindings over enclosing declarations. Include
class information in completion, hover and signature help, and derive R6
new() signatures and argument completion from public initializers.
Preserve Polars member completion, signature help and hover when other packages are cached. Prefer receiver roots over incidental exported names and keep metadata requested by open documents ahead of background entries. Retain compact inert snapshots so indexes evicted from the decoded cache can be restored when multiple open documents need large package metadata. Use compact catalogs for context selection and restore full namespace indexes only when inference needs them, avoiding repeated eviction on each request.
Keep parameter-name inlay hints for untouched calls during incomplete edits, moving their positions with incremental changes and refreshing after a valid parse, so a temporary syntax error does not clear hints across the document.
Enclose non-syntactic completion names in backticks and preserve escaped names in function snippets, including completion inside partially typed quoted names (#781).
Complete chained $ members using static receiver analysis, including source
list/environment factories, declarative R6 classes and package method
registries. Package metadata is prepared in a background worker; completion
never calls document expressions, constructors, methods or active getters.
Preserve member completion for assigned and reassigned Polars query chains,
including DataFrame results after collect(), within the inference budget.
Use the same static member inference for signature help and hover, including
chained methods and named argument documentation. Member requests wait for the
current parse after edits, fixing stale completions on the first $ trigger.
Resolve member names across line breaks and infer self, super and
private inside supported R6 methods for completion, hover and signatures.
Extend member completion, signature help and hover to package factories backed
by internal R6 classes and methods assigned during initialization. Support
namespace-qualified factories and R6 constructors without a library() call,
without executing constructors, methods or user arguments.
Complete S4 @ slots from source declarations and installed class metadata,
including inheritance, aliases and factory results. Show slot types on hover
and signatures for slots whose function definitions are known statically.
Complete S7 @ properties and constructor arguments from source declarations
and installed descriptors, with constructor/property hover and signatures.
Infer inheritance, nested properties and supported custom constructors
without calling constructors, getters, setters, validators or defaults.
Follow installed S7 constructor semantics, including 1.0 development class
references, forwarding constructors, named bindings, list property updates,
external class references, S4 parents and deprecation declarations.
Resolve $ and @ member completion, signature help, and hover for static
namespace objects, lists, data frames, pairlists, stored S4/R6 values, and
lazy-loaded package datasets without invoking custom accessors or coercion
hooks (#818).
Make index_mode = "auto" package-aware so standalone workspaces index open
files and their static source()/sys.source() dependencies lazily while
triggering shared background scans on demand for workspace symbols and global
references (#815).
Keep hover, signature help, and completion responsive while workspace indexing,
parsing, S3 catalog building, and member-model preparation run in the
background, streaming indexing progress via window/workDoneProgress (#812, #811, #798).
Support pluggable diagnostics and formatting backends through R adapters,
including built-in support for jarl diagnostics and air formatting
alongside the default lintr and styler backends (#809, #776). lintr and
styler have moved from Imports to Suggests, so the language server
itself does not require lintr or styler and
install.packages("languageserver") no longer installs them automatically;
users must install or upgrade lintr (>= 3.3.0-1) and install styler to
keep the default diagnostics and formatting, or select other backends.
Skip COMMENT parse nodes and ignore computed callees when resolving function
calls and placing inlay hints (#807, #800, #799).
Reduce worker scheduling, parse, and hot-path provider latency by precomputing shared syntax/scope indexes in C, omitting eager XML serialization from worker snapshots, and caching receiver analysis per document (#802, #795, #793).
Preserve R6 class context for self, super, private, and aliases after
member assignments within methods (#797).
Fix URI escaping for reserved filename characters, multiline $/::/:::
reference classification, overlapping raw-string scanning, and unsaved buffer
transfers across workspace folder changes (#796).
Require R (>= 4.0.0) and modernize R 4.0 syntax; require lintr (>= 3.3.0-1)
when using the lintr diagnostics backend, dropping legacy lintr
workarounds (#813, #783).
Honor .lintr settings from the working directory when linting pathless and
untitled documents (#782).
Prevent function completions from inserting duplicate call parentheses when an opening parenthesis already follows the token (#779, #778).
Populate NAMESPACE imports and DESCRIPTION Depends packages in
diagnostics globals so lintr::object_usage_linter() recognizes imported
symbols and cross-file package functions (#775, #773, #652).
Preserve missing terminal newline state during diagnostics and provide a preferred quick fix for trailing_blank_lines_linter (#774, #772).
Respond to shutdown with a null result instead of [], which clients that type the result strictly fail to decode (#789).
Closed issues:
lintr error although lintr::lint_package() does not (#652)languageserver doesn't use .lintr file? (#557)Merged pull requests:
null result instead of [] (#789)result and error in JSON-RPC responses
per the JSON-RPC 2.0 specification, preventing strict clients like Neovim from
disconnecting on errors (#768, #766).reference_resolve_local_c() by guarding qsort and
avoiding zero-length allocations when definitions or occurrences are empty (#767).Closed issues:
.lintr config and diagnostics not clearing when disabled (#726)Merged pull requests:
.qmd and Quarto language
ID detection, independent R-cell parsing, nested fenced-div folding, and
provider isolation from YAML, Markdown, cell options, and non-R engines.source() closures. Keep
unrelated standalone scripts isolated in semantic editor features.callr workers when cancelling tasks so a late interrupt
cannot leak into the next diagnostics run.lintr diagnostics and a conflict-aware
source.fixAll action, while making multi-line nolint actions apply to every
affected line.refactor.extract actions for variables and functions with
local free-variable analysis, plus a conservative refactor.inline action
for single-use local variables.label type.callr subprocesses after transient parse errors or representation
changes while preserving package attachment order (#754).STR_CONST in xdoc_find_token() at ambiguous punctuation/string boundaries (#739, #740).extract_default_values() (#759).Closed issues:
resolve_attached_packages) spawns fresh R subprocess on keystrokes in Quarto/R Markdown documents (#754)xdoc_find_token resolves to adjacent punctuation instead of string literal at unspaced quote (#739)diagnose_file: empty path crash and .lintr config never applied when using text= argument (#722)Merged pull requests:
xdoc_find_token() now prefers STR_CONST at ambiguous punctuation/string boundaries (#740)Closed issues:
call[[1L]] (#723)Merged pull requests:
Closed issues:
lintr warnings (#674)Merged pull requests:
# %% code chunks (#644)nline_to_break_succession as option (#643)Closed issues:
nline_to_break_succession option to control section collapsing (#643)Merged pull requests:
path_from_uri (#610)Closed issues:
Merged pull requests:
Closed issues:
html-to-markdown.lua error: attempt to call a nil value (#555)Merged pull requests:
Closed issues:
Merged pull requests:
languageId (#511)fs::path_abs with existing files (#506)completionItem/resolve always returns completionItem (#505)Closed issues:
= differs from functions assigned with <- (#466)Merged pull requests:
get_help instead of repr (#469)EQ_ASSIGN (#467)Closed issues:
workspace/didChangeWatchedFiles (#446)Merged pull requests:
workspace/didChangeWatchedFiles (#447)Closed issues:
styler::style_text(base_indention=) for styler > 1.4.0 (#400)Merged pull requests:
._ from namespace (#406)