File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,7 @@ instance PluginMethod TextDocumentCodeAction where
202
202
-- should check whether the requested kind is a *prefix* of the action kind.
203
203
-- That means, for example, we will return actions with kinds `quickfix.import` and
204
204
-- `quickfix.somethingElse` if the requested kind is `quickfix`.
205
- -- TODO: add helpers in `lsp` for handling code action hierarchies
206
- -- For now we abuse the fact that the JSON representation gives us the hierarchical string.
207
- , Just caKind <- ca ^. kind
208
- , String caKindStr <- toJSON caKind =
209
- any (\ k -> k `T.isPrefixOf` caKindStr) [kstr | k <- allowed, let String kstr = toJSON k ]
205
+ , Just caKind <- ca ^. kind = any (\ k -> k `codeActionKindSubsumes` caKind) allowed
210
206
| otherwise = False
211
207
212
208
instance PluginMethod TextDocumentCodeLens where
You can’t perform that action at this time.
0 commit comments