File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ import GHC.IO.Handle
73
73
import GHC.Stack (emptyCallStack )
74
74
import Ide.Plugin.Config (Config , PluginConfig ,
75
75
cabalFormattingProvider ,
76
- defConfig , formattingProvider ,
76
+ formattingProvider ,
77
77
plugins )
78
78
import Ide.Types
79
79
import Language.LSP.Test
@@ -135,13 +135,13 @@ goldenWithHaskellDoc plugin title testDataDir path desc ext act =
135
135
136
136
137
137
runSessionWithServer :: PluginDescriptor IdeState -> FilePath -> Session a -> IO a
138
- runSessionWithServer plugin = runSessionWithServer' [plugin] def def fullCaps
138
+ runSessionWithServer plugin = runSessionWithServer' [plugin] (defConfigForPlugins $ IdePlugins [plugin]) def fullCaps
139
139
140
140
runSessionWithServerFormatter :: PluginDescriptor IdeState -> String -> PluginConfig -> FilePath -> Session a -> IO a
141
141
runSessionWithServerFormatter plugin formatter conf =
142
142
runSessionWithServer'
143
143
[plugin]
144
- def
144
+ (defConfigForPlugins $ IdePlugins [plugin])
145
145
{ formattingProvider = T. pack formatter
146
146
, plugins = M. singleton (T. pack formatter) conf
147
147
}
@@ -194,7 +194,7 @@ runSessionWithCabalServerFormatter :: PluginDescriptor IdeState -> String -> Plu
194
194
runSessionWithCabalServerFormatter plugin formatter conf =
195
195
runSessionWithServer'
196
196
[plugin]
197
- (defConfig mempty )
197
+ (defConfigForPlugins $ IdePlugins [plugin] )
198
198
{ cabalFormattingProvider = T. pack formatter
199
199
, plugins = M. singleton (T. pack formatter) conf
200
200
}
You can’t perform that action at this time.
0 commit comments