-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is It possible that vs code LSP client can connect with server use tcp or websocket? #662
Comments
@hasegetc The documents you are linking to are for Visual Studio but I assume you are talking about Visual Studio Code. vscode-languageserver-node/client/src/node/main.ts Lines 52 to 57 in 3eddc56
You should be able to use |
@rcjsuen thank you very much for you reply. but just in the vscode-languageserver-node/client/src/node/main.ts write, there just transport.port in the source code, I cant find where is transport.ip. is TransportKind.socket just for IPC connect? or how can I use ip and port in TransportKind.socket to connect to remote lsp server? |
I have never tested connecting to a server using WebSockets. From my experiences in VS Code extension host this needs some special code since you need to implement some special hand shaking (see https://github.com/microsoft/vscode/blob/645f5850141b13b3d194e389eabf83eacc785bb5/src/vs/base/parts/ipc/node/ipc.net.ts#L79-L257) I am open for a PR that adds this. |
|
I find the solution
|
The text was updated successfully, but these errors were encountered: