You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to wait for a client to connect to the agent before connecting the client to the server.
Especially useful when trying to capture initialize request/responses
The text was updated successfully, but these errors were encountered:
alcarney
changed the title
Add --wait-for-client option to lsp-devtools --agent command
Add --wait-for-client option to lsp-devtools agent command
Jan 10, 2023
alcarney
added a commit
to alcarney/lsp-devtools
that referenced
this issue
Jun 21, 2023
Originally, the assumption was that the lsp agent would host a server
that commands like `lsp-devtools record` and `lsp-devtools tui`
would connect to.
However this posed a number of issues, such as commands like `record`
missing the beginning of a session since the agent would not wait for
a connection (swyddfa#29) as well as the agent not stopping once an LSP
session ended (swyddfa#17)
So this commit reverses that relationship, with commands like
``record`` spinning up the server and the lsp agent creating a client
connection.
Additionally this commit
- Switches to using the base `Client` provided by a future version of
`pygls`
- Trials using async stdin/stdout streams for the agent - a potential
candidate someday for upstreaming into `pygls`
- Switches to using a TCP connection between client and server. (swyddfa#37)
Originally, the assumption was that the lsp agent would host a server
that commands like `lsp-devtools record` and `lsp-devtools tui`
would connect to.
However this posed a number of issues, such as commands like `record`
missing the beginning of a session since the agent would not wait for
a connection (#29) as well as the agent not stopping once an LSP
session ended (#17)
So this commit reverses that relationship, with commands like
``record`` spinning up the server and the lsp agent creating a client
connection.
Additionally this commit
- Switches to using the base `Client` provided by a future version of
`pygls`
- Trials using async stdin/stdout streams for the agent - a potential
candidate someday for upstreaming into `pygls`
- Switches to using a TCP connection between client and server. (#37)
It would be nice to be able to wait for a client to connect to the agent before connecting the client to the server.
Especially useful when trying to capture
initialize
request/responsesThe text was updated successfully, but these errors were encountered: