We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e05fb0 commit 82a2ef2Copy full SHA for 82a2ef2
gopls/internal/cmd/cmd.go
@@ -807,9 +807,11 @@ func (c *cmdClient) openFiles(uri protocol.DocumentURI) ([]*cmdFile, error) {
807
if err != nil {
808
return nil, err
809
}
810
- files := make([]*cmdFile, len(entries))
811
- for i, e := range entries {
812
- files[i] = c.getFile(protocol.DocumentURI(filepath.Join(string(uri), e.Name())))
+ files := make([]*cmdFile, 0)
+ for _, e := range entries {
+ if !e.IsDir() {
813
+ files = append(files, c.getFile(protocol.DocumentURI(filepath.Join(string(uri), e.Name()))))
814
+ }
815
816
817
return files, nil
0 commit comments