File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -314,14 +314,10 @@ completion recorder ide _ complParams = do
314314 mVf <- lift $ getVirtualFile $ toNormalizedUri uri
315315 case (,) <$> mVf <*> uriToFilePath' uri of
316316 Just (cnts, path) -> do
317- mFields <- liftIO $ runIdeAction " cabal-plugin.fields" (shakeExtras ide) $ useWithStaleFast ParseCabalFields $ toNormalizedFilePath path
318- case mFields of
319- Nothing ->
320- pure . InR $ InR Null
321- Just (fields, _) -> do
322- let pref = Ghcide. getCompletionPrefix position cnts
323- let res = produceCompletions pref path fields
324- liftIO $ fmap InL res
317+ mFields <- liftIO $ runAction " cabal-plugin.fields" ide $ use_ ParseCabalFields $ toNormalizedFilePath path
318+ let pref = Ghcide. getCompletionPrefix position cnts
319+ let res = produceCompletions pref path mFields
320+ liftIO $ fmap InL res
325321 Nothing -> pure . InR $ InR Null
326322 where
327323 completerRecorder = cmapWithPrio LogCompletions recorder
You can’t perform that action at this time.
0 commit comments