Skip to content

Commit 94b69f8

Browse files
committed
Fix hls-class-plugin
1 parent 4025478 commit 94b69f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: plugins/hls-class-plugin/src/Ide/Plugin/Class/CodeAction.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ codeAction recorder state plId (CodeActionParams _ _ docId _ context) = pluginRe
8888
uri = docId ^. J.uri
8989
List diags = context ^. J.diagnostics
9090

91-
ghcDiags = filter (\d -> d ^. J.source == Just "typecheck") diags
91+
ghcDiags = filter (\d -> d ^. maybe False (`endsWith` "typecheck" J.source) diags
9292
methodDiags = filter (\d -> isClassMethodWarning (d ^. J.message)) ghcDiags
9393

9494
mkActions

0 commit comments

Comments
 (0)