File tree 2 files changed +5
-5
lines changed
hls-rename-plugin/src/Ide/Plugin
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ import qualified Data.Map as Map
15
15
import qualified Data.Text as T
16
16
import Development.IDE hiding (pluginHandlers )
17
17
import Development.IDE.GHC.Compat
18
- import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (.. ),
19
- annsA , astA )
18
+ import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (.. ))
19
+
20
20
import Ide.Types
21
21
import Language.Haskell.GHC.ExactPrint
22
22
import Language.Haskell.GHC.ExactPrint.Types hiding (GhcPs )
Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ import Development.IDE.Core.Shake
24
24
import Development.IDE.GHC.Compat
25
25
import Development.IDE.Spans.AtPoint
26
26
#if MIN_VERSION_ghc(9,0,1)
27
+ import GHC.Parser.Annotation (AnnContext , AnnList ,
28
+ AnnParen , AnnPragma )
27
29
import GHC.Types.Name
28
30
#else
29
31
import Name
30
32
#endif
31
33
import Debug.Trace
32
34
import Development.IDE.GHC.ExactPrint (GetAnnotatedParsedSource (GetAnnotatedParsedSource ))
33
- import GHC.Parser.Annotation (AnnContext , AnnList ,
34
- AnnParen , AnnPragma )
35
35
import HieDb.Query
36
36
import Ide.Plugin.Config
37
37
import Ide.PluginUtils
@@ -84,7 +84,7 @@ getSrcEdits state updateMod uri = do
84
84
" Rename.GetParsedModuleWithComments"
85
85
state
86
86
(use GetAnnotatedParsedSource nfp)
87
- let (ps, apiAnns ) = (astA annotatedAst, annsA annotatedAst)
87
+ let (ps, anns ) = (astA annotatedAst, annsA annotatedAst)
88
88
#if !MIN_VERSION_ghc(9,2,1)
89
89
let src = T. pack $ exactPrint ps anns
90
90
res = T. pack $ exactPrint (updateMod <$> ps) anns
You can’t perform that action at this time.
0 commit comments