@@ -142,7 +142,7 @@ initializeResponseTests = withResource acquire release tests where
142
142
, chk " NO doc link" _documentLinkProvider Nothing
143
143
, chk " NO color" _colorProvider (Just $ ColorOptionsStatic False )
144
144
, chk " NO folding range" _foldingRangeProvider (Just $ FoldingRangeOptionsStatic False )
145
- , che " execute command" _executeCommandProvider ( Just $ ExecuteCommandOptions $ List [typeLensCommandId, blockCommandId])
145
+ , che " execute command" _executeCommandProvider [blockCommandId, typeLensCommandId]
146
146
, chk " workspace" _workspace (Just $ WorkspaceOptions (Just WorkspaceFolderOptions {_supported = Just True , _changeNotifications = Just ( WorkspaceFolderChangeNotificationsBool True )}))
147
147
, chk " NO experimental" _experimental Nothing
148
148
] where
@@ -158,13 +158,13 @@ initializeResponseTests = withResource acquire release tests where
158
158
chk title getActual expected =
159
159
testCase title $ getInitializeResponse >>= \ ir -> expected @=? (getActual . innerCaps) ir
160
160
161
- che :: TestName -> (InitializeResponseCapabilitiesInner -> Maybe ExecuteCommandOptions ) -> Maybe ExecuteCommandOptions -> TestTree
162
- che title getActual _expected = testCase title doTest
161
+ che :: TestName -> (InitializeResponseCapabilitiesInner -> Maybe ExecuteCommandOptions ) -> [ T. Text ] -> TestTree
162
+ che title getActual expected = testCase title doTest
163
163
where
164
164
doTest = do
165
165
ir <- getInitializeResponse
166
- let Just ExecuteCommandOptions {_commands = List [command] } = getActual $ innerCaps ir
167
- True @=? T. isSuffixOf " typesignature.add " command
166
+ let Just ExecuteCommandOptions {_commands = List commands } = getActual $ innerCaps ir
167
+ zipWithM_ ( \ e o -> T. isSuffixOf e o @? show (e,o)) expected commands
168
168
169
169
170
170
innerCaps :: InitializeResponse -> InitializeResponseCapabilitiesInner
0 commit comments