I am really new to this so please let me know if what I’m thinking of doing doesn’t make sense.
I have a VS Code extension (Typescript), and I have a Go program that I connect to via jsonrpc2 and stdin/stdout so the extension can send requests to it.
I want to also send notifications/requests from my Go program back to the Typescript Language Server. The Typescript Language Server will already be running. How do I establish a connection to the Typescript language server from Go?
I used https://pkg.go.dev/github.com/sourcegraph/jsonrpc2 to create the Go server that the Typescript server currently sends requests to, but I can’t find examples on how to create a client in Go to do the opposite (talk to the Typescript server).
Furthermore, if I’m already using stdin/stdout for the Typescript server to call the Go server, can I still use stdin/stdout for the Go Server to call the Typescript server? And if not, what other approaches can I use instead?