File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
plugins/hls-tactics-plugin/old/test Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ import Wingman.LanguageServer (mkShowMessageParams)
3434import 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
6363runSessionForTactics :: 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.
You can’t perform that action at this time.
0 commit comments