Skip to content

Commit

Permalink
fix: avoid panic in walkdir traversal (#628)
Browse files Browse the repository at this point in the history
Fixes #627

Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert authored Apr 9, 2024
1 parent 6df97b3 commit e16ffba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func (l *LanguageServer) loadWorkspaceContents() error {

err := filepath.WalkDir(workspaceRootPath, func(path string, d os.DirEntry, err error) error {
if err != nil {
return fmt.Errorf("failed to walk workspace dir %q: %w", d.Name(), err)
return fmt.Errorf("failed to walk workspace dir %q: %w", path, err)
}

// TODO(charlieegan3): make this configurable for things like .rq etc?
Expand Down

0 comments on commit e16ffba

Please sign in to comment.