Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Clear out pattern matching and error message of executeCodeActionByName #1317

Merged
merged 3 commits into from
Jul 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/functional/FunctionalCodeActionsSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -751,11 +751,11 @@ hsImportSpec formatterName [e1, e2, e3, e4] =
let actions = filter (\actn -> actn ^. L.title `elem` names) allActions
case actions of
(action:_) -> executeCodeAction action
xs ->
[] ->
error
$ "Found an unexpected amount of action. Expected 1, but got: "
++ show (length xs)
++ ".\n Titles: " ++ show (map (^. L.title) allActions)
$ "No action found to be executed!"
++ "\n Actual actions titles: " ++ show (map (^. L.title) allActions)
++ "\n Expected actions titles: " ++ show names

-- Silence warnings
hsImportSpec formatter args =
Expand Down