neoclide / coc-tsserver

Tsserver extension for coc.nvim that provide rich features like VSCode for javascript & typescript
MIT License
1.05k stars 68 forks source link

How to connect coc-tsserver to external tsserver thats already running? #469

Open raman162 opened 1 month ago

raman162 commented 1 month ago

I currently use docker compose for development accross many projects. Ideally I would like to connect coc.vim to an external instance of tsserver running where I plan to run the tsserver using docker and exposing a port on my host machine

I was able to do this with solargraph by specifying the transport method is external and specifying the port number. See the config example below:

{
  "solargraph.transport": "external",
  "solargraph.externalServer": {
    "host": "localhost",
    "port": 7658
  },
}

If I can do something similar for tsserver that would be awesome.

fannheyward commented 1 month ago

tsserver didn't support this.