File tree 1 file changed +4
-8
lines changed
plugins/hls-cabal-plugin/src/Ide/Plugin
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
314
314
mVf <- lift $ getVirtualFile $ toNormalizedUri uri
315
315
case (,) <$> mVf <*> uriToFilePath' uri of
316
316
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
325
321
Nothing -> pure . InR $ InR Null
326
322
where
327
323
completerRecorder = cmapWithPrio LogCompletions recorder
You can’t perform that action at this time.
0 commit comments