feat(lsp): add select kind in showMessageRequest #32387

This commit is contained in:
Maria José Solano
2025-02-13 05:48:56 -08:00
committed by GitHub
parent 375847fb33
commit e4c6e732fd

View File

@ -90,6 +90,7 @@ RSC[ms.window_showMessageRequest] = function(_, params)
local co, is_main = coroutine.running()
if co and not is_main then
local opts = {
kind = 'lsp_message',
prompt = params.message .. ': ',
format_item = function(action)
return (action.title:gsub('\r\n', '\\r\\n')):gsub('\n', '\\n')