File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -172,25 +172,10 @@ runEvalCmd lsp state EvalParams {..} = response' $ do
172
172
contents <- liftIO $ getVirtualFileFunc lsp $ toNormalizedUri _uri
173
173
text <- handleMaybe " contents" $ virtualFileText <$> contents
174
174
175
- {- Note: GhcSessionDeps
176
-
177
- Depending on GhcSession means we do need to reload all the module
178
- dependencies in the GHC session(from interface files, hopefully).
179
-
180
- The GhcSessionDeps dependency would allow us to reuse a GHC session preloaded
181
- with all the dependencies. Unfortunately, the ModSummary objects that
182
- GhcSessionDeps puts in the GHC session are not suitable for reuse since they
183
- clear out the timestamps; this is done to avoid internal ghcide bugs and
184
- can probably be relaxed so that plugins like Eval can reuse them. Once that's
185
- done, we want to switch back to GhcSessionDeps:
186
-
187
- -- https://github.com/digital-asset/ghcide/pull/694
188
-
189
- -}
190
175
session <-
191
176
liftIO $
192
177
runAction " runEvalCmd.ghcSession" state $
193
- use_ GhcSession $ -- See the note on GhcSessionDeps
178
+ use_ GhcSessionDeps $
194
179
toNormalizedFilePath' $
195
180
fp
196
181
You can’t perform that action at this time.
0 commit comments