We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3499ff commit 32879daCopy full SHA for 32879da
commands/mix_test.py
@@ -234,11 +234,19 @@ def run(self, _edit):
234
is_test = parts[1:] == ['']
235
search_names = \
236
[parts[0] + ext for ext in ('.ex', '.exs')] if is_test else [file_path.stem + '_test.exs']
237
+ ignored_folders = ['.elixir_ls', '_build', 'deps']
238
+
239
+ subpaths = [
240
+ p
241
+ for folder in (window.folders() or [reverse_find_root_folder(file_path)]) if folder
242
+ for p in Path(folder).iterdir()
243
+ if p.is_file() or p.name not in ignored_folders
244
+ ]
245
246
counterpart_paths = [
- (folder, p)
- for folder in window.folders()
- for p in Path(folder).rglob("*.ex*")
247
+ (subpath, p)
248
+ for subpath in subpaths
249
+ for p in (subpath.rglob("*.ex*") if subpath.is_dir() else [subpath])
250
if p.name in search_names
251
]
252
0 commit comments