mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
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:

committed by
GitHub

parent
fd960a33e4
commit
fff4facdc4
@@ -176,6 +176,7 @@ specification. These LSP requests/notifications are defined by default:
|
||||
textDocument/typeDefinition*
|
||||
window/logMessage
|
||||
window/showMessage
|
||||
window/showMessageRequest
|
||||
workspace/applyEdit
|
||||
workspace/symbol
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user