Skip to content

Commit

Permalink
fix(flyCheck): correct typo in LSP client request (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Dec 5, 2023
1 parent 7c1089a commit d747f19
Show file tree
Hide file tree
Showing 3 changed files with 14 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).

## [3.9.5] - 2023-12-05

### Fixed

- `:RustLsp flyCheck`: Typo in LSP client request,
causing the command to do nothing [[#88](https://github.com/mrcjkb/rustaceanvim/issues/88)].

## [3.9.4] - 2023-12-01

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,12 @@ for more configuration options.
vim.cmd.RustLsp { 'flyCheck', 'clear' }
vim.cmd.RustLsp { 'flyCheck', 'cancel' }
```

> [!NOTE]
>
> This is only useful if you set the option,
> `['rust-analzyer'].checkOnSave = false`.

</details>

<!-- markdownlint-restore -->
Expand Down
2 changes: 1 addition & 1 deletion lua/rustaceanvim/commands/fly_check.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local rl = require('rustaceanvim.rust_analyzer')
---@param cmd flyCheckCommand
function M.fly_check(cmd)
local params = cmd == 'run' and vim.lsp.util.make_text_document_params() or {}
rl.notify('rust-analyzer/' .. cmd .. 'FlyCheck', params)
rl.notify('rust-analyzer/' .. cmd .. 'Flycheck', params)
end

return M.fly_check

0 comments on commit d747f19

Please sign in to comment.