diff options
author | Tomáš Janoušek <tomi@nomi.cz> | 2021-10-07 04:29:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 11:29:00 +0900 |
commit | efa563826d3dd20c4dbd5cbb6b2bdf2f46ac286e (patch) | |
tree | e7f4a983ace5ffeecf4b4ea18039727e1ca231f5 /rplugin/python3/deoplete/sources | |
parent | f9deee0e416f626d8597e3e6ea8e89172e5aaa78 (diff) | |
download | ale-efa563826d3dd20c4dbd5cbb6b2bdf2f46ac286e.zip |
codefix: Fix code actions that return Command[] directly instead of CodeAction[] (#3929)
According to
https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocument_codeAction,
the response to textDocument/codeAction is:
(Command | CodeAction)[] | null
and the code only handled the case where it was a CodeAction that either
specified an edit or a command, but didn't handle a direct Command.
Note that the specification also says that both can be specified and
then the edit is applied first, then the command. Furthermore, there
seems to be some hacky code handling arguments directly, which I suspect
is non-standard and only works with a specific LSP server that happens
to pass the edits in the arguments unmodified.
Diffstat (limited to 'rplugin/python3/deoplete/sources')
0 files changed, 0 insertions, 0 deletions