File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,13 @@ configurations:
108
108
- ghcide-type-lenses
109
109
- pragmas
110
110
- Ghcide :
111
+ - ghcide-completions
112
+ - ghcide-type-lenses
113
+ - Refactor :
111
114
- ghcide-code-actions-bindings
112
115
- ghcide-code-actions-fill-holes
113
116
- ghcide-code-actions-imports-exports
114
117
- ghcide-code-actions-type-signatures
115
- - ghcide-completions
116
- - ghcide-type-lenses
117
118
- All :
118
119
- alternateNumberFormat
119
120
- callHierarchy
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ experiments =
139
139
not . null <$> getCompletions doc (fromJust identifierP),
140
140
---------------------------------------------------------------------------------------
141
141
benchWithSetup
142
- " code lens "
142
+ " code actions "
143
143
( \ docs -> do
144
144
unless (any (isJust . identifierP) docs) $
145
145
error " None of the example modules is suitable for this experiment"
@@ -148,12 +148,13 @@ experiments =
148
148
waitForProgressStart
149
149
waitForProgressDone
150
150
)
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))
153
154
),
154
155
---------------------------------------------------------------------------------------
155
156
benchWithSetup
156
- " code lens after edit"
157
+ " code actions after edit"
157
158
( \ docs -> do
158
159
unless (any (isJust . identifierP) docs) $
159
160
error " None of the example modules is suitable for this experiment"
@@ -165,8 +166,9 @@ experiments =
165
166
changeDoc doc [charEdit stringLiteralP]
166
167
waitForProgressStart
167
168
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))
170
172
),
171
173
---------------------------------------------------------------------------------------
172
174
benchWithSetup
You can’t perform that action at this time.
0 commit comments