on main help sign in
Merge pull request #201 from charmbracelet/fix-lsp-watch
commit53895132542c11ed51e7da87876f86c1b442d225 authorKujtim Hoxha <kujtimii.h@gmail.com> dateTue 15 Jul 2025, 20:42 (1 year ago) parent5c319e68b984cd
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)