LSP: fix messageRequest to not return nested title (#13674)

* LSP: fix window/showMessageRequest to not return nested title

* Add window/showMessageRequest handler to docs
This commit is contained in:
Michael Lingelbach
2021-01-03 11:31:09 -08:00
committed by GitHub
parent fd960a33e4
commit fff4facdc4
2 changed files with 2 additions and 4 deletions

View File

@@ -93,10 +93,7 @@ M['window/showMessageRequest'] = function(_, _, params)
if choice < 1 or choice > #actions then
return vim.NIL
else
local action_chosen = actions[choice]
return {
title = action_chosen;
}
return actions[choice]
end
end