We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b6ad27 + 6124c9d commit c8e1eabCopy full SHA for c8e1eab
Sources/SourceKitLSP/WorkDoneProgressState.swift
@@ -10,6 +10,7 @@
10
//
11
//===----------------------------------------------------------------------===//
12
13
+import LSPLogging
14
import LanguageServerProtocol
15
import SKSupport
16
@@ -108,7 +109,10 @@ final actor WorkDoneProgressState {
108
109
}
110
111
func endProgressImpl(server: SourceKitLSPServer) async {
- assert(activeTasks > 0, "Unbalanced startProgress/endProgress calls")
112
+ guard activeTasks > 0 else {
113
+ logger.fault("Unbalanced startProgress/endProgress calls")
114
+ return
115
+ }
116
activeTasks -= 1
117
guard await server.capabilityRegistry?.clientCapabilities.window?.workDoneProgress ?? false else {
118
return
0 commit comments