Skip to content
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

Move LocalConnection to LSPTestSupport #1318

Merged
merged 1 commit into from
May 20, 2024

Conversation

ahoppen
Copy link
Collaborator

@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
Copy link
Collaborator 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
Collaborator 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 apple:main May 20, 2024
3 checks passed
@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.

None yet

2 participants