Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented May 17, 2024

We weren’t logging requests sent to a TestSourceKitLSPClient because we were assuming that JSONRPCConnection logs those requests in SourceKitLSPServer. But no logging happens in LocalConnection, which TestSourceKitLSPClient uses.

Since LangaugeServerProtcol can’t depend on LSPLogging, move the type to LSPTestsSupport.

We weren’t logging requests sent to a `TestSourceKitLSPClient` because we were assuming that `JSONRPCConnection` logs those requests in `SourceKitLSPServer`. But no logging happens in `LocalConnection`, which `TestSourceKitLSPClient` uses.

Since `LangaugeServerProtcol` can’t depend on `LSPLogging`, move the type to `LSPTestsSupport`.
@ahoppen ahoppen requested review from bnbarham and hamishknight May 17, 2024 20:23
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 17, 2024 20:23
@ahoppen
Copy link
Member Author

ahoppen commented May 17, 2024

@swift-ci Please test

@bnbarham
Copy link
Contributor

Seems like it might be worth making a new module that a simple client could use, eg. you could imagine someone depending on sourcekit-lsp wanting an in-process client.

@ahoppen
Copy link
Member Author

ahoppen commented May 20, 2024

Seems like it might be worth making a new module that a simple client could use, eg. you could imagine someone depending on sourcekit-lsp wanting an in-process client.

I will probably do exactly that today for a debug utility ;-)

@ahoppen ahoppen merged commit fcc527f into swiftlang:main May 20, 2024
@ahoppen ahoppen deleted the log-in-localconnection branch May 20, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants