on main help sign in
Merge pull request #201 from charmbracelet/fix-lsp-watch
5389513Kujtim Hoxha
internal/lsp/watcher/watcher.go+3
@@ -606,6 +606,9 @@ func (w *WorkspaceWatcher) matchesPattern(path string, pattern protocol.GlobPatt
606 return fullPathMatch || baseNameMatch
606 return fullPathMatch || baseNameMatch
607 }
607 }
608
608
609+ if basePath == "" {
610+ return false
611+ }
609 // For relative patterns
612 // For relative patterns
610 basePath = protocol.DocumentURI(basePath).Path()
613 basePath = protocol.DocumentURI(basePath).Path()
611 basePath = filepath.ToSlash(basePath)
614 basePath = filepath.ToSlash(basePath)