ruff/crates/ty_server/src
Dhruv Manilawala 32403dfb28
[ty] Avoid panicking when there are multiple workspaces (#18151)
## Summary

This PR updates the language server to avoid panicking when there are
multiple workspace folders passed during initialization. The server
currently picks up the first workspace folder and provides a warning and
a log message.

## Test Plan

<img width="1724" alt="Screenshot 2025-05-17 at 11 43 09"
src="https://github.com/user-attachments/assets/1a7ddbc3-198d-4191-a28f-9b69321e8f99"
/>
2025-05-20 20:53:23 +05:30
..
document Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
server [ty] Small LSP cleanups (#18201) 2025-05-19 17:08:59 +00:00
session [ty] Show related information in diagnostic (#17359) 2025-05-19 18:52:12 +02:00
document.rs Clean up some Ruff references in the ty server (#17920) 2025-05-07 10:55:16 -04:00
lib.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
logging.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
message.rs [ty] Avoid panicking when there are multiple workspaces (#18151) 2025-05-20 20:53:23 +05:30
server.rs [ty] Avoid panicking when there are multiple workspaces (#18151) 2025-05-20 20:53:23 +05:30
session.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
system.rs Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00