Skip to content

Commit

Permalink
fix(neotest): replace nightly API call
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Apr 15, 2024
1 parent 5fdb068 commit 3d3818a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ 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).

## [4.22.4] - 2024-04-15

### Fixed

- Neotest: Replace nightly API call with Neovim 0.9 API call
(introduced in 4.22.1).

## [4.22.3] - 2024-04-14

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion lua/rustaceanvim/overrides.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
local M = {}

local compat = require('rustaceanvim.compat')

---@param input string unparsed snippet
---@return string parsed snippet
local function parse_snippet_fallback(input)
Expand Down Expand Up @@ -66,7 +68,7 @@ end
function M.sanitize_command_for_debugging(command)
if command[1] == 'run' then
command[1] = 'build'
elseif command[1] == 'test' and not vim.list_contains(command, '--no-run') then
elseif command[1] == 'test' and not compat.list_contains(command, '--no-run') then
table.insert(command, 2, '--no-run')
end
end
Expand Down

0 comments on commit 3d3818a

Please sign in to comment.