diff --git a/internal/watcher/watcher.go b/internal/watcher/watcher.go index 6e7a0b8..bd405e8 100644 --- a/internal/watcher/watcher.go +++ b/internal/watcher/watcher.go @@ -456,27 +456,6 @@ func (w *WorkspaceWatcher) matchesPattern(path string, pattern protocol.GlobPatt path = filepath.ToSlash(path) - // Special handling for wildcard patterns like "**/*" - if patternText == "**/*" { - // This should match any file - // watcherLogger.Debug("Using special matching for **/* pattern") - return true - } - - // Special handling for wildcard patterns like "**/*.ext" - if strings.HasPrefix(patternText, "**/") { - if strings.HasPrefix(strings.TrimPrefix(patternText, "**/"), "*.") { - // Extension pattern like **/*.go - ext := strings.TrimPrefix(strings.TrimPrefix(patternText, "**/"), "*") - // watcherLogger.Debug("Using extension matching for **/*.ext pattern: checking if %s ends with %s", path, ext) - return strings.HasSuffix(path, ext) - } else { - // Any other pattern starting with **/ should match any path - // watcherLogger.Debug("Using path substring matching for **/ pattern") - return true - } - } - // For simple patterns without base path if basePath == "" { // Check if the pattern matches the full path or just the file extension