Files
sourcekit-lsp/Sources/SourceKitLSP/Swift
Alex Hoppen 16aa082afe Fix a race condition in code completion
Each `sourcekitd` uses a single, global code completion session but we were managing code completion sessions on the `SwiftLanguageServer` level. This had two issues:
- Code completion is considered non-blocking on `SourceKitServer` and thus we could execute two concurrent code completion requests, which would conflict with each other.
- You could have multiple `SwiftLanguageServer`s that each have a connection to `sourcekitd` but share the same `sourcekitd` state. This shouldn't happen in the real world but does happen if we create multiple `SourceKitServer` instances in tests.
2023-10-16 09:59:27 -07:00
..
2023-10-10 13:44:47 -07:00
2023-10-10 13:44:47 -07:00
2023-10-13 13:46:32 -07:00
2023-10-10 13:44:47 -07:00