-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Bug description
When I run an R code cell in a Quarto file in VS studio, with R attached, a .vdoc..r is generated (whitespace varies each time, I think its a fingerprint of some kind), and the language server is started for the respective vdoc. However, once the R process is connected, a new .vdoc..r is generated in the same tmp-____ directory, and a new language server instance is opened for this vdoc, this process continues until I either use q() to close the connection to R, or the amount of open language severs / R for Windows terminal front-end processes uses up all memory on my device causing some process to fail and resulting in the process stopping. Although only after a large amount of R process error: read ECONNRESET messages.
Steps to reproduce
For me, starting from a new empty directory under my ~ directory, I create the folder in VS studio, then I make a .qmd file, I write a simple R code cell, containing either nothing or just a simple print process. Then if R isn't already attached, it attaches and doesn't run the code. After that, either on second run or first, or seemingly just after some time, constant new vdocs are generated and language servers are opened for them.
I have a recording from VS studio developer tools if needed.
Actual behavior
Code in R cell may or may not successfully run, and new language server instances are constantly generated until a crash or manual detachment of R. Also some temporary files from the process remain in the Temp directory.
Expected behavior
Only one instance of language server is opened, or existing one is used, instead of new ones being opened, presumably existing .vdoc is used as well?
Your environment
IDE: VS code
Version: 1.111.0 (user setup)
Commit: ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb
Date: 2026-03-06T23:06:10Z
Electron: 39.6.0
ElectronBuildId: 13330601
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200 (Windows 11)
Quarto v1.9.35
Quarto VScode extension v1.130.0
ReditorSupport (R extension for VS code) v2.8.7
R v4.5.2 (RStudio 2025.09.2+418 "Cucumberleaf Sunflower" Release (12f6d5e22720bd78dbd926bb344efe12d0dce83d, 2025-10-20) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2025.09.2+418 Chrome/138.0.7204.251 Electron/37.6.1 Safari/537.36, Quarto 1.9.35 (C:/Users/[user_name]/AppData/Local/Programs/Quarto/bin/quarto.exe))
Languageserver v0.3.17