on main help sign in
fix: fix empty basepath
commit8b984cd672b24f530ccecef2901ab15b0c13dffe authorKujtim Hoxha <kujtimii.h@gmail.com> dateTue 15 Jul 2025, 19:19 (1 year ago) parent5336f3d
1 file changed+3
internal/lsp/watcher/watcher.go+3
internal/lsp/watcher/watcher.go+3
@@ -606,6 +606,9 @@ func (w *WorkspaceWatcher) matchesPattern(path string, pattern protocol.GlobPatt
606606 return fullPathMatch || baseNameMatch
607607 }
608608
609+ if basePath == "" {
610+ return false
611+ }
609612 // For relative patterns
610613 basePath = protocol.DocumentUri(basePath).Path()
611614 basePath = filepath.ToSlash(basePath)