feat: Update outline on rename symbol

Also added ability to show provider status from code_action and
rename_symbol
This commit is contained in:
hedy
2023-11-26 20:44:42 +08:00
parent c1064c69fe
commit 8c13999acc
4 changed files with 77 additions and 43 deletions

View File

@@ -27,9 +27,13 @@ end
---@param args any[]
function M.action(sidebar, method, args)
if not sidebar.provider or not sidebar.provider[method] then
require('outline.utils').echo('No supported providers to perform this action.')
return
end
return sidebar.provider[method](unpack(args))
local ok = sidebar.provider[method](unpack(args))
if not ok then
require('outline.utils').echo('The provider could not perform this action successfully.')
end
end
return M