Skip to content

Commit d4d5ce1

Browse files
committed
hls-tactics-plugin: Unify logging infrastructure
1 parent e946920 commit d4d5ce1

File tree

1 file changed

+6
-4
lines changed
  • plugins/hls-tactics-plugin/old/test

1 file changed

+6
-4
lines changed

plugins/hls-tactics-plugin/old/test/Utils.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import Wingman.LanguageServer (mkShowMessageParams)
3434
import Wingman.Types
3535

3636

37-
plugin :: PluginDescriptor IdeState
38-
plugin = Tactic.descriptor mempty "tactics"
37+
plugin :: PluginTestDescriptor Log
38+
plugin = mkPluginTestDescriptor Tactic.descriptor "tactics"
3939

4040
------------------------------------------------------------------------------
4141
-- | Get a range at the given line and column corresponding to having nothing
@@ -61,13 +61,15 @@ resetGlobalHoleRef = writeIORef globalHoleRef 0
6161

6262

6363
runSessionForTactics :: Session a -> IO a
64-
runSessionForTactics =
64+
runSessionForTactics act = do
65+
recorder <- pluginTestRecorder
6566
runSessionWithServer'
66-
[plugin]
67+
[plugin recorder]
6768
def
6869
(def { messageTimeout = 20 } )
6970
fullCaps
7071
tacticPath
72+
act
7173

7274
------------------------------------------------------------------------------
7375
-- | Make a tactic unit test.

0 commit comments

Comments
 (0)