ruff/crates/ty_project/src
Dhruv Manilawala 48c425c15b
[ty] Support publishing diagnostics in the server (#18309)
## Summary

This PR adds support for [publishing
diagnostics](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_publishDiagnostics)
from the ty language server.

It only adds support for it for text documents and not notebook
documents because the server doesn't have full notebook support yet.

Closes: astral-sh/ty#79

## Test Plan

Testing this out in Helix and Zed since those are the two editors that I
know of that doesn't support pull diagnostics:

### Helix


https://github.com/user-attachments/assets/e193f804-0b32-4f7e-8b83-6f9307e3d2d4



### Zed



https://github.com/user-attachments/assets/93ec7169-ce2b-4521-b009-a82d8afb9eaa
2025-05-28 13:15:11 +05:30
..
db [ty] Support publishing diagnostics in the server (#18309) 2025-05-28 13:15:11 +05:30
metadata [ty] Add --config-file CLI arg (#18083) 2025-05-27 08:00:38 +02:00
watch Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
combine.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
db.rs [ty] Gracefully handle salsa cancellations and panics in background request handlers (#18254) 2025-05-26 13:37:49 +01:00
files.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
lib.rs [ty] Add --config-file CLI arg (#18083) 2025-05-27 08:00:38 +02:00
metadata.rs [ty] Add --config-file CLI arg (#18083) 2025-05-27 08:00:38 +02:00
walk.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
watch.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00