Skip to content

Commit 1cc5e06

Browse files
author
Marc Jakobi
committed
fix(neotest): no tests found when getting root dir for directory
1 parent 78cbea3 commit 1cc5e06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [4.22.3] - 2024-04-14
10+
11+
### Fixed
12+
13+
- Neotest: No tests found when getting root directory for a project directory.
14+
915
## [4.22.2] - 2024-04-14
1016

1117
### Fixed

lua/rustaceanvim/cargo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function cargo.get_root_dir(file_name)
3333
if reuse_active then
3434
return reuse_active
3535
end
36-
local path = vim.fs.dirname(file_name)
36+
local path = file_name:find('%.rs$') and vim.fs.dirname(file_name) or file_name
3737
if not path then
3838
return nil
3939
end

0 commit comments

Comments
 (0)