Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 8cc23df

Browse files
authored
Merge pull request #1537 from alanz/1524-hlint-quickfix
Return hlint code actions as type 'quickfix'
2 parents 666626e + e1c97e9 commit 8cc23df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Haskell/Ide/Engine/Plugin/ApplyRefact.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ codeActionProvider plId docId _ context = IdeResultOk <$> hlintActions
325325
mkHlintAction diag@(LSP.Diagnostic (LSP.Range start _) _s (Just (LSP.StringValue code)) (Just "hlint") m _) =
326326
Just . codeAction <$> mkLspCommand plId "applyOne" title (Just args)
327327
where
328-
codeAction cmd = LSP.CodeAction title (Just LSP.CodeActionRefactor) (Just (LSP.List [diag])) Nothing (Just cmd)
328+
codeAction cmd = LSP.CodeAction title (Just LSP.CodeActionQuickFix) (Just (LSP.List [diag])) Nothing (Just cmd)
329329
title = "Apply hint:" <> head (T.lines m)
330330
-- need 'file', 'start_pos' and hint title (to distinguish between alternative suggestions at the same location)
331331
args = [toJSON (AOP (docId ^. LSP.uri) start code)]

0 commit comments

Comments
 (0)