R - Support Starting/Stopping LSP #6532
Labels
area: console
Issues related to Console category.
area: diagnostics
Issues related to Diagnostics
lang: r
Milestone
Details
To get LSP features working in a sensible manner for multiple console sessions we need to ensure the LSP for the active session is the only one providing diagnostics/code completion/etc.
The simplest approach to achieve the above is to only allow the LSP for the active session to be running, and shutdown all other LSPs.
The Positron API exposes a new event that is fired when the foreground session changes (#6310). The language packs can listen to this event to start the LSP for the active session and gracefully stop the LSPs for all other sessions.
The kernel and LSP lifecycle are closely tied together right now since an LSP only needed to be started and stopped when the kernel was started stopped. The lifecycle for an LSP needs to be disentangled from the kernel so an LSP can come and go during the lifecycle of the kernel.
Testing
The text was updated successfully, but these errors were encountered: