Module document

Module document 

Source
Expand description

Document management module.

This module provides infrastructure for managing LSP documents:

  • state: Document and server state management
  • lifecycle: Document open/change event handling
  • loader: Disk-based document loading for cold start support

Structs§

ColdStartLimiter
Tracks recent cold start attempts per URI to prevent DOS.
DocumentState
State for a single open document.
ServerState
Global LSP server state.

Enums§

Ecosystem
Package ecosystem type.
LoadingState
Loading state for registry data fetching.
UnifiedDependency
Unified dependency enum for multi-ecosystem support.
UnifiedVersion
Unified version information enum for multi-ecosystem support.

Functions§

ensure_document_loaded
Ensures a document is loaded in state.
handle_document_change
Generic document change handler using ecosystem registry.
handle_document_open
Generic document open handler using ecosystem registry.
load_document_from_disk
Loads document content from disk.