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*
|
textDocument/typeDefinition*
|
||||||
window/logMessage
|
window/logMessage
|
||||||
window/showMessage
|
window/showMessage
|
||||||
|
window/showMessageRequest
|
||||||
workspace/applyEdit
|
workspace/applyEdit
|
||||||
workspace/symbol
|
workspace/symbol
|
||||||
|
|
||||||
|
@@ -93,10 +93,7 @@ M['window/showMessageRequest'] = function(_, _, params)
|
|||||||
if choice < 1 or choice > #actions then
|
if choice < 1 or choice > #actions then
|
||||||
return vim.NIL
|
return vim.NIL
|
||||||
else
|
else
|
||||||
local action_chosen = actions[choice]
|
return actions[choice]
|
||||||
return {
|
|
||||||
title = action_chosen;
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user