mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
Switch to Rust 2024 edition (#18129)
This commit is contained in:
parent
e67b35743a
commit
9ae698fe30
1082 changed files with 4211 additions and 3300 deletions
|
@ -26,13 +26,13 @@ use types::WorkspaceFoldersServerCapabilities;
|
|||
|
||||
use self::connection::Connection;
|
||||
use self::connection::ConnectionInitializer;
|
||||
use self::schedule::event_loop_thread;
|
||||
use self::schedule::Scheduler;
|
||||
use self::schedule::Task;
|
||||
use self::schedule::event_loop_thread;
|
||||
use crate::PositionEncoding;
|
||||
use crate::session::AllSettings;
|
||||
use crate::session::Session;
|
||||
use crate::workspace::Workspaces;
|
||||
use crate::PositionEncoding;
|
||||
|
||||
mod api;
|
||||
mod client;
|
||||
|
@ -248,10 +248,14 @@ impl Server {
|
|||
if let Err(err) = scheduler
|
||||
.request::<lsp_types::request::RegisterCapability>(params, response_handler)
|
||||
{
|
||||
tracing::error!("An error occurred when trying to register the configuration file watcher: {err}");
|
||||
tracing::error!(
|
||||
"An error occurred when trying to register the configuration file watcher: {err}"
|
||||
);
|
||||
}
|
||||
} else {
|
||||
tracing::warn!("LSP client does not support dynamic capability registration - automatic configuration reloading will not be available.");
|
||||
tracing::warn!(
|
||||
"LSP client does not support dynamic capability registration - automatic configuration reloading will not be available."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue