diff options
Diffstat (limited to 'internal/lsp/watcher')
| -rw-r--r-- | internal/lsp/watcher/watcher.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/lsp/watcher/watcher.go b/internal/lsp/watcher/watcher.go index a9d057c71..7a6eaacc5 100644 --- a/internal/lsp/watcher/watcher.go +++ b/internal/lsp/watcher/watcher.go @@ -347,7 +347,7 @@ func matchesSimpleGlob(pattern, path string) bool { // Otherwise, check if any path component matches pathComponents := strings.Split(path, "/") - for i := 0; i < len(pathComponents); i++ { + for i := range pathComponents { subPath := strings.Join(pathComponents[i:], "/") if strings.HasSuffix(subPath, rest) { return true |
