File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
plugins/hls-explicit-record-fields-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import Data.Text (Text)
25
25
import Data.Unique (hashUnique , newUnique )
26
26
27
27
import Control.Monad (replicateM )
28
+ import Control.Monad.Trans.Except (except )
28
29
import Data.Aeson (ToJSON (toJSON ))
29
30
import Data.List (find , intersperse )
30
31
import qualified Data.Text as T
@@ -106,8 +107,8 @@ import Language.LSP.Protocol.Types (CodeAction (..),
106
107
WorkspaceEdit (WorkspaceEdit ),
107
108
type (|? ) (InL , InR ))
108
109
109
-
110
110
#if __GLASGOW_HASKELL__ < 910
111
+ import Control.Monad.Trans.Class (lift )
111
112
import Development.IDE.GHC.Compat (HsExpansion (HsExpanded ))
112
113
#endif
113
114
@@ -189,7 +190,7 @@ inlayHintProvider _ state pId InlayHintParams {_textDocument = TextDocumentIdent
189
190
locations = [ getDefinition nfp pos
190
191
| record <- records
191
192
, pos <- maybeToList $ fmap _start $ recordInfoToDotDotRange record ]
192
- defnLocsList <- liftIO $ Shake. runIdeAction " ExplicitFields.getDefinition " (shakeExtras state) ( sequence locations)
193
+ defnLocsList <- lift $ sequence locations
193
194
pure $ InL $ mapMaybe (mkInlayHints crr pragma) (zip defnLocsList records)
194
195
where
195
196
mkInlayHints :: CollectRecordsResult -> NextPragmaInfo -> (Maybe [(Location , Identifier )], RecordInfo ) -> Maybe InlayHint
You can’t perform that action at this time.
0 commit comments