Skip to content

Commit f5d4311

Browse files
committed
Correct replace params
1 parent 929aaea commit f5d4311

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-hlint-plugin/src/Ide/Plugin

1 file changed

+1
-1
lines changed

plugins/hls-hlint-plugin/src/Ide/Plugin/Hlint.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ codeActionProvider _lf ideState plId docId _ context = Right . LSP.List . map CA
265265
Just . codeAction <$> mkLspCommand plId "applyOne" title (Just args)
266266
where
267267
codeAction cmd = LSP.CodeAction title (Just LSP.CodeActionQuickFix) (Just (LSP.List [diag])) Nothing (Just cmd)
268-
title = T.replace code "refact:" "Apply hint: "
268+
title = T.replace "refact:" "Apply hint: " code
269269
-- need 'file', 'start_pos' and hint title (to distinguish between alternative suggestions at the same location)
270270
args = [toJSON (AOP (docId ^. LSP.uri) start code)]
271271
mkHlintAction (LSP.Diagnostic _r _s _c _source _m _ _) = return Nothing

0 commit comments

Comments
 (0)