vs-chromium icon indicating copy to clipboard operation
vs-chromium copied to clipboard

single server multiple clients

Open rkhoury opened this issue 4 years ago • 3 comments

Hello, and many thanks for an awesome extension.

I have the use-case of a very large codebase with many solutions all with overlapping project/file dependencies - so all inherit the same vs-chromium-project.txt. I've noticed when I have more than one VS instance open that all of the instances appear to maintain their own server, and when a few files change the many millions of files in this codebase get reviewed with each VS instance and the computer load is too significant to ignore.

So I'm wondering if it's possible to launch this with a single server that all VS instances could connect to, or how hard that might be to implement? It would make my use-case much nicer to deal with rather than having several multi-gigabyte databases all getting updated redundantly.

Many thanks again.

rkhoury avatar Dec 07 '20 11:12 rkhoury

Perhaps this is somewhat related to #50, though I'd still like the ability to search from VS.

rkhoury avatar Dec 07 '20 11:12 rkhoury

This is a good idea. It would require some changes to the underlying protocol to include some sort of "client id" to each request, because right now the underlying protocol assumes one client per server instance. It would also require changing the server process tracking code inside the VS plugin to ensure the server "daemon" is not killed when VS exits. Other that that, most of the server code could remain as is to support this use case.

rpaquay avatar Dec 07 '20 18:12 rpaquay

Thanks for the reply, @rpaquay . If I feel brave, and when I get the time, I'll try this out.

rkhoury avatar Dec 07 '20 19:12 rkhoury