More maintainable caps config
The idea here is that we preserve client's config as is, without changes. This gets rid of state!
This commit is contained in:
@@ -46,7 +46,7 @@ impl GlobalState {
|
||||
message: Option<String>,
|
||||
fraction: Option<f64>,
|
||||
) {
|
||||
if !self.config.client_caps.work_done_progress {
|
||||
if !self.config.work_done_progress() {
|
||||
return;
|
||||
}
|
||||
let percentage = fraction.map(|f| {
|
||||
|
||||
Reference in New Issue
Block a user