File tree 1 file changed +6
-3
lines changed
plugins/hls-class-plugin/src/Ide/Plugin/Class
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,16 @@ codeAction recorder state plId (CodeActionParams _ _ docId _ context) = pluginRe
114
114
logWith recorder Info (LogImplementedMethods cls implemented)
115
115
pure
116
116
$ concatMap mkAction
117
+ $ nubBy (\ (_, x) (_,y) -> x == y)
117
118
$ filter ((/=) mempty . snd )
118
119
$ fmap (second (filter (\ (bind, _) -> bind `notElem` implemented)))
119
- $ (<>) [foo range sigs]
120
- $ minDefToMethodGroups range sigs
121
- $ classMinimalDef cls
120
+ $ mkSuggestions range sigs cls
122
121
where
123
122
range = diag ^. J. range
123
+ mkSuggestions range sigs cls = minimalDef <> [allClassMethods]
124
+ where
125
+ minimalDef = minDefToMethodGroups range sigs $ classMinimalDef cls
126
+ allClassMethods = foo range sigs
124
127
125
128
mkAction :: Suggestion -> [Command |? CodeAction ]
126
129
mkAction (name, methodGroup)
You can’t perform that action at this time.
0 commit comments