File tree 1 file changed +6
-4
lines changed
plugins/hls-tactics-plugin/old/test
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)
34
34
import Wingman.Types
35
35
36
36
37
- plugin :: PluginDescriptor IdeState
38
- plugin = Tactic. descriptor mempty " tactics"
37
+ plugin :: PluginTestDescriptor Log
38
+ plugin = mkPluginTestDescriptor Tactic. descriptor " tactics"
39
39
40
40
------------------------------------------------------------------------------
41
41
-- | Get a range at the given line and column corresponding to having nothing
@@ -61,13 +61,15 @@ resetGlobalHoleRef = writeIORef globalHoleRef 0
61
61
62
62
63
63
runSessionForTactics :: Session a -> IO a
64
- runSessionForTactics =
64
+ runSessionForTactics act = do
65
+ recorder <- pluginTestRecorder
65
66
runSessionWithServer'
66
- [plugin]
67
+ [plugin recorder ]
67
68
def
68
69
(def { messageTimeout = 20 } )
69
70
fullCaps
70
71
tacticPath
72
+ act
71
73
72
74
------------------------------------------------------------------------------
73
75
-- | Make a tactic unit test.
You can’t perform that action at this time.
0 commit comments