We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d99f1a commit 6559416Copy full SHA for 6559416
ghcide/src/Development/IDE/Plugin/CodeAction.hs
@@ -97,8 +97,10 @@ codeAction lsp state _ (TextDocumentIdentifier uri) _range CodeActionContext{_di
97
, Just ps <- [annotatedPS]
98
, Just dynflags <- [df]
99
, (title, graft) <- suggestExactAction exportsMap dynflags ps x
100
- , let edit = either error id $
101
- rewriteToEdit dynflags uri (annsA ps) graft
+ , Right edit <-
+ [ -- either (Left . traceShow) Right $
102
+ rewriteToEdit dynflags uri (annsA ps) graft
103
+ ]
104
]
105
actions'' = caRemoveRedundantImports parsedModule text diag xs uri
106
<> actions
0 commit comments