Skip to content

Commit 6076ba9

Browse files
committed
Replace code actions with lenses in benchmarks
1 parent 0f4c250 commit 6076ba9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ghcide/bench/lib/Experiments.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ experiments =
125125
not . null <$> getCompletions doc (fromJust identifierP),
126126
---------------------------------------------------------------------------------------
127127
benchWithSetup
128-
"code actions"
128+
"code lens"
129129
( \docs -> do
130130
unless (any (isJust . identifierP) docs) $
131131
error "None of the example modules is suitable for this experiment"
@@ -135,12 +135,11 @@ experiments =
135135
waitForProgressDone
136136
)
137137
( \docs -> not . null . catMaybes <$> forM docs (\DocumentPositions{..} ->
138-
forM identifierP $ \p ->
139-
getCodeActions doc (Range p p))
138+
getCodeLenses doc)
140139
),
141140
---------------------------------------------------------------------------------------
142141
benchWithSetup
143-
"code actions after edit"
142+
"code lens after edit"
144143
( \docs -> do
145144
unless (any (isJust . identifierP) docs) $
146145
error "None of the example modules is suitable for this experiment"
@@ -153,8 +152,7 @@ experiments =
153152
waitForProgressStart
154153
waitForProgressDone
155154
not . null . catMaybes <$> forM docs (\DocumentPositions{..} -> do
156-
forM identifierP $ \p ->
157-
getCodeActions doc (Range p p))
155+
getCodeLenses doc)
158156
),
159157
---------------------------------------------------------------------------------------
160158
benchWithSetup

0 commit comments

Comments
 (0)