Skip to content

Commit 320177f

Browse files
authored
Merge pull request #1902 from ahoppen/clear-in-progress-on-queue
Clear `inProgressTextDocumentRequests` on `textDocumentTrackingQueue`
2 parents 3f08560 + e59df13 commit 320177f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,9 @@ extension SourceKitLSPServer: QueueBasedMessageHandler {
654654
) async {
655655
defer {
656656
if let request = params as? any TextDocumentRequest {
657-
self.inProgressTextDocumentRequests[request.textDocument.uri, default: []].removeAll { $0.id == id }
657+
textDocumentTrackingQueue.async(priority: .background) {
658+
self.inProgressTextDocumentRequests[request.textDocument.uri, default: []].removeAll { $0.id == id }
659+
}
658660
}
659661
}
660662

0 commit comments

Comments
 (0)