File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 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
202202 -- should check whether the requested kind is a *prefix* of the action kind.
203203 -- That means, for example, we will return actions with kinds `quickfix.import` and
204204 -- `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
210206 | otherwise = False
211207
212208instance PluginMethod TextDocumentCodeLens where
You can’t perform that action at this time.
0 commit comments