File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
plugins/hls-hlint-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ codeActionProvider _lf ideState plId docId _ context = Right . LSP.List . map CA
250
250
Just . codeAction <$> mkLspCommand plId " applyOne" title (Just args)
251
251
where
252
252
codeAction cmd = LSP. CodeAction title (Just LSP. CodeActionQuickFix ) (Just (LSP. List [diag])) Nothing (Just cmd)
253
- title = " Apply hint:" <> head ( T. lines m)
253
+ title = " Apply hint: " <> code
254
254
-- need 'file', 'start_pos' and hint title (to distinguish between alternative suggestions at the same location)
255
255
args = [toJSON (AOP (docId ^. LSP. uri) start code)]
256
256
mkHlintAction (LSP. Diagnostic _r _s _c _source _m _ _) = return Nothing
@@ -371,4 +371,3 @@ writeFileUTF8NoNewLineTranslation file txt =
371
371
hSetEncoding h utf8
372
372
hSetNewlineMode h noNewlineTranslation
373
373
hPutStr h (T. unpack txt)
374
-
You can’t perform that action at this time.
0 commit comments