Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkspaceWatcher ¶
type WorkspaceWatcher struct {
// contains filtered or unexported fields
}
WorkspaceWatcher manages LSP file watching
func NewWorkspaceWatcher ¶
func NewWorkspaceWatcher(client *lsp.Client) *WorkspaceWatcher
NewWorkspaceWatcher creates a new workspace watcher
func (*WorkspaceWatcher) AddRegistrations ¶
func (w *WorkspaceWatcher) AddRegistrations(ctx context.Context, id string, watchers []protocol.FileSystemWatcher)
AddRegistrations adds file watchers to track
func (*WorkspaceWatcher) WatchWorkspace ¶
func (w *WorkspaceWatcher) WatchWorkspace(ctx context.Context, workspacePath string, hub *fswatch.Hub)
WatchWorkspace runs the per-client watching logic for a workspace: it receives filesystem events from the shared hub (it owns no fsnotify watcher itself), preloads files, and turns matching events into debounced workspace/didChangeWatchedFiles notifications for its LSP client. It blocks until ctx is cancelled or the hub is closed, and unsubscribes on return.
Click to show internal directories.
Click to hide internal directories.