@@ -117,7 +117,7 @@ codeAction state _ (CodeActionParams _ _ (TextDocumentIdentifier uri) _range Cod
117
117
actions =
118
118
[ mkCA title kind isPreferred [x] edit
119
119
| x <- xs, (title, kind, isPreferred, tedit) <- suggestAction $ CodeActionArgs exportsMap ideOptions parsedModule text df annotatedPS tcM har bindings gblSigs x
120
- , let edit = WorkspaceEdit (Just $ Map. singleton uri $ List tedit) Nothing
120
+ , let edit = WorkspaceEdit (Just $ Map. singleton uri $ List tedit) Nothing Nothing
121
121
]
122
122
actions' = caRemoveRedundantImports parsedModule text diag xs uri
123
123
<> actions
@@ -126,7 +126,7 @@ codeAction state _ (CodeActionParams _ _ (TextDocumentIdentifier uri) _range Cod
126
126
127
127
mkCA :: T. Text -> Maybe CodeActionKind -> Maybe Bool -> [Diagnostic ] -> WorkspaceEdit -> (Command |? CodeAction )
128
128
mkCA title kind isPreferred diags edit =
129
- InR $ CodeAction title kind (Just $ List diags) isPreferred Nothing (Just edit) Nothing
129
+ InR $ CodeAction title kind (Just $ List diags) isPreferred Nothing (Just edit) Nothing Nothing
130
130
131
131
suggestAction :: CodeActionArgs -> GhcideCodeActions
132
132
suggestAction caa =
@@ -282,6 +282,7 @@ caRemoveRedundantImports m contents digs ctxDigs uri
282
282
removeSingle title tedit diagnostic = mkCA title (Just CodeActionQuickFix ) Nothing [diagnostic] WorkspaceEdit {.. } where
283
283
_changes = Just $ Map. singleton uri $ List tedit
284
284
_documentChanges = Nothing
285
+ _changeAnnotations = Nothing
285
286
removeAll tedit = InR $ CodeAction {.. } where
286
287
_changes = Just $ Map. singleton uri $ List tedit
287
288
_title = " Remove all redundant imports"
@@ -292,6 +293,8 @@ caRemoveRedundantImports m contents digs ctxDigs uri
292
293
_isPreferred = Nothing
293
294
_command = Nothing
294
295
_disabled = Nothing
296
+ _xdata = Nothing
297
+ _changeAnnotations = Nothing
295
298
296
299
caRemoveInvalidExports :: Maybe ParsedModule -> Maybe T. Text -> [Diagnostic ] -> [Diagnostic ] -> Uri -> [Command |? CodeAction ]
297
300
caRemoveInvalidExports m contents digs ctxDigs uri
@@ -328,6 +331,8 @@ caRemoveInvalidExports m contents digs ctxDigs uri
328
331
_command = Nothing
329
332
_isPreferred = Nothing
330
333
_disabled = Nothing
334
+ _xdata = Nothing
335
+ _changeAnnotations = Nothing
331
336
removeAll [] = Nothing
332
337
removeAll ranges = Just $ InR $ CodeAction {.. } where
333
338
tedit = concatMap (\ r -> [TextEdit r " " ]) ranges
@@ -340,6 +345,8 @@ caRemoveInvalidExports m contents digs ctxDigs uri
340
345
_command = Nothing
341
346
_isPreferred = Nothing
342
347
_disabled = Nothing
348
+ _xdata = Nothing
349
+ _changeAnnotations = Nothing
343
350
344
351
suggestRemoveRedundantExport :: ParsedModule -> Diagnostic -> Maybe (T. Text , [Range ])
345
352
suggestRemoveRedundantExport ParsedModule {pm_parsed_source = L _ HsModule {.. }} Diagnostic {.. }
0 commit comments