File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,13 @@ configurations:
108108 - ghcide-type-lenses
109109 - pragmas
110110- Ghcide :
111+ - ghcide-completions
112+ - ghcide-type-lenses
113+ - Refactor :
111114 - ghcide-code-actions-bindings
112115 - ghcide-code-actions-fill-holes
113116 - ghcide-code-actions-imports-exports
114117 - ghcide-code-actions-type-signatures
115- - ghcide-completions
116- - ghcide-type-lenses
117118- All :
118119 - alternateNumberFormat
119120 - callHierarchy
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ experiments =
139139 not . null <$> getCompletions doc (fromJust identifierP),
140140 ---------------------------------------------------------------------------------------
141141 benchWithSetup
142- " code lens "
142+ " code actions "
143143 ( \ docs -> do
144144 unless (any (isJust . identifierP) docs) $
145145 error " None of the example modules is suitable for this experiment"
@@ -148,12 +148,13 @@ experiments =
148148 waitForProgressStart
149149 waitForProgressDone
150150 )
151- ( \ docs -> not . null <$> forM docs (\ DocumentPositions {.. } ->
152- getCodeLenses doc)
151+ ( \ docs -> not . null . catMaybes <$> forM docs (\ DocumentPositions {.. } ->
152+ forM identifierP $ \ p ->
153+ getCodeActions doc (Range p p))
153154 ),
154155 ---------------------------------------------------------------------------------------
155156 benchWithSetup
156- " code lens after edit"
157+ " code actions after edit"
157158 ( \ docs -> do
158159 unless (any (isJust . identifierP) docs) $
159160 error " None of the example modules is suitable for this experiment"
@@ -165,8 +166,9 @@ experiments =
165166 changeDoc doc [charEdit stringLiteralP]
166167 waitForProgressStart
167168 waitForProgressDone
168- not . null <$> forM docs (\ DocumentPositions {.. } -> do
169- getCodeLenses doc)
169+ not . null . catMaybes <$> forM docs (\ DocumentPositions {.. } -> do
170+ forM identifierP $ \ p ->
171+ getCodeActions doc (Range p p))
170172 ),
171173 ---------------------------------------------------------------------------------------
172174 benchWithSetup
You can’t perform that action at this time.
0 commit comments