File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import qualified Data.Map.Strict as Map
25
25
import Data.Maybe (catMaybes , fromMaybe )
26
26
import qualified Data.Text as T
27
27
import Development.IDE
28
+ import Development.IDE.Core.Shake (useWithStale )
28
29
import Development.IDE.GHC.Compat
29
30
import GHC.Generics (Generic )
30
31
import Ide.Plugin
@@ -84,11 +85,11 @@ provider _lspFuncs -- LSP functions, not used
84
85
| Just nfp <- uriToNormalizedFilePath $ toNormalizedUri _uri
85
86
= do
86
87
-- Get the typechecking artifacts from the module
87
- tmr <- runIde state $ use TypeCheck nfp
88
+ tmr <- runIde state $ useWithStale TypeCheck nfp
88
89
-- We also need a GHC session with all the dependencies
89
- hsc <- runIde state $ use GhcSessionDeps nfp
90
+ hsc <- runIde state $ useWithStale GhcSessionDeps nfp
90
91
-- Use the GHC api to extract the "minimal" imports
91
- (imports, mbMinImports) <- extractMinimalImports hsc tmr
92
+ (imports, mbMinImports) <- extractMinimalImports ( fst <$> hsc) ( fst <$> tmr)
92
93
93
94
case mbMinImports of
94
95
-- Implement the provider logic:
You can’t perform that action at this time.
0 commit comments