Skip to content

Commit

Permalink
fix(neotest): positions only queried for current buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Feb 3, 2024
1 parent 3dc7fbd commit 4af9aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [4.5.1] - 2024-02-03

### Fixed

- LSP: Notify if an LSP request was made but no rust-analyzer client is attached.
- Neotest: Only the current buffer was queried for test positions.

## [4.5.0] - 2024-02-02

Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/neotest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ NeotestAdapter.discover_positions = function(file_path)
position = nil, -- get em all
}
local future = nio.control.future()
rust_analyzer.buf_request(0, 'experimental/runnables', params, function(_, runnables)
rust_analyzer.buf_request(bufnr, 'experimental/runnables', params, function(_, runnables)
future.set(runnables)
end)
local runnables = future:wait()
Expand Down

0 comments on commit 4af9aac

Please sign in to comment.