REditorSupport / REditorSupport/languageserver

languageserver is opening a new port every new VSCode instance

Open
#691 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
675
Forks
118
Avg merge
1d 37m
Merged PRs (30d)
11

Description

Hi,

I installed the R extension in VS Code. I noticed that after a while, I had dozens of ports in my ports tab. Only one is actually active, but I noticed that every time I run "code ." in my WSL/Ubuntu terminal, a new port is created. I nailed it down to languageserver, as it only happens if there is an .R file in the folder being opened in VS Code, and new ports are not created if I disable languageserver in the settings ("r.lsp.enabled": false).

Is it possible to tell the languageserver to stick to one port only? Or is this a problem of my VS Code config?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in VS Code on WSL/Ubuntu: open a folder containing an .R file with code ., then compare it with "r.lsp.enabled": false and inspect the language-server startup and port configuration. Done means repeated VS Code launches do not leave additional language-server ports while language-server features still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.