# Match progress token's prefix to detect disk-based diagnostic progress · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/19adfdf8bb84b09ad27c229163115ad4af590dd2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 19adfdf8bb84b09ad27c229163115ad4af590dd2

Requested commit: 19adfdf8bb84b09ad27c229163115ad4af590dd2

Commit: 19adfdf8bb84b09ad27c229163115ad4af590dd2

Tree: 9b6899faee444694818c2b6a1258c9c99444b3e8

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Match progress token's prefix to detect disk-based diagnostic progress

The new version of rust-analyzer changed the disk-based diagnostic token
to `rust-analyzer/checkOnSave/0`. The trailing number could be different
from 0 when there are multiple Rust projects open using the same rust-analyzer
instance.

As such, with this commit we will perform a prefix match as opposed to a strict
equality check when detecting a disk-based diagnostics progress token.

```

## Parents

- [af74d5409a58edf049765993cb68e9ab957b18a3](https://git.cafe/gitcafe/zed/commit/af74d5409a58edf049765993cb68e9ab957b18a3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/19adfdf8bb84b09ad27c229163115ad4af590dd2?format=markdown)
