Files
neovim/runtime/lua/vim
Mathias Fußenegger 4a09c178a1 feat(lsp): fallback to code-action command on resolve failure (#25464)
The haskell-language-server supports resolve only for a subset of code
actions. For many code actions trying to resolve the `edit` property
results in an error, but the unresolved action already contains a
command that can be executed without issue.

The protocol specification is unfortunately a bit vague about this,
and what the haskell-language-server does seems to be valid.

Example:

    newtype Dummy = Dummy Int
    instance Num Dummy where

Triggering code actions on "Num Dummy" and choosing "Add placeholders
for all missing methods" resulted in:

    -32601: No plugin enabled for SMethod_CodeActionResolve, potentially available: explicit-fields, importLens, hlint, overloaded-record-dot

With this change it will insert the missing methods:

    instance Num Dummy where
      (+) = _
      (-) = _
      (*) = _
      negate = _
      abs = _
      signum = _
      fromInteger = _
2023-10-02 22:14:19 +02:00
..
2023-09-20 13:42:41 +01:00
2023-09-20 13:42:41 +01:00
2023-09-14 08:23:01 -05:00
2023-09-21 00:32:35 +02:00
2023-09-14 08:23:01 -05:00
2023-09-20 13:42:41 +01:00
2023-09-23 23:46:45 +01:00
2023-09-14 08:23:01 -05:00
2023-09-04 22:42:47 +02:00
2023-09-23 23:46:45 +01:00
2023-09-20 04:15:23 -07:00
2023-09-14 08:23:01 -05:00
2023-09-23 23:46:45 +01:00