Merge pull request #1808 from zed-industries/fix-diagnostics-on-rust
Match progress token's prefix to detect disk-based diagnostic progress
This commit is contained in:
parent
50ba8bdc9b
commit
70cf542408
3 changed files with 10 additions and 5 deletions
|
@ -2262,8 +2262,11 @@ impl Project {
|
|||
return;
|
||||
}
|
||||
|
||||
let is_disk_based_diagnostics_progress =
|
||||
Some(token.as_ref()) == disk_based_diagnostics_progress_token.as_deref();
|
||||
let is_disk_based_diagnostics_progress = disk_based_diagnostics_progress_token
|
||||
.as_ref()
|
||||
.map_or(false, |disk_based_token| {
|
||||
token.starts_with(disk_based_token)
|
||||
});
|
||||
|
||||
match progress {
|
||||
lsp::WorkDoneProgress::Begin(report) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue