sourcegraph / lsp-adapter

lsp-adapter provides a proxy which adapts Sourcegraph LSP requests to vanilla LSP requests
MIT License
29 stars 8 forks source link

glob: use string.FieldsFunc instead of strings.Split #36

Closed ggilmore closed 6 years ago

ggilmore commented 6 years ago

using string.Split left empty glob patterns, which isn't what we want

i.e. strings.Split("", ":") -> [""], strings.FieldsFunc("", func(r rune) bool { r == ':') -> []