File tree 2 files changed +11
-12
lines changed 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,17 @@ configurations:
100
100
- callHierarchy
101
101
- codeRange
102
102
- eval
103
- - ghcide-code-actions-bindings
104
- - ghcide-code-actions-fill-holes
105
- - ghcide-code-actions-imports-exports
106
- - ghcide-code-actions-type-signatures
107
103
- ghcide-completions
108
104
- ghcide-type-lenses
109
105
- pragmas
110
106
- Ghcide :
107
+ - ghcide-completions
108
+ - ghcide-type-lenses
109
+ - Refactor :
111
110
- ghcide-code-actions-bindings
112
111
- ghcide-code-actions-fill-holes
113
112
- ghcide-code-actions-imports-exports
114
113
- ghcide-code-actions-type-signatures
115
- - ghcide-completions
116
- - ghcide-type-lenses
117
114
- All :
118
115
- alternateNumberFormat
119
116
- 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