diff --git a/internal/lsp/watcher/watcher.go b/internal/lsp/watcher/watcher.go index 7b06f5cbf87a119bcbacd1e84fd76dd85fe0129d..bd61d2b37bd12ce0e63093e70fcec585c778cd8a 100644 --- a/internal/lsp/watcher/watcher.go +++ b/internal/lsp/watcher/watcher.go @@ -41,11 +41,11 @@ func init() { } // NewWorkspaceWatcher creates a new workspace watcher -func NewWorkspaceWatcher(name string, client *lsp.Client, debub bool) *WorkspaceWatcher { +func NewWorkspaceWatcher(name string, client *lsp.Client, debug bool) *WorkspaceWatcher { return &WorkspaceWatcher{ name: name, client: client, - debug: debub, + debug: debug, debounceTime: 300 * time.Millisecond, debounceMap: csync.NewMap[string, *time.Timer](), registrations: []protocol.FileSystemWatcher{},