register_lock_file_watchers

Function register_lock_file_watchers 

Source
pub async fn register_lock_file_watchers(
    client: &Client,
    patterns: &[String],
) -> Result<(), String>
Expand description

Registers file system watchers for lock files from all registered ecosystems.

Uses dynamic registration to request the client to watch lock file patterns. Patterns are collected from all registered ecosystems via EcosystemRegistry::all_lockfile_patterns().

§Arguments

  • client - LSP client for registration requests
  • patterns - Lock file glob patterns (e.g., “**/Cargo.lock”)

§Errors

Returns an error if the client doesn’t support dynamic registration or if the registration request fails.