on main help sign in
fix: fix empty basepath
8b984cdKujtim 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)