Skip to content

Commit

Permalink
Use fixed name for toml watcher
Browse files Browse the repository at this point in the history
Technically you can use this to dynamically unregister at any time
  • Loading branch information
DavisVaughan committed Jan 7, 2025
1 parent cee990f commit f18630a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/lsp/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub(crate) async fn handle_initialized(
{
// Watch for changes in `air.toml` files so we can react dynamically
let watch_air_toml_registration = lsp_types::Registration {
id: uuid::Uuid::new_v4().to_string(),
id: String::from("air-toml-watcher"),
method: "workspace/didChangeWatchedFiles".into(),
register_options: Some(
serde_json::to_value(DidChangeWatchedFilesRegistrationOptions {
Expand Down

0 comments on commit f18630a

Please sign in to comment.