Skip to content

Commit 31a8cf3

Browse files
authored
Merge pull request #1345 from ahoppen/reset-workdoneprogress-state
Reset the state of `WorkDoneProgressState` when the progress has ended
2 parents 7fbb39e + 88de421 commit 31a8cf3

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)