feat(mix): complete only test and script files for test and run (#11020)

`mix test <TAB>` and `mix run <TAB>` offered every file in the tree. Narrow them to test files (including umbrella apps) and to .ex/.exs respectively.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Vicente Merlo
2026-09-10 07:19:55 -07:00
committed by GitHub
co-authored by Claude Opus 5
parent a1115e6eb8
commit c6e66edee8
+2 -2
View File
@@ -157,13 +157,13 @@ case $state in
'*::file:_files'
;;
(test)
_files
_path_files -X "All tests" -g "test/**/*_test.exs" -g "apps/*/test/**/*_test.exs"
;;
(test.watch)
_files
;;
(run)
_files
_files -g "*.(exs|ex)"
;;
esac
;;