Skip to content

Commit 88de421

Browse files
committed
Reset the state of WorkDoneProgressState when the progress has ended
Otherwise, we will never show the progress again.
1 parent 3300c77 commit 88de421

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SourceKitLSP/SourceKitLSPServer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ final actor WorkDoneProgressState {
201201
}
202202
if state == .created && activeTasks == 0 {
203203
server.client.send(WorkDoneProgress(token: token, value: .end(WorkDoneProgressEnd())))
204+
self.state = .noProgress
204205
}
205206
}
206207
}

0 commit comments

Comments
 (0)