Skip to content

Commit db5536b

Browse files
khanelimans1n7ax
andauthored
fix(refactor): remove retired diagnostics API (#506)
* fix(refactor): remove retired diagnostics API Let vim.lsp.buf.code_action populate diagnostics. The vim.lsp.diagnostic API no longer exists. * chore: remove unwanted test --------- Co-authored-by: Srinesh Nisala <srineshnisala@gmail.com>
1 parent dbb0d90 commit db5536b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎lua/java-refactor/api/refactor.lua‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ local function run_code_action(action_type, filter)
44
vim.lsp.buf.code_action({
55
apply = true,
66
context = {
7-
diagnostics = vim.lsp.diagnostic.get_line_diagnostics(0),
87
only = { action_type },
98
},
109
filter = filter and function(refactor)

0 commit comments

Comments
 (0)