File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,10 +228,10 @@ instance ToCodeAction r => ToCodeAction (ParsedSource -> r) where
228
228
Just s -> flip runReaderT caa . runExceptT . toCodeAction . f . astA $ s
229
229
_ -> pure $ Right []
230
230
#else
231
- toCodeAction f = ReaderT $ \ caa@ CodeActionArgs {caaParsedModule = x} ->
231
+ toCodeAction f = ExceptT . ReaderT $ \ caa@ CodeActionArgs {caaParsedModule = x} ->
232
232
x >>= \ case
233
- Just s -> flip runReaderT caa . toCodeAction . f . pm_parsed_source $ s
234
- _ -> pure []
233
+ Just s -> flip runReaderT caa . runExceptT . toCodeAction . f . pm_parsed_source $ s
234
+ _ -> pure $ Right []
235
235
#endif
236
236
237
237
instance ToCodeAction r => ToCodeAction (ExportsMap -> r ) where
You can’t perform that action at this time.
0 commit comments