@@ -117,7 +117,7 @@ codeAction state _ (CodeActionParams _ _ (TextDocumentIdentifier uri) _range Cod
117117 actions =
118118 [ mkCA title kind isPreferred [x] edit
119119 | 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
121121 ]
122122 actions' = caRemoveRedundantImports parsedModule text diag xs uri
123123 <> actions
@@ -126,7 +126,7 @@ codeAction state _ (CodeActionParams _ _ (TextDocumentIdentifier uri) _range Cod
126126
127127mkCA :: T. Text -> Maybe CodeActionKind -> Maybe Bool -> [Diagnostic ] -> WorkspaceEdit -> (Command |? CodeAction )
128128mkCA 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
130130
131131suggestAction :: CodeActionArgs -> GhcideCodeActions
132132suggestAction caa =
@@ -282,6 +282,7 @@ caRemoveRedundantImports m contents digs ctxDigs uri
282282 removeSingle title tedit diagnostic = mkCA title (Just CodeActionQuickFix ) Nothing [diagnostic] WorkspaceEdit {.. } where
283283 _changes = Just $ Map. singleton uri $ List tedit
284284 _documentChanges = Nothing
285+ _changeAnnotations = Nothing
285286 removeAll tedit = InR $ CodeAction {.. } where
286287 _changes = Just $ Map. singleton uri $ List tedit
287288 _title = " Remove all redundant imports"
@@ -292,6 +293,8 @@ caRemoveRedundantImports m contents digs ctxDigs uri
292293 _isPreferred = Nothing
293294 _command = Nothing
294295 _disabled = Nothing
296+ _xdata = Nothing
297+ _changeAnnotations = Nothing
295298
296299caRemoveInvalidExports :: Maybe ParsedModule -> Maybe T. Text -> [Diagnostic ] -> [Diagnostic ] -> Uri -> [Command |? CodeAction ]
297300caRemoveInvalidExports m contents digs ctxDigs uri
@@ -328,6 +331,8 @@ caRemoveInvalidExports m contents digs ctxDigs uri
328331 _command = Nothing
329332 _isPreferred = Nothing
330333 _disabled = Nothing
334+ _xdata = Nothing
335+ _changeAnnotations = Nothing
331336 removeAll [] = Nothing
332337 removeAll ranges = Just $ InR $ CodeAction {.. } where
333338 tedit = concatMap (\ r -> [TextEdit r " " ]) ranges
@@ -340,6 +345,8 @@ caRemoveInvalidExports m contents digs ctxDigs uri
340345 _command = Nothing
341346 _isPreferred = Nothing
342347 _disabled = Nothing
348+ _xdata = Nothing
349+ _changeAnnotations = Nothing
343350
344351suggestRemoveRedundantExport :: ParsedModule -> Diagnostic -> Maybe (T. Text , [Range ])
345352suggestRemoveRedundantExport ParsedModule {pm_parsed_source = L _ HsModule {.. }} Diagnostic {.. }
0 commit comments