mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:54:42 +00:00
[ty] Fix server version (#19284)
This commit is contained in:
parent
3cbf2fe82e
commit
3da8b51dc1
8 changed files with 54 additions and 23 deletions
|
@ -36,6 +36,8 @@ pub fn version() -> String {
|
|||
pub fn run() {
|
||||
use log::Level;
|
||||
|
||||
ruff_db::set_program_version(version()).unwrap();
|
||||
|
||||
// When the `console_error_panic_hook` feature is enabled, we can call the
|
||||
// `set_panic_hook` function at least once during initialization, and then
|
||||
// we will get better error messages if our code ever panics.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue